Allow folder names with atom specials

This patch allows using folders with atom-specials like
"(", ")", spaces,...

We need quotes the folder name if it includes this special
characters.

Closes #4
This commit is contained in:
Rodolfo García Peñas (kix)
2020-10-11 23:01:08 +02:00
parent 011cfbc670
commit 01c621d86c
2 changed files with 21 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class IMAPFolder(BaseFolder):
name = self.getfullname()
if self.repository.account.utf_8_support:
name = imaputil.utf8_IMAP(name)
return name
return imaputil.foldername_to_imapname(name)
# Interface from BaseFolder
def suggeststhreads(self):