ERROR in syncfolder for (username) folder INBOX : null byte in argument for long()

chris coleman christocoleman at
Sun May 1 19:21:09 BST 2011

On Fri, 29 Apr 2011 07:10:36 -0700 (PDT), chris coleman <christocoleman at> wrote:
> Nicolas, Sebastian:
> Here is an update on crashlog1.  
> I removed the files in a WORKING user's folder 
> (~/.offlineimap/Repository-IMAPLocalUsername/FolderValidity/*)  and re-ran 
> offlineimap 6.3.2.  It re-generated those files like you said it would.
> I removed the files in the CRASHIG user's folder, and re-ran it.  It NEVER got 
> to the point of re-generating those files.
> Here is the log from the crashing user.
> Your suggestions on what to do next, will be appreciated !

Most probably this file is corrupted:


It should be one entry in the form of "number:number" per line and when
reading this file, it got more than 2 entries. So either it lacks some
newline somewhere or it actually got 2 ":" in one line somehow.

>   File "/root/nicolas33-offlineimap-v632/offlineimap/folder/", line 
> 49, in _loadmaps
>     (str1, str2) = line.split(':')
> ValueError: too many values to unpack


I went through visually and could not find the bad line, but there are over 47,000 lines in the 549K size file, and the UID's go up to 66,390... so I could've missed it..  it's very tedious trying to find the error manually.

It would be really cool if offlineimap would print the line number -- 
and also the contents of the line -- where it ran into this error doing 
the split on the ':' in the UIDMapping file....

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the OfflineIMAP-project mailing list