{"id":723,"date":"2009-05-21T17:29:28","date_gmt":"2009-05-22T00:29:28","guid":{"rendered":"http:\/\/gregbaker.ca\/blog\/?p=723"},"modified":"2009-05-21T21:45:31","modified_gmt":"2009-05-22T04:45:31","slug":"imapsync-migration","status":"publish","type":"post","link":"http:\/\/gregbaker.ca\/blog\/2009\/05\/21\/imapsync-migration\/","title":{"rendered":"imapsync migration"},"content":{"rendered":"<p>A quick technical note&hellip;  I just want to get this down so it&#8217;s findable later.<\/p>\n<p>I was trying to move my mail from FASnet to the new Zimbra server.  The <a href=\"http:\/\/wiki.zimbra.com\/index.php?title=Mail_Migration\">Zimbra wiki suggests imapsync<\/a> to migrate mail from one IMAP server to another.<\/p>\n<p>When I tried that, imapsync insists on spidering every folder on the source server to see what&#8217;s there.  Since FASnet is set up in its own particular fashion, that means it will look through every file in my home directory.  That&#8217;s a lot of load on the IMAP server and something that caused the system admins to ask me nicely to stop.<\/p>\n<p>To prevent the spidering, I replaced this line in the imapsync script:<\/p>\n<blockquote><p><code>my @all_source_folders = sort $from->folders();<\/code><\/p><\/blockquote>\n<p>with this:<\/p>\n<blockquote><p><code>my @all_source_folders = ();<\/code><\/p><\/blockquote>\n<p>As long as you specify a <code>--folderrec<\/code> (or <code>--folder<\/code> or <code>--subscribed<\/code>) and no <code>--include<\/code>, it will still work just fine.  My command line was:<\/p>\n<blockquote><p><code>.\/imapsync --host1 imap.css.sfu.ca --user1 ggbaker --host2 imapserver.sfu.ca --user2 ggbaker   --noauthmd5 --folderrec mail --exclude old --prefix1 mail --prefix2 fasnet  2>&amp;1 | tee log<\/code><\/p><\/blockquote>\n<p>Everything seemed to work, and it looks like I have my email moved over.  The line in the imapsync summary &#8220;Total bytes skipped: 36444&#8221; worries me a little.  I wonder what those bytes were.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A quick technical note&hellip; I just want to get this down so it&#8217;s findable later. I was trying to move my mail from FASnet to the new Zimbra server. The Zimbra wiki suggests imapsync to migrate mail from one IMAP server to another. When I tried that, imapsync insists on spidering every folder on the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-723","post","type-post","status-publish","format-standard","hentry","category-tech"],"_links":{"self":[{"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/comments?post=723"}],"version-history":[{"count":7,"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/723\/revisions"}],"predecessor-version":[{"id":730,"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/723\/revisions\/730"}],"wp:attachment":[{"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=723"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gregbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}