[PATCH] Make flags a set rather than a list

Knut Anders Hatlen knut.hatlen at oracle.com
Tue Aug 16 17:30:13 BST 2011


Vincent Beffara <vbeffara at ens-lyon.fr> writes:

> If not (or in parallel), would it be easy to make the flagmap
> configurable (to add something like ('gnus-expirable', 'E') to it) ? Or
> would it make sense to even add 'E' in the source by default, it
> shouldn't hurt anyone ?

It might hurt if the IMAP server doesn't support storing custom flags
(that is, if the PERMANENTFLAGS response doesn't include \*). Last time
I tried one of the hacks to get gnus-expire synced, it ended up clearing
the flags in the local repository. (Because syncing the flags
Local->Remote failed to store the E flag on the remote server, and the
subsequent Remote->Local sync therefore cleared the flag locally.) So if
gnus-expire is synced by default, at least a check of PERMANENTFLAGS is
needed to prevent sync on such servers.

-- 
Knut Anders




More information about the OfflineIMAP-project mailing list