From 982ff576c5202d8023438ec44ac95af54c668e8c Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Wed, 10 Apr 2024 17:13:55 +0200 Subject: [PATCH] fix open imap as readonly --- imap2md/export-imap-notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap2md/export-imap-notes.py b/imap2md/export-imap-notes.py index 33f6e07..8238b94 100644 --- a/imap2md/export-imap-notes.py +++ b/imap2md/export-imap-notes.py @@ -20,7 +20,7 @@ N = 200 imap = imaplib.IMAP4_SSL(imapserver) imap.login(username, password) -status, messages = imap.select("Notes") +status, messages = imap.select("Notes", True) messages = int(messages[0])