<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt"><div>I agree Nicolas: it would be helpful to know which message the UID was referring to. Possibly a dump of a "synthetic key": the unique idetifying information of the message. (the subject/size/date/from/to, or the X-OfflineIMAP-xxxx field)<br><br>Maybe safer: the code can repair the damaged value.  Input: the good UID.  Using this UID, the code retrieves the corresponding message, and uses a synthetic key (the subject/size/date/from/to, or the X-OfflineIMAP-xxxx field) to match the message, retrieve the missing UID and store it in the table.<br><br><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight:
 bold;">From:</span></b> Nicolas Sebrecht <nicolas.s-dev@laposte.net><br><b><span style="font-weight: bold;">To:</span></b> Sebastian Spaeth <Sebastian@SSpaeth.de><br><b><span style="font-weight: bold;">Cc:</span></b> chris coleman <christocoleman@yahoo.com>; offlineimap mailing list <offlineimap-project@lists.alioth.debian.org>; Nicolas Sebrecht <nicolas.s-dev@laposte.net><br><b><span style="font-weight: bold;">Sent:</span></b> Thu, April 7, 2011 2:33:35 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: Please help crash: null byte in argument for long()<br></font><br>
On Thu, Apr 07, 2011 at 12:41:06AM +0200, Sebastian Spaeth wrote:<br>> On Wed, 6 Apr 2011 09:28:27 -0700 (PDT), chris coleman <<a ymailto="mailto:christocoleman@yahoo.com" href="mailto:christocoleman@yahoo.com">christocoleman@yahoo.com</a>> wrote:<br><br>> > I unpacked v6.3.2 (not distro-specific), did chmod +x on the <a target="_blank" href="http://offlineimap.py">offlineimap.py</a>, and <br>> > ran it locally. <br>> > <br>> > <br>> > Same crash.  "null byte in argument for long()"<br>> <br>> Thanks for the log and traceback. The crash you are seeing is because,<br>> you have a corrupt mapping file that translates the UIDS between the<br>> remote and the local IMAP servers.<br><br>So, it would be nice to prevent us to crash from that kind of<br>corruption. I think it worth implementing a warning or something if<br>internal data in general is corrupted.<br><br>-- <br>Nicolas Sebrecht<br></div></div>



</div></body></html>