<DKIM> [PATCH 2/3] IMAP folder: expose the message keywords

Nicolas Sebrecht nicolas.s-dev at laposte.net
Mon Nov 9 20:19:07 GMT 2015


On Mon, Nov 09, 2015 at 09:03:05AM -0300, Igor Almeida wrote:

> > Of course. I'm wondering what would happend if... E.g., the user enable
> > the option in the IMAP repository of the configuration.
> > 
> Right now, nothing. Only MaildirRepository parses the config file to
> assemble the dictionary (patch 1/3).
> 
> >> In my use case, IMAP -> Maildir, the flags are already there and we're
> >> just translating them to lower-case letters.
> > 
> > Oh, didn't you implement Maildir -> IMAP too?
> > 
> Not yet,

Fine! So, I'll merge this topic as soon as documentation is added. :-)

>              at first I didn't intend to since my IMAP repository is
> configured as readonly, but considering that i'll eventually use notmuch
> it will be inevitable.

Ok.

> So maybe __syncmessagesto_flags could check if the Maildir side
> (regardless of being source or destination) has a mapping, and use the
> reverse mapping if it is the source. Then, to fully support Maildir ->
> IMAP, I'd have to check if/how offlineimap currently adds keywords to
> messages. Comments welcome.

Keywords aren't supported at all. Doing IMAP -> Maildir is the easy part
of the full sync.

Unknown mappings can easily be discarded (if code is not already there).

For IMAP -> Maildir, we have to check if the remote will support each
keyword. IOW, honor PERMANENTFLAGS.

Next, we'll want to check if the quick sync will consider keywords as
expected.

-- 
Nicolas Sebrecht




More information about the OfflineIMAP-project mailing list