From 7947aea7a9d5387c29d500456878b5c792575ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Mon, 31 Aug 2020 18:11:48 +0200 Subject: [PATCH] imapserver call LIST using empty quotes The LIST command needs empty quotes, like LIST "" This is the right argument. --- offlineimap/imapserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/imapserver.py b/offlineimap/imapserver.py index 3c75751..c5238f0 100644 --- a/offlineimap/imapserver.py +++ b/offlineimap/imapserver.py @@ -596,7 +596,7 @@ class IMAPServer(): imapobj.capabilities = tuple(dat[-1].upper().split()) if self.delim is None: - listres = imapobj.list(self.reference, '')[1] + listres = imapobj.list(self.reference, '""')[1] if listres == [None] or listres is None: # Some buggy IMAP servers do not respond well to LIST "" "" # Work around them.