offlineimap stops working on 6.3.3 -> 6.4.2 upgrade

Daniel Shahaf d.s at daniel.shahaf.name
Sun Dec 18 07:54:19 GMT 2011


Sean Whitton wrote on Sat, Dec 17, 2011 at 21:56:54 -0000:
> |   File "/usr/lib/python2.7/site-packages/offlineimap/folder/Base.py",
> line 394, in syncmessagesto_flags
> |     addflags = selfflags - statusflags
> | TypeError: unsupported operand type(s) for -: 'list' and 'set'
> `----
> 
> | def lld_flagsimap2maildir(flagstring):
> |   flagmap = {'\\seen': 'S',
> |              '\\answered': 'R',
> |              '\\flagged': 'F',
> |              '\\deleted': 'T',
> |              '\\draft': 'D',
> |              'gnus-expire': 'E',
> |              'gnus-dormant': 'Q',
> |              'gnus-forward': 'W',
> |              'gnus-save': 'V'}
> |   retval = []
> |   imapflaglist = [x.lower() for x in flagstring[1:-1].split()]
> |   for imapflag in imapflaglist:
> |       if flagmap.has_key(imapflag):
> |           retval.append(flagmap[imapflag])

Shot in the dark, but try:

      return set(retval)

> |   retval.sort()
> |   return retval




More information about the OfflineIMAP-project mailing list