[patch] Fix the logic for updating maildir flags.
Rafael Ávila de Espíndola
rafael.espindola at gmail.com
Tue Dec 20 18:45:21 GMT 2011
This patch fixes the logic for updating maildir flags.
I noticed this failing when offlineimap and dovecot accessed the same
Dovecot adds lowercase flags for keywords the IMAP clients sends it, so
I had a
file that was named like
With the old logic, infostr would be set to infomatch.group(1) which was
We would then remove the '2,[A-Z]*' leaving only the 'a'. leaving us in
with a new file named
If the old flags were in [A-Z], we should completly strip them. I looks like
the code intent was to merge them. That is what this change implements. We
convert the old flags into a set and merge that with the incoming flags.
After this change, the above case produces a file named
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the OfflineIMAP-project