Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 03-10-2013, 01:33 PM   #1
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,316

Rep: Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017Reputation: 6017
IMAP Mailbox Migration utility for Gmail/iCloud and Calendar Migration tips

I recently ditched my iPhone in favor of a new Android phone. Not only is it faster, it does more. But...I was using iCloud for my email (thanks to the VERY tight integration with the iPhone). Naturally, it was IMAP, and I created lots of folders, sub-folders, and had a ton of stuff archived. Also naturally, Apple decided to not leave you any way to migrate FROM their system easily.

So, I wrote the attached program in Perl. It has one function: connect to two different IMAP systems (source and destination), and move EVERYTHING from the source to the destination. It creates the exact same folder structure, and copies all the messages over, automatically. I migrated from iCloud to Gmail in about 10 minutes. Should just have to modify the user ID/password/server names (obviously), and off it goes.

Also, when it comes to migrating your iCloud calendars to Google Calendar, there is an easy option. Make your iCloud calendar shareable, then copy the link it gives you. Run "wget http://<that link name>", to download the calendar to your local system. It's a huge hex string, but it's an .ICS file, so rename it to something useable. Then, go into Google Calendar, and import it. Done.

NOTE: The link will start with "caldav://", so change it to "http://" when you download it, otherwise it will fail.
Attached Files
File Type: txt IMAP-Message-Migrator.txt (3.0 KB, 16 views)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Mailbox user migration pythonn Linux - Server 5 01-31-2011 07:18 PM
LXer: Five tips for a smooth Linux migration LXer Syndicated Linux News 1 09-08-2010 03:00 AM
Mysql 4-5 migration as well as character set migration from latin1 to utf8? helptonewbie Linux - Server 3 05-15-2008 06:15 AM
Migration from Cyrus Imap format to Maildir minime Linux - Server 1 05-29-2007 11:41 PM
Mailbox Migration from MCIS to Cyrus mcTwix Linux - General 0 05-06-2004 06:11 PM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 10:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration