From 6f622c7b27639c62b867ac6a2fafd831d078f588 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20=28kix=29?= Date: Wed, 2 Sep 2020 09:59:32 +0200 Subject: [PATCH] repository/IMAP.py getselectors updated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the patch "IMAP list folders" we updated the function getselectors to return '""'. We use this variable in the folders, but also here. Because the variable is never '', we need update it with this change, to test that the variable has value, but is not empty. Signed-off-by: Rodolfo García Peñas (kix) --- offlineimap/repository/IMAP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/repository/IMAP.py b/offlineimap/repository/IMAP.py index a97e2c9..0fa0cda 100644 --- a/offlineimap/repository/IMAP.py +++ b/offlineimap/repository/IMAP.py @@ -549,7 +549,7 @@ class IMAPRepository(BaseRepository): if foldername == '': return - if self.getreference(): + if self.getreference() != '""': foldername = self.getreference() + self.getsep() + foldername if not foldername: # Create top level folder as folder separator. foldername = self.getsep()