Flags as set problematic ?

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Aug 22 14:03:12 BST 2011

On Mon, 22 Aug 2011 14:17:22 +0200, Vincent Beffara wrote:
> The change introducing sets for storing flags internally seems to
> introduce problems ... I have this in my .offlineimap.py:

> > ERROR: Exceptions occurred during the run!
> > ERROR: ERROR in syncfolder for allimap folder INBOX:
> > Traceback (most recent call last):
> > File "/Users/vincent/Prog/offlineimap/offlineimap/accounts.py",
> > line 350, in syncfolder
> > remotefolder.syncmessagesto(localfolder, statusfolder)
> > File "/Users/vincent/Prog/offlineimap/offlineimap/folder/Base.py",
> > line 441, in syncmessagesto
> > traceback.format_exc()))
> > TypeError: 'str' object is not callable

Yes, unfortunately I overlooked one instance, where sets() need to be
treated differently and I tracked it down to the fact that we were still

flags= set(...)

(which failed with an Exception as a set() doesn't have any sort()
method anymore.). The patch "[PATCH] Don't call set().sort()" that I
just sent fixes it. I still need to figure out why the proper error text
was not bubbled up properly.

Does it fix the issue for you too? THanks for testing.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110822/89308e15/attachment-0001.sig>

More information about the OfflineIMAP-project mailing list