Thunderbird POP to Gmail IMAP
October 29th, 2007 | Posted in Google, Techy Talk | 2 Comments
Scenario
My email client is Thunderbird. It has been for several years. So that’s several years’ worth of emails, attachments, filters, junk training and plug-ins. The set up is exactly how I would like it to be, well…almost. A feature I really would like to be a touch less painful is being able to share my emails between machines. Up until now I have gotten around this problem by sharing my profile folder, this works ok as long as you remember to close the client on all machines, otherwise you get the dreaded lock file error message. This is where IMAP comes in.
What is IMAP?
Why bother when Google explain it so well.
The Issue
Like I said earlier, I have many emails, attachments, filters which I don’t want to lose. In addition to this, GMAIL has the ability to cope with all that Thunderbird offers. The plan then was to transfer all my emails to GMAIL and set up filters and labels to ultimately end up with that I have in Thunderbird replicated in GMAIL. The major task being copying thousands of emails from a Thunderbird POP account to a GMAIL IMAP account.
Below is an explanation of what I had to do to move from POP to IMAP.
1. Firstly, Enable IMAP!
For some reason, IMAP still hasn’t been enabled in my account. To enable IMAP you need to switch your default language to “English (US)”. This will display the “Enable/Disable” IMAP option AND automatically enable it for you.
2. Setting up IMAP in Thunderbird alongside your existing POP account.
Again, just follow this tutorial. (Other clients)
I now have IMAP enabled in my Gmail account and have set up the account in Thunderbird.
You will notice some new folders under a folder called [GMAIL]. These are standard folders that exist in your Gmail account.
3. Copying emails from POP to IMAP
By simply dragging and dropping the folders from the POP account to the newly created IMAP account creates a label in Gmail AND uploads all emails for you. It is really that simple. It can take a while as it also uploads all attachments.
4. Set up filters
This, I decided, to do on a case by case basis. As a new email arrives, set up the new filter in GMAIL. Tedious, if not annoying, but I want to transfer control over to GMAIL.
… and there you have it. Easy innit!
My POP account remains active as I use it to download all my emails which I now use as a backup.
Here are some hacks and tools that improve how IMAP and Gmail behaves.
Trash can
As it stands, when you delete an email, it will end up in your LOCAL trash can and not in Gmail. To make all deleted emails end up in Gmail’s trash can you will need to modify user.js. There is a way of doing this by adding a new string within config but I could not get this to work whereas this tutorial worked fine.
Folder Labels
If you upload a folder which has subfolders, Gmail creates a label separated with slashes.
e.g. if you upload a folder called “Friends” which contains a sub-folder called “Bob” then all emails in “Bob” are labeled as “Friends/Bob”. So as you can imagine, folders with long names make the labels pretty much unreadable. Fortunately, there are two ways around this:
Folders4Gmail is a Greasemonkey scripts that takes the nested label structures and turns it into a clickable tree.
Better Gmail is a Firefox add-on that does the same, as well as many other mods. Well worth a look.
Other useful resources:
lifehacker.com/software/geek-to-live/ turn-thunderbird-into-the-ultimate-gmail-imap-client
http://userstyles.org/styles/search/gmail
http://blog.persistent.info/2005/12/greasemonkey-christmas.html
https://addons.mozilla.org/en-US/firefox/addon/1320 (Gmail Manager)
http://lifehacker.com/photogallery/top-10-unofficial-gmail-apps/











