Possible bug in offlineimap: zero length field name in format

Eygene Ryabinkin rea at freebsd.org
Mon Jun 18 13:25:48 BST 2012


Mon, Jun 18, 2012 at 01:27:51PM +0200, Nik Reiman wrote:
> ERROR: Syncing folder INBOX [acc: Gmail]
>   zero length field name in format
> ERROR: ERROR in syncfolder for Gmail folder INBOX: Traceback (most
>   recent call last):
>   File "/usr/local/Cellar/offline-imap/6.5.4/libexec/offlineimap/accounts.py", line 438, in syncfolder remotefolder.syncmessagesto(localfolder, statusfolder)
>   File "/usr/local/Cellar/offline-imap/6.5.4/libexec/offlineimap/folder/Base.py", line 526, in syncmessagesto action(dstfolder, statusfolder)
>   File "/usr/local/Cellar/offline-imap/6.5.4/libexec/offlineimap/folder/Base.py", line 426, in syncmessagesto_delete self.ui.deletingmessages(deletelist, [dstfolder])
>   File "/usr/local/Cellar/offline-imap/6.5.4/libexec/offlineimap/ui/UIBase.py", line 351, in deletingmessages offlineimap.imaputil.uid_sequence(uidlist), ds))
> ValueError: zero length field name in format
> 
>   zero length field name in format
> 
> 
> I have checked my gmail account and don't see any strangely formatted
> messages. What could be the problem?

Let me guess: you're using Python 2.6, aren't you?  In this case, the
patch at
  http://codelabs.ru/patches/offlineimap/6.5.4-use-interpolation-instead-string.format.diff
I am running it for a couple of weeks and it completely eliminates
these messages.

Please, give it a try and report the outcome.

Thanks.
-- 
Eygene Ryabinkin                                        ,,,^..^,,,
[ Life's unfair - but root password helps!           | codelabs.ru ]
[ 82FE 06BC D497 C0DE 49EC  4FF0 16AF 9EAE 8152 ECFB | freebsd.org ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20120618/be222439/attachment-0001.sig>


More information about the OfflineIMAP-project mailing list