Add quotes in empty LIST calls
I need add this to get the imap LIST folders.
This commit is contained in:
parent
6fa099ff74
commit
c9a4b1fefa
@ -1358,6 +1358,8 @@ class IMAP4(object):
|
|||||||
data = rqb.tag + b' ' + name
|
data = rqb.tag + b' ' + name
|
||||||
for arg in args:
|
for arg in args:
|
||||||
if arg is None: continue
|
if arg is None: continue
|
||||||
|
if arg == '':
|
||||||
|
arg = '""'
|
||||||
if isinstance(arg, str):
|
if isinstance(arg, str):
|
||||||
arg = bytes(arg, self._encoding)
|
arg = bytes(arg, self._encoding)
|
||||||
data = data + b' ' + arg
|
data = data + b' ' + arg
|
||||||
|
Loading…
Reference in New Issue
Block a user