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

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


Sebastian, 

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

61410:213738
61412:213740
61413:213741
61414     P      
61416:213744
61417:213745

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 SSpaeth.de>
To: chris coleman <christocoleman at yahoo.com>; offlineimap mailing list 
<offlineimap-project at lists.alioth.debian.org>
Cc: Nicolas Sebrecht <nicolas.s-dev at laposte.net>
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 yahoo.com> wrote:
> I unpacked v6.3.2 (not distro-specific), did chmod +x on the offlineimap.py, 
>and 
>
> 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
~/.offlineimap/Repository-LocalFoo/UIDMapping/INBOX

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.
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/offlineimap-project/attachments/20110406/3e4033e9/attachment-0001.html>


More information about the OfflineIMAP-project mailing list