From 5b071c0ecde74401ebeef484277cd7553d895ec4 Mon Sep 17 00:00:00 2001 From: Mathieu Agopian Date: Fri, 29 Mar 2013 09:24:41 +0100 Subject: [PATCH] folder_exists calls LIST with quoted empty string --- imapclient/imapclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imapclient/imapclient.py b/imapclient/imapclient.py index 503be0a..eb5854a 100644 --- a/imapclient/imapclient.py +++ b/imapclient/imapclient.py @@ -459,7 +459,7 @@ class IMAPClient(object): def folder_exists(self, folder): """Return ``True`` if *folder* exists on the server. """ - data = self._command_and_check('list', '', self.encode_quote(folder)) + data = self._command_and_check('list', '""', self.encode_quote(folder)) data = [x for x in data if x] return len(data) == 1 and data[0] != None -- 2.43.0