<div dir="ltr"><div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 31, 2015 at 3:06 PM, Martin Geisler <span dir="ltr"><<a href="mailto:martin@geisler.net" target="_blank">martin@geisler.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I've begun the long processo of pumping my mails from a local IMAP server to Gmail and OfflineIMAP seems to be a great tool for this.<br><br></div>There are various errors, however, and they make OfflineIMAP abort with tracebacks. When I restart it, it seems to pick of from there it was. It normally starts by deleting some mails from the remote (Gmail) end:<br><br>Folder INBOX [acc: mrtn]:<br> Deleting 43 messages (25671:25704,25706:25707,26388,26392,26481,26589:26590,26772,26795) in MappedIMAP[INBOX]<br><br></div>I hope this is normal? Will the mails be re-uploaded after the restart?<br><br>I'm a little puzzled why it would decide to delete and then (hopefully) upload the mails again?<br></div></div></blockquote><div><br>I got more curious and tried recording more of the output. Here I ran 
"offlineimap -f INBOX -1" four times, each time stopping it myself with 
Ctrl-C:<br><div><br> Syncing INBOX: Gmail -> MappedIMAP<br> Deleting 2 messages (39794:39795) in MappedIMAP[INBOX]<br> Copy message -2333 (1 of 3183) local:INBOX -> remote<br> Copy message -3183 (2 of 3183) local:INBOX -> remote<br> Copy message -3182 (3 of 3183) local:INBOX -> remote<br> Copy message -3181 (4 of 3183) local:INBOX -> remote<br> Copy message -3180 (5 of 3183) local:INBOX -> remote<br> Copy message -3179 (6 of 3183) local:INBOX -> remote<br> Copy message -3178 (7 of 3183) local:INBOX -> remote<br> Copy message -3177 (8 of 3183) local:INBOX -> remote<br> Copy message -3176 (9 of 3183) local:INBOX -> remote<br> Copy message -3175 (10 of 3183) local:INBOX -> remote<br> Copy message -3174 (11 of 3183) local:INBOX -> remote<br><br> Syncing INBOX: Gmail -> MappedIMAP<br> Deleting 5 messages (39796:39800) in MappedIMAP[INBOX]<br> Copy message -2333 (1 of 3172) local:INBOX -> remote<br> Copy message -3172 (2 of 3172) local:INBOX -> remote<br> Copy message -3171 (3 of 3172) local:INBOX -> remote<br> Copy message -3170 (4 of 3172) local:INBOX -> remote<br><br> Syncing INBOX: Gmail -> MappedIMAP<br> Copy message -2333 (1 of 3168) local:INBOX -> remote<br> Copy message -3168 (2 of 3168) local:INBOX -> remote<br> Copy message -3167 (3 of 3168) local:INBOX -> remote<br> Copy message -3166 (4 of 3168) local:INBOX -> remote<br> Copy message -3165 (5 of 3168) local:INBOX -> remote<br> Copy message -3164 (6 of 3168) local:INBOX -> remote<br> Copy message -3163 (7 of 3168) local:INBOX -> remote<br><br> Syncing INBOX: Gmail -> MappedIMAP<br> Deleting 2 messages (39803,39805) in MappedIMAP[INBOX]<br> Copy message -2333 (1 of 3161) local:INBOX -> remote<br> Copy message -3161 (2 of 3161) local:INBOX -> remote<br> Copy message -3160 (3 of 3161) local:INBOX -> remote<br><br></div>The
 first run copied 11 messages. You would expect the number of messages 
still to be copied to go down from 3183 to 3172 -- and this is what 
seems to have happened since the second run starts at 3172.<br><br>But what 
about the five deleted messages in the second run? What is going on 
there?<br><br></div></div><br>-- <br><div class="gmail_signature"><div dir="ltr">Martin Geisler<br></div></div>
</div></div>