Merge pull request #113 from hubearth/master
Allow filtering of folders with spaces
This commit is contained in:
commit
dd0edb1446
@ -717,6 +717,9 @@ class IMAPRepository(BaseRepository):
|
|||||||
try:
|
try:
|
||||||
for foldername in self.folderincludes:
|
for foldername in self.folderincludes:
|
||||||
try:
|
try:
|
||||||
|
# Folder names with spaces requires quotes
|
||||||
|
if ' ' in foldername:
|
||||||
|
foldername = '"' + foldername + '"'
|
||||||
imapobj.select(imaputil.utf8_IMAP(foldername),
|
imapobj.select(imaputil.utf8_IMAP(foldername),
|
||||||
readonly=True)
|
readonly=True)
|
||||||
except OfflineImapError as exc:
|
except OfflineImapError as exc:
|
||||||
|
Loading…
Reference in New Issue
Block a user