<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>Nicolas, I fully agree.  <br><br>We use offlineimap like an IMAP'ed version of fetchmail, to two-way sync our remote and local mailboxes.  It is such an important process, that when offlineimap is dying/crashing from bad data, that's terribly frustrating.  <br><br>The current error message doesn't give me enough clear info to know, beyond a doubt, which row of precisely which file is corrupt.  <br><br>( The corresponding message's date/time/from/to/subject, and whether it's in the local or remote repository, would be very great to have, as well.  )<br><br>Bonus: A non-destructive technique to regenerate the row of bad data would be amazing. If it somehow could just delete the bad row of garbage, and regenerate it fresh without triggering any further cascading gigabytes
 of data upload or download (except maybe the single message).<br><br></div><div style="font-family:times new roman, new york, times, serif;font-size:12pt">Your opinons??<br><br>Chris<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> 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> offlineimap mailing list <offlineimap-project@lists.alioth.debian.org>; Nicolas Sebrecht <nicolas.s-dev@laposte.net>; chris coleman <christocoleman@yahoo.com><br><b><span style="font-weight: bold;">Sent:</span></b> Thu, April 28, 2011 1:09:24 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: ERROR in syncfolder for (username) folder INBOX : null byte in argument for
 long()<br></font><br>
On Thu, Apr 28, 2011 at 02:54:35PM +0200, Sebastian Spaeth wrote:<br>> On Wed, 27 Apr 2011 23:09:36 -0700 (PDT), chris coleman <<a ymailto="mailto:christocoleman@yahoo.com" href="mailto:christocoleman@yahoo.com">christocoleman@yahoo.com</a>> wrote:<br>> > Nicolas, Sebastian, and the team:<br>> > <br>> > Here is the log from the my first user account which is crashing from the <br>> > corrupted data.  <br>> <br>> > This is OfflineIMAP 6.3.2<br>> > Python: 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) <br>> <br>> > WARNING: Error occured attempting to sync account username: Traceback (most <br>> > recent call last):<br>> <br>> >     (self.diskr2l, self.diskl2r) = self._loadmaps()<br>> >   File "/root/nicolas33-offlineimap-v632/offlineimap/folder/UIDMaps.py", line <br>> > 49, in _loadmaps<br>> >     (str1, str2) = line.split(':')<br>> >
 ValueError: too many values to unpack<br>> <br>> Yes, this looks like a corrupt UIDMaps file again. It loads the UIDMaps,<br>> expecting a line with one ':' but it seems to be getting a line with<br>> several ':' on it, which leads to the "too many values to unpack" error.<br>> <br>> So this is a corrupt UIDMaps file for sure. It is not encouraging to see<br>> that they can get corrupted repeatedly... :-(<br><br>Right. I think it's worth implementing a check for that. I'm thinking<br>about:<br><br>  1) catch the exception<br>  2) warn, giving all sensible information<br>  3) ignore/skip to not abort the whole sync<br>  4) document this issue in the FAQ<br><br>-- <br>Nicolas Sebrecht<br><br>_______________________________________________<br>OfflineIMAP-project mailing list<br><a ymailto="mailto:OfflineIMAP-project@lists.alioth.debian.org"
 href="mailto:OfflineIMAP-project@lists.alioth.debian.org">OfflineIMAP-project@lists.alioth.debian.org</a><br><span><a target="_blank" href="http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project">http://lists.alioth.debian.org/mailman/listinfo/offlineimap-project</a></span><br><br><span>OfflineIMAP homepage: <a target="_blank" href="http://software.complete.org/offlineimap">http://software.complete.org/offlineimap</a></span><br></div></div>



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