Please help crash: null byte in argument for long()

chris coleman christocoleman at
Thu Apr 7 02:15:55 BST 2011


You are right!!
That file ~/.offlineimap/Repository-LocalFoo/UIDMapping/INBOX contains corrupt 
data :

61414     P      

I looked for IDs inside mail reader software, but the numbers are very 
different... they go from 1 - 19000

The question: how does one manually retrieve the missing UID which corresponds 
to UID 61414 ??

From: Sebastian Spaeth <Sebastian at>
To: chris coleman <christocoleman at>; offlineimap mailing list 
<offlineimap-project at>
Cc: Nicolas Sebrecht <nicolas.s-dev at>
Sent: Wed, April 6, 2011 6:41:06 PM
Subject: Re: Please help crash: null byte in argument for long()

On Wed, 6 Apr 2011 09:28:27 -0700 (PDT), chris coleman 
<christocoleman at> wrote:
> I unpacked v6.3.2 (not distro-specific), did chmod +x on the, 
> ran it locally. 
> Same crash.  "null byte in argument for long()"

Thanks for the log and traceback. The crash you are seeing is because,
you have a corrupt mapping file that translates the UIDS between the
remote and the local IMAP servers.

That file should be in

Check if that has any null byte or looks otherwise corrupt (not in
number:number format).

There is barely any error checking or correction in that are of code :-(.

Sorry to be not of more help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the OfflineIMAP-project mailing list