imapserver call LIST using empty quotes

The LIST command needs empty quotes, like

LIST ""

This is the right argument.
This commit is contained in:
Rodolfo García Peñas (kix) 2020-08-31 18:11:48 +02:00
parent 1ff54e7a7c
commit 7947aea7a9

View File

@ -596,7 +596,7 @@ class IMAPServer():
imapobj.capabilities = tuple(dat[-1].upper().split()) imapobj.capabilities = tuple(dat[-1].upper().split())
if self.delim is None: if self.delim is None:
listres = imapobj.list(self.reference, '')[1] listres = imapobj.list(self.reference, '""')[1]
if listres == [None] or listres is None: if listres == [None] or listres is None:
# Some buggy IMAP servers do not respond well to LIST "" "" # Some buggy IMAP servers do not respond well to LIST "" ""
# Work around them. # Work around them.