<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to Migrate Emails from Maildir to Gmail</title>
	<atom:link href="http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/</link>
	<description>Faith, Technology and Randomness in Life, According to Scott</description>
	<lastBuildDate>Tue, 09 Mar 2010 18:56:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tob</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-99018</link>
		<dc:creator>Tob</dc:creator>
		<pubDate>Sun, 30 Aug 2009 10:11:56 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-99018</guid>
		<description>Thanks for this very handy script!

A very easy fix for the IMAP folder  GMail Labels correspondence problem described by Konstantin is to comment out lines 22 and 23, i.e.

#        else:
#            self.folder = &#039;[Gmail]/%s&#039; % self.folder

This prevents the script from prepending the [Gmail] string to the folder name which makes the e-mail show up under the specified label instead.

I you have a look at Gmails IMAP tree using a mail client like thunderbird, you see that labels are folders directly at the root, while the &quot;real&quot; folders like &quot;All Mail&quot; are subfolders of [Gmail].</description>
		<content:encoded><![CDATA[<p>Thanks for this very handy script!</p>
<p>A very easy fix for the IMAP folder  GMail Labels correspondence problem described by Konstantin is to comment out lines 22 and 23, i.e.</p>
<p>#        else:<br />
#            self.folder = &#8216;[Gmail]/%s&#8217; % self.folder</p>
<p>This prevents the script from prepending the [Gmail] string to the folder name which makes the e-mail show up under the specified label instead.</p>
<p>I you have a look at Gmails IMAP tree using a mail client like thunderbird, you see that labels are folders directly at the root, while the &#8220;real&#8221; folders like &#8220;All Mail&#8221; are subfolders of [Gmail].</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konstantin</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-98963</link>
		<dc:creator>Konstantin</dc:creator>
		<pubDate>Sat, 01 Aug 2009 17:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-98963</guid>
		<description>Thank you for providing this extremely helpful script!!! It allows me to complete an important item that had been on my to-do list for three years: importing all or most of my pre-Gmail email.

The script occasionally aborts when there is an error in a specific message. In those cases, I simply delete the message in question and rerun the script. It then continues to upload the remaining messages. I have not run into any other problems.

All my old mail was meticulously organized in folders. Therefore, for each Gmail label, I perform a separate import of the corresponding maildirs. I then perform a complex query (using the before: operator, among others) to isolate the recently imported messages and label them. Then I append to the complex query a negation of that label.

The whole process is taking several days requiring infrequent intervention. But we are talking about ten years of mail taking up over 5GB.</description>
		<content:encoded><![CDATA[<p>Thank you for providing this extremely helpful script!!! It allows me to complete an important item that had been on my to-do list for three years: importing all or most of my pre-Gmail email.</p>
<p>The script occasionally aborts when there is an error in a specific message. In those cases, I simply delete the message in question and rerun the script. It then continues to upload the remaining messages. I have not run into any other problems.</p>
<p>All my old mail was meticulously organized in folders. Therefore, for each Gmail label, I perform a separate import of the corresponding maildirs. I then perform a complex query (using the before: operator, among others) to isolate the recently imported messages and label them. Then I append to the complex query a negation of that label.</p>
<p>The whole process is taking several days requiring infrequent intervention. But we are talking about ten years of mail taking up over 5GB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick C</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-98703</link>
		<dc:creator>Nick C</dc:creator>
		<pubDate>Sat, 04 Jul 2009 19:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-98703</guid>
		<description>as a follow-up, this is likely not due to your script, as I get the same error with a couple of other scripts I&#039;ve tried, all of which are correctly parsing the date from the maildir files, and correctly setting the time when appending the message to the imap message list (yours does this too.) This always happens on the same messages, for all scripts, so I suspect the issue may somehow be at Google&#039;s end  (particularly given their warning about that problem likely occurring when uploading messages via imap.)</description>
		<content:encoded><![CDATA[<p>as a follow-up, this is likely not due to your script, as I get the same error with a couple of other scripts I&#8217;ve tried, all of which are correctly parsing the date from the maildir files, and correctly setting the time when appending the message to the imap message list (yours does this too.) This always happens on the same messages, for all scripts, so I suspect the issue may somehow be at Google&#8217;s end  (particularly given their warning about that problem likely occurring when uploading messages via imap.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nick C</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-98702</link>
		<dc:creator>Nick C</dc:creator>
		<pubDate>Sat, 04 Jul 2009 17:35:17 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-98702</guid>
		<description>This *mostly* worked - interestingly, the dates on a small minority of the uploaded emails weren&#039;t preserved, and were instead dated with the date of the import rather than the date the email was sent. This only happens for a small percentage of the emails (say around 5%), but is still annoying enough for me to not use the script (others may be less bothered though.)

Still, thanks a lot for posting your solution online!</description>
		<content:encoded><![CDATA[<p>This *mostly* worked &#8211; interestingly, the dates on a small minority of the uploaded emails weren&#8217;t preserved, and were instead dated with the date of the import rather than the date the email was sent. This only happens for a small percentage of the emails (say around 5%), but is still annoying enough for me to not use the script (others may be less bothered though.)</p>
<p>Still, thanks a lot for posting your solution online!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HellMind</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-97854</link>
		<dc:creator>HellMind</dc:creator>
		<pubDate>Tue, 24 Mar 2009 23:17:18 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-97854</guid>
		<description>How do I know if that append is a success :(</description>
		<content:encoded><![CDATA[<p>How do I know if that append is a success :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HellMind</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-97853</link>
		<dc:creator>HellMind</dc:creator>
		<pubDate>Tue, 24 Mar 2009 23:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-97853</guid>
		<description>My fix :=&gt; self.imap.append(&#039;INBOX&#039;,</description>
		<content:encoded><![CDATA[<p>My fix :=&gt; self.imap.append(&#8216;INBOX&#8217;,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HellMind</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-97852</link>
		<dc:creator>HellMind</dc:creator>
		<pubDate>Tue, 24 Mar 2009 23:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-97852</guid>
		<description>[00:06:52]: Connected to Gmail IMAP
  06:52.20 &gt; CNPK2 APPEND &quot;[Gmail]/All Mail&quot; (\Seen) &quot;11-Mar-2009 13:06:36 +0100&quot; {231839}
  06:52.24 &lt; + go ahead
  06:52.24 write literal size 231839
  06:52.84  CNPK3 LOGOUT
  06:52.90 &lt; * BYE LOGOUT Requested
  06:52.90 BYE response: LOGOUT Requested
  06:52.90 &lt; CNPK3 OK 73 good day (Success)</description>
		<content:encoded><![CDATA[<p>[00:06:52]: Connected to Gmail IMAP<br />
  06:52.20 &gt; CNPK2 APPEND &#8220;[Gmail]/All Mail&#8221; (\Seen) &#8220;11-Mar-2009 13:06:36 +0100&#8243; {231839}<br />
  06:52.24 &lt; + go ahead<br />
  06:52.24 write literal size 231839<br />
  06:52.84  CNPK3 LOGOUT<br />
  06:52.90 &lt; * BYE LOGOUT Requested<br />
  06:52.90 BYE response: LOGOUT Requested<br />
  06:52.90 &lt; CNPK3 OK 73 good day (Success)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: HellMind</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-97851</link>
		<dc:creator>HellMind</dc:creator>
		<pubDate>Tue, 24 Mar 2009 22:40:30 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-97851</guid>
		<description>There is no error.
But my gmail is clean
What&#039;s wrong
How can I debug this?</description>
		<content:encoded><![CDATA[<p>There is no error.<br />
But my gmail is clean<br />
What&#8217;s wrong<br />
How can I debug this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr JM</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-97805</link>
		<dc:creator>Mr JM</dc:creator>
		<pubDate>Mon, 16 Mar 2009 22:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-97805</guid>
		<description>I was contemplating moving to Gmail for a while, but did not want to give up 10 years of .maildir folder...

That python script just make me move over. Did few changes to it to suite my needs, wrapped a shells script around, and I am all converted (took 3 days thou).

Love it !!!!</description>
		<content:encoded><![CDATA[<p>I was contemplating moving to Gmail for a while, but did not want to give up 10 years of .maildir folder&#8230;</p>
<p>That python script just make me move over. Did few changes to it to suite my needs, wrapped a shells script around, and I am all converted (took 3 days thou).</p>
<p>Love it !!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vahid Pazirandeh</title>
		<link>http://scott.yang.id.au/2009/01/migrate-emails-maildir-gmail/comment-page-1/#comment-97773</link>
		<dc:creator>Vahid Pazirandeh</dc:creator>
		<pubDate>Tue, 10 Mar 2009 17:22:27 +0000</pubDate>
		<guid isPermaLink="false">http://scott.yang.id.au/?p=1862#comment-97773</guid>
		<description>Nice script (haven&#039;t used it, but python is always sexy :)

Consider also using Google&#039;s migration tool called Email Uploader: http://mail.google.com/mail/help/email_uploader.html

And more migration help from google: http://www.google.com/support/a/bin/answer.py?answer=61369</description>
		<content:encoded><![CDATA[<p>Nice script (haven&#8217;t used it, but python is always sexy :)</p>
<p>Consider also using Google&#8217;s migration tool called Email Uploader: <a href="http://mail.google.com/mail/help/email_uploader.html" rel="nofollow">http://mail.google.com/mail/help/email_uploader.html</a></p>
<p>And more migration help from google: <a href="http://www.google.com/support/a/bin/answer.py?answer=61369" rel="nofollow">http://www.google.com/support/a/bin/answer.py?answer=61369</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
