Tag: imap

OfflineIMAP (github, website) – a great way to migrate email (docs here. Just moved my email from my webhost IMAP-server to a gmail account.

I had some problems connecting to gmail until I enabled “less secure apps” to access my account at https://www.google.com/settings/security/lesssecureapps. Also, Gmail automatically blocked my first access, so I recieved an email that I had to respond to (click a link and verify that it actually was me that tried to access my email – good feature).

Also, OfflineIMAP might complain about unknown certificate fingerprints and print them out. I just added them to the servers that needed them and hoped nobody had manipulated them.

Like this:

For a couple of years, I have forwarded all my email to my gmail account. This has been quite convenient. However, this has also resulted in workflow issues, or plainly put, me checking and replying to work related email messages when not working and vice versa.

So, I decided to separate my email accounts again. I have during these years, set up a number of labels etc in gmail that I wish to preserve.

After dragging and dropping email messages for a while, I started looking into how to automate this task. I have ended up using larch which works great. I create a config file where I enter all my details (source and target servers, source and target folders, folders to exclude, etc). larch can be used to recusively sync a specified folder tree which is the option I went for. It also automatically retries if there is a glitch.