{"id":803,"date":"2010-01-13T11:02:43","date_gmt":"2010-01-13T18:02:43","guid":{"rendered":"http:\/\/jamesg.net\/?p=803"},"modified":"2010-01-13T11:17:51","modified_gmt":"2010-01-13T18:17:51","slug":"uploading-old-email-to-new-imap-account-the-fast-way","status":"publish","type":"post","link":"https:\/\/jamesg.net\/?p=803","title":{"rendered":"Uploading old email to new IMAP account&#8230;the fast way!"},"content":{"rendered":"<p>I nearly titled this &#8220;Uploading old email to new IMAP account&#8230;the <em>easy<\/em> way!&#8221;, but I&#8217;m afraid it might not be &#8220;easy&#8221; to those of you who haven&#8217;t had much experience using command line based programs.\u00a0 I certainly prefer the GUI, but after hours of trying to get Thunderbird to upload the email, I gave up.\u00a0 The task before me was to upload about 19,000 emails from my boss&#8217;s old computer to our new email server hosted with <a href=\"http:\/\/www.rackspace.com\/email_hosting\" target=\"_blank\">RackSpace Apps<\/a>.\u00a0 Most of the commands here can be used to import email into RackSpace Apps with very little change, but can also be adapted to import email into gmail as well.<\/p>\n<p>Step 1 &#8211; <a href=\"http:\/\/imap-upload.sourceforge.net\/\" target=\"_blank\">Download<\/a> this email upload python script from sourgeforce and download <a href=\"http:\/\/www.activestate.com\/activepython\/\" target=\"_blank\">ActivePython<\/a>.\u00a0 ActivePython is a bit easier to install than the default Python because it automatically configures the command line stuff, which is why I recommend it in this tutorial.<\/p>\n<p>Step 2- Extract the .zip file.\u00a0 Make sure to copy the file path as seen in the screen shot, this will make the next command line steps easier.<br \/>\n<a href=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/1_unzipped.jpg\" rel=\"lightbox[803]\"><img loading=\"lazy\" class=\"alignnone size-thumbnail wp-image-804\" title=\"Window after unzipping IMAP Upload\" src=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/1_unzipped-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>Step 3- Open a command prompt.\u00a0 Go to Start-&gt;run and type &#8220;cmd&#8221; then click OK.<br \/>\n<a href=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/2_open-cmd-prompt.jpg\" rel=\"lightbox[803]\"><img loading=\"lazy\" class=\"alignnone size-thumbnail wp-image-805\" title=\"Opening a command prompt from the run dialog.\" src=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/2_open-cmd-prompt-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>Step 5 &#8211; Navigate to the folder the python script is in.\u00a0 You can do this by typing &#8220;cd &#8221; (include a space) and then right clicking and pasting the file path you copied back in step 2.<br \/>\n<a href=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/3_change_dir.jpg\" rel=\"lightbox[803]\"><img loading=\"lazy\" class=\"alignnone size-thumbnail wp-image-806\" title=\"Changing directory path in a windows command line.\" src=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/3_change_dir-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n<p>Step 6 &#8211; Locate your MBOX file and copy it into the python script directory.\u00a0 You can leave it where it&#8217;s at (obviously), but I&#8217;m writing this to be as easy as possible.\u00a0 <a href=\"http:\/\/www.mozilla.org\/support\/thunderbird\/profile\" target=\"_blank\">Click here<\/a> for directions finding your Thunderbird mbox file.<\/p>\n<p>Step 7 &#8211; Run the following Python command, replacing &#8220;example.com&#8221; with the address of your IMAP server and then enter your username and password when it asks.\u00a0\u00a0 It took 5 or 10 minutes to get past the &#8220;Counting the mailbox&#8221; screen for me.\u00a0 Takes a while longer to finish the upload, especially if you&#8217;re like me and have almost 2GB of email you have to upload.<\/p>\n<ul>\n<li>python imap_upload.py &#8211;host secure.emailsrvr.com &#8211;port 993 &#8211;ssl &#8211;box imported inbox.mbox<\/li>\n<\/ul>\n<p><a href=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/4-running-command.jpg\" rel=\"lightbox[803]\"><img loading=\"lazy\" class=\"alignnone size-thumbnail wp-image-812\" title=\"Running IMAP upload from the command line in Windows 7\" src=\"http:\/\/jamesg.net\/wordpress\/wp-content\/uploads\/2010\/01\/4-running-command-150x150.jpg\" alt=\"\" width=\"150\" height=\"150\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I nearly titled this &#8220;Uploading old email to new IMAP account&#8230;the easy way!&#8221;, but I&#8217;m afraid it might not be &#8220;easy&#8221; to those of you who haven&#8217;t had much experience using command line based programs.\u00a0 I certainly prefer the GUI, but after hours of trying to get Thunderbird to upload the email, I gave up.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[6],"tags":[160,159,161,134],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/jamesg.net\/index.php?rest_route=\/wp\/v2\/posts\/803"}],"collection":[{"href":"https:\/\/jamesg.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jamesg.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jamesg.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jamesg.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=803"}],"version-history":[{"count":10,"href":"https:\/\/jamesg.net\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions"}],"predecessor-version":[{"id":815,"href":"https:\/\/jamesg.net\/index.php?rest_route=\/wp\/v2\/posts\/803\/revisions\/815"}],"wp:attachment":[{"href":"https:\/\/jamesg.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jamesg.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jamesg.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}