<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">Sebastian, <br><div style="font-family:times new roman, new york, times, serif;font-size:12pt">You are right!!<br>That file ~/.offlineimap/Repository-LocalFoo/UIDMapping/INBOX contains corrupt data :<br><br>61410:213738<br>61412:213740<br>61413:213741<br>61414&nbsp;&nbsp;&nbsp;&nbsp; P&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>61416:213744<br>61417:213745<br><br>I looked for IDs inside mail reader software, but the numbers are very different... they go from 1 - 19000<br><br>The question: how does one manually retrieve the missing UID which corresponds to UID 61414 ??<br><br><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> Sebastian Spaeth &lt;Sebastian@SSpaeth.de&gt;<br><b><span
 style="font-weight: bold;">To:</span></b> chris coleman &lt;christocoleman@yahoo.com&gt;; offlineimap mailing list &lt;offlineimap-project@lists.alioth.debian.org&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> Nicolas Sebrecht &lt;nicolas.s-dev@laposte.net&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Wed, April 6, 2011 6:41:06 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 Wed, 6 Apr 2011 09:28:27 -0700 (PDT), chris coleman &lt;<a ymailto="mailto:christocoleman@yahoo.com" href="mailto:christocoleman@yahoo.com">christocoleman@yahoo.com</a>&gt; wrote:<br>&gt; 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>&gt; ran it locally. <br>&gt; <br>&gt; <br>&gt; Same crash.&nbsp; "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>That file should be in<br>~/.offlineimap/Repository-LocalFoo/UIDMapping/INBOX<br><br>Check if that has any null byte or looks otherwise corrupt (not in<br>number:number format).<br><br>There is barely any error checking or correction in that are of code :-(.<br><br><br>Sorry to be not of more help.<br>Sebastian<br></div></div>



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