<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><br><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;">
On Wed, May 04, 2011 at 12:55:28PM +0200, Sebastian Spaeth wrote:<br>&gt; On Tue, 3 May 2011 11:13:28 -0700 (PDT), chris coleman&nbsp; wrote:<br>&gt; &gt; It uses some python 2.6 syntax for the exception handling, and compile failed.&nbsp; <br>&gt; <br>&gt; Ohh right, for python 2.5 you would need to use it as you did. Nice<br>&gt; catch. <br><br>Could you resend a fixed patch, please?<br><br>&gt; &gt; Indeed that corrupt line is there.&nbsp; but it's a sequence of non-consecutive numbers... Here is an excerpt:<br>&gt; &gt; <br>&gt; &gt; 40213:<br>&gt; &gt; 40214:<br>&gt; &gt; 40215:<br>&gt; &gt; 40217:R<br>&gt; &gt; 40218:S<br>&gt; &gt; 40229:S<br>&gt; &gt; 4023(0x00)(0x00)P(0x00)(0x01)(0x00)(0x00)(0x00)0:S<br>&gt; &gt; 40261:S<br>&gt; &gt; 40262:S<br>&gt; &gt; 40264:<br>&gt; &gt; 40269:S<br>&gt; &gt; 40270:<br>&gt; &gt; 40276:<br>&gt; &gt; 40279:R<br>&gt; <br>&gt; Actually, all other lines are OK, they just have no flags. The only<br>&gt; damaged line
 is:<br>&gt; <br>&gt; 4023(0x00)(0x00)P(0x00)(0x01)(0x00)(0x00)(0x00)0:S<br>&gt; <br>&gt; I suspect that it is supposed to mean:<br>&gt; 40230:S<br><br>I wonder if it would worth to store more information about fetched<br>mails. If we had the Message-ID header or filename for example, we could<br>automatically repair the database.<br><br>---------------------------------------- <br>Nicolas ,<br><br>I agree it's wise to store the one additional piece of info (Message-ID appears like it could be a unique key), making it possible to regenerate the damaged file in a few seconds, up to a minute.<br><br>Without the Message-ID to identify each message absolutely, is it possible there could be a condition where the data in LocalStatus becomes useless, and that would force re-downloading and re-uploading the entire mailbox. On this particular INBOX there are 12385 messages - at 3-5 seconds per message , it would take ~13 hours to download all messages ( 26 hours
 if uploading and downloading each message).<br><br>Chris<br></div></div></div></body></html>