ikvk / imap_tools

Work with email by IMAP
Apache License 2.0
721 stars 83 forks source link

Fix folder status for folders with brackets #206

Closed abionics closed 1 year ago

abionics commented 1 year ago

If folder name is "folder (name)" than mailbox.folder.status("folder (name)") raise exception due to wrong splitting

Logs of this case looks like this:

XX:XX.XX > b'XXXXX STATUS "folder (name)" (MESSAGES RECENT UIDNEXT UIDVALIDITY UNSEEN)'
XX:XX.XX < b'* STATUS "folder (name)" (MESSAGES X RECENT X UIDNEXT X UIDVALIDITY X UNSEEN X)'
ikvk commented 1 year ago

Спасибо