haystack / YouPS

YouPS: An email automation tool that makes your email management easy! 😎
11 stars 5 forks source link

how thunderbird handle IMAP flag #70

Closed soyapark closed 5 years ago

soyapark commented 5 years ago

http://kb.mozillazine.org/Tags

lukesmurray commented 5 years ago

I think the biggest take away from this is

Thunderbird tries to store tags on the server using IMAP keywords. If the IMAP server doesn't support that it will store lags locally in the .msf file for the folder. That means that another PC can not see the labels.

A quick and dirty way to test where tags are stored would be to exit Thunderbird and delete the .msf file, and see if the tags disappeared. A more sophisticated way is to log into the IMAP account and to check whether the PERMANENTFLAGS server response to the SELECT command contains * (see RFC 3501).This page explains how to manually connect to an IMAP server.

We may want to modify these lines to check the PERMANENTFLAGS response for allowing custom flags. Then we would need to use a fallback to store flags locally if they are custom. All this would be a pain. the other option is to just fail if the server doesn't allow custom flags. https://github.com/soyapark/murmur/blob/15fe59f24ab5bfdea2609021e77a21386f3b97fb/browser/models/mailbox.py#L50-L58

lukesmurray commented 5 years ago

I think we can close this until we start finding clients without permanent flags. We would then have to add capabilties to the ImapAccount schema something I think we could do anyway.