OfflineIMAP / offlineimap

Read/sync your IMAP mailboxes (python2) [LEGACY: move to offlineimap3]
http://www.offlineimap.org
Other
1.78k stars 362 forks source link

Synchronize Keywords #665

Open s-v-o opened 4 years ago

s-v-o commented 4 years ago

My use case is to synchronize the local tags I assign with notmuch to my mails with Exchange categories over davmail. I've found that I could assign a category by connecting to davmail with the IMAP command STORE <id> +FLAGS (MyLabel)

The exchange categories are stored in the mail header as Keywords.

For this I need a biderectional way to synchronize the Keywords header by OfflineIMAP on a normal IMAP-Folder.

s-v-o commented 4 years ago

Implementation ideas

1) Synchronization like in GMail labels as a new Folder Type 2) Integration in normal IMAP folder as a new option to synchronize Keywords as Flags

I consider to use a custom flag in the file name as a marker for keywords, so that only this mail headers are synchronized.

Are there any recommendations or things to consider? During my internet research I was surprised that the use case (synchronization of keyword headers) was discussed so rarely. Are there perhaps reasons for this that I do not know?

I found that the mail files should be immutable in general, but the discussed solutions I've found are very limited (single letter flags with fixed meaning in the file name). Also I've found, that there are some mail clients which are using the mail header to store labels. But currently I have found no possibility to synchronize the edited mail header back to the server.

mayersj1 commented 1 month ago

Any updates on this? I use MailMate on my Mac, Preside on my iPhone and would love to have a solution for syncing my imap keywords via offlineimap.