Turn Thunderbird into the Ultimate Gmail IMAP Client

Gmail's IMAP support roll-out this week had nerds all atwitter about the possibility of synchronised email access across devices, computers, and clients. IMAP is far superior to regular old POP for fetching your messages and maintaining your folder list whether you're on your iPhone, office or home computer. If IMAP's got you curious but you're not sure what desktop application to use with Gmail, consider the extensible, fast, cross-platform and free Mozilla Thunderbird, our beloved Firefox's little sibling. Here's how to get the full Gmail experience in Thunderbird with IMAP.
What's IMAP?
Internet Message Access Protocol (Wikipedia page) enables email programs to read messages stored on the server. Unlike POP, with IMAP it's as if you're browsing a network drive of files on a remote server with an open, live connection to that server; whenever you open a folder or view a message, it's displayed from that server live. IMAP maintains a constant connection with your server and updates real-time.
Why is IMAP better than POP?
POP downloads and copies new messages to your local inbox. With POP you can download once and disconnect from the server, which is its one advantage. But you cannot download messages that have already been archived and labelled in Gmail via POP, and your client has to poll the server to get new messages. With POP access, if you move a message to a folder or star it in your desktop client, that change is not reflected in Gmail and your messages get out of sync. Any rules or mail filters you set up on one machine with a POP client have to be set up and reprocessed with a fresh download on all your other machines.
Think of POP as copying files from a server to your computer and working with them on your hard drive. Think of IMAP as connecting to a remote server and working with the files saved there.
Why Thunderbird (and not Mail or Outlook)?
We're naturally biased towards open source software here at Lifehacker, but there are good reasons why Thunderbird is the best desktop client choice out there for Gmail IMAP access:
- It's extensible. Like Firefox, a wide variety of optional Thunderbird extensions can add features and functionality other clients only dream about.
- It's free and cross-platform. You work on a Mac? PC? Linux desktop? Unlike Mail.app or the various flavors of Outlook, Thunderbird just works everywhere. Plus, there's a handy portable version that can run from your thumb drive, too.
Set up Thunderbird correctly for Gmail IMAP
First things first. Once you're fetching your email via IMAP with Thunderbird (here's Google's tutorial on how to do that), there are two settings you'll want to set manually: specifically, where Thunderbird should store sent messages and drafts. In your IMAP account settings, the Copies & Folders area, be sure to change the default location for Sent and Drafts to [Gmail]/Sent Mail and [Gmail]/Drafts respectively, as shown.

Even after you do this, you'll notice a few strange labels in your Gmail account: [Imap]/Sent, [Imap]/Drafts and [Imap]/Trash. These are Thunderbird's default Sent, Drafts, and Trash folders. Once you make the change to your account settings, you can delete those labels in Gmail and they won't get regenerated. (Note: except for [Imap]/Trash, which I can't rid myself of entirely, since T-bird seems married to it. Bueller? Update: see the next section for the solution to the [Imap]/Trash label.)
Set Thunderbird to use Gmail's Trash folder (UPDATE)
Reader Vanl explains how to set T-bird's trash folder correctly, which involves some Thunderbird configuration editing. Here's how:
- From the Tools menu, choose Options.
- Go to the "Advanced" Option menu and the "General" tab. Hit the "Config Editor" button next to the "Advanced Configuration" label.
- Now you need to look around in there a bit to find which server you need to modify. Using the filter entry box at the top, type in mail.server.server and you will see a list of keys and values. One of those keys will be mail.server.serverX.name, where X is a number and the value is the name of your Gmail IMAP account. Remember X.
- Right-click somewhere in the box and select New->String.
- A dialog box will pop up asking for the name of your new key. Put in mail.server.serverX.trash_folder_name, where X is the number you remember from above. (For example, mine is mail.server.server2.trash_folder_name.)
- A new box will come up asking for the value of your new key. Put in [Gmail]/Trash.

- Go to Gmail's web interface and delete the label [Imap]/Trash.
- Restart Thunderbird.
Thanks Vanl!
How Thunderbird actions map to Gmail
Before we move into Thunderbird tweaks and add-ons, check out this chart of what actions in your client will do in web-based Gmail, courtesy of Google.

Note that Gmail labels do NOT map to Thunderbird's tags. Each label is represented by an old school folder in Thunderbird. If a message has more than one label, it will appear in multiple folders, which is very cool. To label a message in Thunderbird, move it to the appropriate folder. To create a new label in Gmail, create a new folder in Thunderbird, and so forth.
Subfolders and Slash Labels
If you move a message into a subfolder of a folder in Thunderbird, over in web-based Gmail you'll see a label named parent folder/child folder. Conversely, any labels with forward slashes in them will create subfolders in T-bird. You Folders4Gmail users in Better Gmail may absolutely love this. (Note: the Folders4Gmail script has been updated to support the IMAP forward slash as well as a backslash; Better Gmail to follow very soon. Thanks, Sean!)
Combine Gmail's Spam-killer with Thunderbird's Adaptive Junk Filter
Along the same lines as setting the Sent and Drafts folders to align above, if you enable Thunderbird's Junk filter, make sure it moves junk mail to Gmail's Spam folder so that Gmail marks it as spam as well. That way the bird's adapative filter can teach Gmail as it learns. Here's that setting:

Get Gmail Goodness in Thunderbird
Thunderbird has a few features built-in or easily added that are similar or match Gmail web-based functionality in a rich desktop app. Like:
- Threaded conversation view. Ok, so it's quite as nice as Gmail's web-based implementation, but you can view messages by thread. Click on the tiny "display message threads" button to see replies in a hierarchical order in Thunderbird, as shown:

Collapse the thread by hitting the - sign, and new replies to a message won't create a whole new line in the list.
- Gmail search operators and keyboard shortcuts. The GMailUI Thunderbird extension adds Gmail keyboard shortcuts (like y to archive, j/k to move up and down the message list), and Gmail advanced search operators to Thunderbird's search box (like subject:hi from:gidget.)
Set the y key to move messages to your [Gmail]/All Mail folder, which will archive messages in Gmail.

There are other Thunderbird keyboard shortcut extensions (I'm also partial to TB Quick Move) but nothing as elegant as Gmail Macros on the web side for you Greasemonkey or Better Gmail users. Let us know if you've got a better alternative.
Enjoy Thunderbird-Specific Features
Getting your Gmail in Thunderbird via IMAP means you get T-bird-specific happiness too, like:
- Sorting messages by size. Anyone who's had a nearly-full Gmail account knows the tedious, manual process that is freeing up space. In Thunderbird, you can do the one thing Google wouldn't let you do in Gmail: Sort your messages by size, so you can target the space hogs. To do so, hit the small button on the right-most side of the column header list, and select Size to show message sizes. Then click the Size header to sort ascending or descending, and delete the hefty messages directly from Thunderbird. Thanks, Vsack!
- Drag and drop message import. Want to bring old email from other accounts into Gmail? While connected via IMAP, drag other messages stored in Thunderbird to your Gmail folders, for instant import with all the old message headers intact. Much better than the other convoluted methods we've recommended in the past. Thanks, Irian!
- Reply before or after the quote. You need a Firefox extension like Better Gmail to do this in web-based Gmail, but in Thunderbird you can easily set whether you want your replies to appear above or below quoted text, as shown in your account preferences:
You can also automatically select the entire quote for easy chopping up in your reply, and set whether your signature appears above or below your quote. - Better multiple identity and signature management. Set up multiple "identities" in Thunderbird with email address-specific signatures, which you can't do in web-based Gmail. Hit the "Manage Identities" button in your Account Preferences dialog. The various identities you choose will be available as a dropdown in the From: field in new messages, just like in web-based Gmail. You can also create and automatically attach a vCard to your outgoing messages on a per-identity basis with T-bird, and choose to compose your messages as HTML or plain text per identity, too. (Click to enlarge screenshots of the identity manager.)
- Better filters. Gmail's filtering mechanism and interface is OK, but Thunderbird's is better. Case in point: you can specify in what order filters should be applied to incoming messages. Check out our essential email filters for ideas.
- Manage form letters with the QuickText extension. Easily send canned responses that contain message-specific variables like sender name with the excellent QuickText Thunderbird extension. Here's how to knock down repetitive email with Thunderbird and QuickText.
I've only had limited time with the amazing combination of IMAP, Gmail, and Thunderbird, so I'm sure I missed some things here. How are you using T-bird/Gmail/IMAP? Let us know in the comments.
And for more ways to enhance Thunderbird, check out our previously posted eight killer Thunderbird extensions.
Gina Trapani, the editor of Lifehacker, is thrilled to have the Holy Email Trinity of Thunderbird, IMAP and Gmail together at last. Her weekly feature, Geek to Live, appears every Saturday on Lifehacker AU.



View: AU Comments (4) | US Comments (113 comments)
Sorry but the way The Gmail Imap and Thunderbird trash deletes work is impossible.
see this completely unhelpful help
https://mail.google.com/support/bin/answer.py?answer=78892
which I came to from http://groups.google.com/group/Gmail-POP-and-Forwarding/browse_thread/thread/9f0ed59ece19741a/c31df89344a5fdcd?lnk=gst&q=thunderbird+trash+imap#c31df89344a5fdcd
on which I have just posted My Method
A normal Thunderbird delete puts in the account Trash (not the Gmail/
Trash). the web item is labelled imap/trash
Empty the trash and disappears from TB but web still there now without
label.
try the Remove immediately or Mark as Delete and nothing gained.
Delete on web and it appears in TB Gmail/trash and then a web empty
trash will remove completely
So all I can see is Delete and Put into account/Trash in TB and the
web will have a Imap/Trash label.
Goto web on left menu select Label Imap/Trash and then Select All and
Delete and then go to web Trash and Select All and Delete Forever and
all disappears from Web and TB
I notice that Gmail setup for TB shows a blank on the TB box Delete on
exit - and that indicates they must mean this way of operating. And
also never click Empty Trash in TB on Imap accounts.
Perhaps to avoid that create a Trashfuture folder in TB and use that
Label on Gmail for the Delete routine - which may stop an Empty trash
Thanks for all the clues
you say "If a message has more than one label, it will appear in multiple folders" adding "which is cool"
but for me, all mail is now in at least two of allmail, inbox, and a label.
As i was using google labels as tags, mails are often in several folder. this is really really slow, and painful also: as deleting an email just removes one label from it.
I have reverted to zero gmail labels, and just let spotlight and google search sort out the good from the bad on fly.
tim
One key feature that I and others have been looking for that IMAP doesn't give you is access to your GMail contacts. Well it turns out that Lifehacker has already given us the answer! After a few minutes of searching around I found that it's possible by using a combination of GCALDaemon and the Contacts Sidebar Add-On to use and see all of your GMail contacts in Thunderbird.
Install and set up GCALDaemon (just remember to 'install' and 'start' the service - that had me stumped for a while!). This gives you the ability to search for contacts when creating new emails. Enter '*' (without quotes) into the contacts search box and you'll get a full list.
Add the Contacts Sidebar Add-On though and its default setup will automatically download your Gmail Contacts for you to view whenever you want (as long as you're online).
GCALDaemon: http://tinyurl.com/336kln
Contacts Sidebar: http://tinyurl.com/2b9why
Umm instead of using the configuration editor to use the trash folder. Just add "[Gmail]" to your "IMAP server directory" under the Advanced Account Settings for the Gmail account Server settings.
Instructions are as follows
1) Choose tools then Account Settings
2) Select the Gmail account and choose "Server Settings"
3) In the Server Settings section choose the "Advanced" button
4) Add "[Gmail]" in "IMAP server directory" (without the quotes of course)
5) Choose OK and OK again.
6) You then may need to delete the label create by thunderbird in gmail.
Hey, if I set this up, does it actually download everything to the local IMAP client access account? I run portable TBird on a thumb drive and don't want to suddenly fill it up with a GMAIL account. That's what Gmail is for...
holocron
Quick tip for getting thunderbird to check ALL of your mail folders instead of right clicking each of the folders and putting a check mark next to "check this folder".
Thanks for the tutorial. Only problem I'm having is the slowness related to having so many messages in each folder.
Crestien
Is there a way to quickly "archive" mail, like in the web interface? Is there some extension that places a button in the toolbar that moves the message to [Gmail]/All Mail for you?
MePerson
FYI. I have Google Apps and the Trash folder fix didn't work for me. I looked at how it was storing the other remote folder names on the back-end. Instead of just [Gmail]/Trash I had to use the following:
imap://username%40domain.org@imap.gmail.com/[Gmail]/Trash
Once I changed it to this and restarted ThunderBird it worked as advertised.
Second blurb (someone may have mentioned this) if you leave the "Templates" folder to the default, and you have to "Templates" label the messages will just go into oblivion. (Like my deleted messages were until I fixed the Trash folder handling.)
Chris
No offense, but Gmail IMAP in Thunderbird sucks bigtime. I've found no compelling reason whatsoever to have it...I switched it and went back to pop access. Honestly, the stupid labels...the subfolders you can't delete...you can't control your own inbox AT ALL. It's rather silly.
I can see why it would be cool for phones, but it sux bigtime for thunderbird.
devnet
@farhanvirji:
I can see both my incoming and outgoing mails in a thread if I check the "All Mail" folder instead of the "Inbox."
eyeonbooks
If you are a UK user of Gmail and you have setup your language for prop^H^H^H^H UK English, you may get IMAP quicker by switching to US English, then saving.
Ok you have to deal with Trash instead of Deleted Items, but hey. Maybe they'll fix it for those of us who talk like the Queen. Innit!
dunxd
Works great for me. Then I added Lightning so I have my Google Calendar also in Thunderbird. Surely there is a way to get my contacts synched in there too.
Now that would be an Exchange/Outlook/OWA killer by a LONG way!
dunxd
Somebody from Digg pointed this article to me as a response to my first impressions of GMail's IMAP on Thunderbird. In all honesty I have waited for this feature for so long.
For a lot of reasons, I prefer using Thunderbird for sending e-mails. It does not make sense for me to spend 10 minutes to setup all the advanced configuration settings when my regular IMAP accounts map to the proper folders correctly the first time.
This assumes we are all using Thunderbird but what other IMAP clients?
Also, it should be possible to share address books in IMAP. I wonder why this was not done?
I'm not complaining though, GMail is free and very robust and powerful and I am eternally grateful for this piece of software ... I guess all I'm saying is that it's not as good as I initially hoped it would be.
Dennison Uy - Graphic Designer
Regarding the setting of "Sent Mail" in Gmail IMAP clients, when you are using Outlook 2007 it matters as you will get two sent emails in the "Sent Mail" folder. If you use Thunderbird, it doesn't matter you will get only one copy.
BlackBeard
I finally got IMAP on domain!
Set up IMAP on TB using Google's tutorial, and it downloaded almost everything, including all labels. And then a folder that says "[Gmail]" with the sentmail, trash, etc as it's sub folders. No hitch.
I guess a v2 of this tutorial including all the 1023432898 tips on this comment board will receive a hi5 from me!
Shoeb Ahmed
oops ... sorry about the double post. i didn't think the first one went through
OriginalGabriel
Hrm/
So, IMAP was just enabled on my account but, before I jump headlong into what will be a long session of downloading messages, anyone know how to deal with multiple "Send From" accounts with IMAP?
Currently I have about 5 or 6 addresses which either forward to Gmail or are checked via POP in Gmail and I'd like to have that mirrored in Thunderbird but I'm not sure how all that will work out via IMAP since they're all on the same server (Gmail).
OriginalGabriel
@superm1: I submitted a help request to Google for this. I guess I'll have to wait and see. Very frustrating.
msiege2
One of the main reasons I use the gmail web client is because of the conversation viewer. I love how gmail groups the messages into a conversation - even ones that you have sent.
The feature in Thunderbird and Outlook that lets you group the conversations is not as good as gmail's web interface. The reason being that it does not show your sent emails in the conversation like gmail does. Is there a script that will do this in Thunderbird?
farhanvirji
@MSIEGE2
Exact same problem. It's so freaking annoying! I can't figure out what to do about it yet. I went through and spent an hour or two making all these custom filters only to see this happen. I can't use thunderbird until I find a fix for this. If you find anything that helps, please post it!
superm1
@REGE: I am having the same issue. When I apply a filter to a message and have it move the message to a folder other than INBOX, the message is somehow marked as read. This is causing me not to know that messages have come in if they are filtered into a folder.
Is anyone else seeing this, and does anyone have a solution to the problem?
msiege2
Is anyone else having the problem that after setting this up in thunderbird, my firefox gmail access is broken? I get an error saying: you have been signed out of this account. this may have happened because another user signed in on the same browser.
This happens now no matter what machine I'm on, whether any of the other machines are turned on or not, etc. The only place it does NOT happen? Anytime I use (gasp) IE - then we're cool. Also still works mobile (thank god).
Any ideas? The only thing i've changed is to set up mozilla and imap!
TechTalk
@rflint: If you change the root folder to [Gmail] then all your label folders do not show up, so this unless you don't have any labels, this isn't such a good idea.
Thanks for the right clicking on the folders tip to check mail for each label/folder. Little bit of a pain if you have 20 labels though, too bad you can't do it for all folders and all new folders/labels that are created.
petebocken
@likuidkewl: No luck for me! I tried all of these things... still no IMAP :-(
LubsyB
@rflint: Nice tip for setting the root folder. Except that I can't figure out how to get the "tag" folders to appear in the hierarchy. I'm going back to the original settings. Having folders representing Gmail's tags combined with the Nostalgy add-on is an awesome way to tag in Thunderbird.
Posco Grubb
anyone still not got IMAP on their account?
Joe.Andersen
This tutorial rocks. I've been looking for a way to manage my GMAIL account outside of the clunky web interface. Thanks!
BigSquareDot
@Gina Trapani, Lifehacker Editor: Nope, only one copy in Gmail. It's kind of like when you send email to yourself it only shows up once. Gmail only shows the message once in sent mail but then you can see the same message in your inbox and of course in All Mail.
petebocken
@Gina Trapani, Lifehacker Editor:
I think you're right. Because I used to use POP3 w/ Thunderbird, then went back to Gmail's web interface. I was worried my sent messages wouldn't show up, but lo and behold they were there.
Andrew Min
@petebocken: Because I believe that if you use Gmail's SMTP server it puts a copy of the message in your Gmail anyway, so saving it to your Sent items will create two copies. Haven't confirmed this yet (was using another SMTP server.)
Gina Trapani, Lifehacker Editor
@joelena:
I like these ideas. I was wondering, in TB would it be possible for me reply to a message that comes into my gmail inbox via one of my other accounts, and have my reply to address match the address of my account that they originally sent their message to (Like I have it set to do in Gmail's Web interface)? Or do I have to reply to them by creating a new message within that separate account in TB? Thanks for any help.
illusionactor
I would like to figure out how to do this in Windows Live Mail Beta (formerly Windows Live Mail Desktop beta).
Anyone?
gpzbc
@teemo: Good catch. Here's what I'd say:
* Re: saving sent messages on the server. If you're using an SMTP server other than Gmail's, then do. If not, then don't. Good point made here.
* Re: deleted messages. This sounds like Google encouraging users to archive instead of delete their messages. I only delete stuff I don't want any more, and so I'm ok with using the Trash.
* Re: drafts. No change from above.
Gina Trapani, Lifehacker Editor
Gmail has a "recommended IMAP settings" page up at: [mail.google.com]
It says a couple things that counter the settings in the tutorial:
# Do *NOT* save sent messages on the server. If your client is sending mail through Gmail's SMTP server, your sent messages will be automatically copied to the [Gmail]/Sent Mail folder.
# Do *NOT* save deleted messages on the server. Messages that are deleted from an IMAP folder (except for those in [Gmail]/Spam or [Gmail]/Trash) only have that label removed and still exist in All Mail. Hence, your client doesn't need to store an extra copy of a deleted message.
# DO save draft messages on the server. If you want your drafts in your mail client to sync correctly with your Gmail account's web interface, set your client to save drafts to the [Gmail]/Drafts folder.
So, which is it?
teemo
I have a curious situation. I have been using gmail as pop3 email for a long time with outlook. I'd love to use gmail's IMAP but setting it up requires me slowly transferring my 500mb mail box into Gmail.
Is there a way to "speedily" move my mailbox to gmail and then setup the IMAP?
AvatarZ
I've just set up IMAP on Thunderbird 2.0.0.6-Windows XP- and I've had
a problem with the way that filters act.
With POP access when a message was filtered in to a folder it remained unread. The folder would appear in bold and the number of
unread messages in it would be indicated by a number in parenthesis adjacent to the filter name.
With IMAP the message is marked as read an instant after it is filtered into the folder and the filter name goes back to unbolded. The filters do not include the action "mark as read". The messages
are also marked as read on the Gmail server
This behavior occurs only with the folders which have Gmail equivalents. If I set the filter to move the message to a folder on
Local which have no Gmail equivalents, then then the behavior is the same as in the POP case. While I'm not sure what is going on, this suggests to me that Gmail, not Thunderbird, is marking the message as
read when it is tagged with a label by a filter.
Has anyone else had this problem? Has anyone found a more elegant solution than the one I am currently using? The problem with my solution is that if I take any action on an email in the Local folder they don't translate to an action on the Gmail server. I am stuck doing everything twice in Thunderbird rather than doing everything twice, once in the Bird and once on the Gmail server, when I used POP.
rege
I just thought I'd add another benefit: you can choose to use your other accounts' SMTP servers to send messages, instead of spoofing the address with Gmail's servers. You can set the default SMTP server for each account on its main "Account Settings" page, and there are a couple of extensions (though both appear to be early versions) that allow other ways of choosing the outgoing server if you need more flexibility.
joelena
ok, i found the option to move message in spam folder when "mark as spam". it should be checked by default....
now if i could have a button to archive (without keyboard shortcuts)
philou
OK, i could set up TB. (even the trash folder stuff)
one thing i don't get in TB: if i click the "mark as spam" button (the fire thing), it doesn't move my message away from the "TB inbox".
I did set it up as explained above, so i guess it is reported as spam in gmail but if it doesn't move that message away, it's kind of pointless. i wanna use that spam button.
having an archive button in TB would be great too. is that possible? (i don't wanna keyboard shortcuts...)
thx
philou
Ok second time at this, so it is going to be shorter.
For those of you still waiting on IMAP double check and make sure that POP is disabled in your accounts. If it is not disable it saving the changes, log out. Wait about 5 minutes and then log back in, have a look in the settings and it 'should' be available now. This worked for two different gmail accounts today on my end. I hope this will help some of you.
_Dan
likuidkewl
@digit.al: @tid05: @madeinbrazil:
To use multiple "reply-to" addresses in Thunderbird and have them show up in your Gmail "Sent Mail" folder:
1. Add the POP settings to Thunderbird for each of the accounts you want to use. You can set them to never check for new messages.
2. In "Account Settings", under "Copies and Folders", set each of those accounts to save a copy to the same folder in Gina's screenshot above. You can now choose "Other" and the dropdown will have [Gmail] folders in the menu tree.
I just tried it out; it works like a charm!
Another great reason to use Thunderbird - multiple signatures. I wasn't sold on this whole IMAP thing, but big thanks to Gina and all of the above commenters for listing all those benefits and convincing me to give it a try!
joelena
A question about Threaded Views in Thunderbird:
It seems that it's not quite as "friendly" as described here, unless I'm missing something. Although emails from everyone else in a thread a shown on Thunderbird, my own replies are not there. Of course, on Gmail via the web interface, all emails, including my own responses, are properly "threaded" via the Conversation layout of Gmail online, but in Tbird, my own replies ain't there. Am I missing something?
28pfds
It's too bad label support is dependent on folders. It really defeats the strengths of labels in that one message can have multiple labels. Hopefully the GMail folks will find a way to make IMAP work with tags or perhaps some clever developer will come up with an extension.
wolfsong
@petebocken: I think Gmail has updated its IMAP capabilities since this tutorial was released. I just setup my IMAP account in Thunderbird without tinkering with the "Config Editor" to Set Thunderbird to use Gmail's Trash folder. I also didn't get those subfolders and Slash labels created in my web-based Gmail. It all works fine on both ends.
aviator1
I have some suggestions regarding handling multiple identities. Specifically, I wanted to have a single Thunderbird account using Gmail's IMAP, but I wanted to also send messages that appear to come from my home email (provided by my ISP).
I have Gmail pulling from this POP account, but I didn't like how it sends mail for other accounts because it has to go through Gmail's SMTP server. If the recipient uses Outlook, for example, the from address is displayed as "GmailUser on behalf of HomeEmailUser".
Thunderbird can do this by using your ISP's SMTP server, and the messages never go through GMail's servers. You can still keep a copy of the Sent mail in Gmail.
The steps in Thunderbird are straightforward:
1) Add another SMTP server in Thunderbird that is set to your ISP's SMTP server. This is at the bottom of the Account Settings interface.
2) At the top option, select Manage Identities and create an identity that represents your home email account. Set the SMTP server to the new SMTP you created. On the Copies and Folders tab, select the folders as described in the article.
I also recommend turning off the option in Thunderbird to keep a copy of sent items for the Gmail identity. When a message is sent through Gmail's servers, it is automatically archived with the Sent Items label. Having Thunderbird also save a copy results in a duplicate in Gmail.
hurcane
@petebocken: To get Thunderbird to check a folder at startup, you have to right-click > Properties and then set "Check this folder for new messages".
Cl1mh4224rd
This is a test message, since Lifehacker just ate a long post describing a better way to set up GMail for Imap.
Yemen
Ok, Great article, but way more complicated then it needs to be. An easier way to get all the folders mapped over (and I know this works, since I am doing it).
Once you have the basic settings in place, go to Account Settings/Server Settings and click advanced. Under the IMAP server directory, enter [Gmail], including the brackets.
Now you will see your Gmail folders at the top level, and your Gmail inbox, trash, and drafts will all use thunderbird's icons. The only remaining setting is to map your Sent folder to the Gmail Sent Mail folder under Account Settings/Copies & Folders, and your Junk folder to Gmail's Spam folder under Account Settings/Junk Settings.
This way anything deleted from the Spam or Trash folders in Thunderbird will also be DELETED (not archived) from Gmail. This is a much cleaner solution for me, as the first time I set this up, I realized that when I deleted messages from Google's Trash, it moved them to the local trash, and that was just a tag in Gmail. So when I finally emptied the trash it just deleted the tags and the messages showed up in All Mail again.
I also created a ChatLogs folder, and moved all of my Chat Logs out of All Mail and into that, since they all show up without time stamps at the top of my All Mail folder otherwise.
A screenshot of the folders in the account is at [www.flickr.com] .
Yemen
In regards to a few people stating that they do not have IMAP access in their accounts yet, try disabling POP access first:
Log into your Gmail account, click Forwarding and POP, click disable POP, Save your changes, log out and clear your cache. Wait about 5 minutes and then log back in. Go back to the settings page and you should see the new Forwarding/POP/IMAP tab.
This is what I had to do in order to get mine to work.
HTH
_Dan
likuidkewl
So has anyone figured out how to actually move message to the real "Trash" when you delete, instead of into the All Mail? I have my Thunderbird trashed mapped thanks to the help above, but if I delete in Thunderbird it goes to the All Mail, if I delete in Gmail it goes to the real Trash, where I want it.
holymogwai
Looks like if you have filters setup in Gmail to label and archive messages, the messages don't show up until you click on the Thunderbird folders.
petebocken
@wook: You can use IMAP just turn on the Offline feature. Tools > Account settings > Offline & Disk Space.
Make sure you go into Select folders for offline use and checkmark all your folders.
petebocken
The main reason I'll continue to use POP is offline archiving. If Google lost, your email, at least you'd have it on YOUR system.
wook
@ all of you who don't see IMAP yet:
After logging in at gmail.com there was no IMAP (I used the German localization). After changing the language to English (US) IMAP appeared and it was already enabled.
Good luck!
singularity0821
@AJSKHAN You could instead of using the POP fetcher to get your other GMail accounts set up the other account to forward to your main. If you want to mimic the auto-label feature POP Fetcher adds, set up a rule in your main to label looking for "to:oldgmail@gmail.com". I've never tried Yahoo mail, but i suppose they got a forward feature too? At least you get around the 1 hour wait between each automatic POP check.
However a small tradeoff is that eg. mailinglists that have "mailinglist03" in the To: field wont be caught by your rule. But if there are few of them it is easy to add individual rules based on sender.
enYallione
Hey Gina, great article!
There's one little setting hidden in plain sight (confusingly placed next to an unrelated option) that makes the [Gmail] folder the root of the account, takes care of the trash mapping and makes the folder view a little prettier :)
Just go to Account Settings > Server Settings and hit the Advanced button next to the Empty Trash option and change the IMAP server directory to [Gmail]. After that, all you need to change are the Sent -> Sent Mail and Junk -> Spam folder mappings.
Another little tip is that TB doesn't check for new mail in folders other than the inbox by default - this can be changed by right-clicking on the folder you want to have checked and selecting the appropriately named option on the General Information tab.
rflint
So I guess this answers the question about Google Gears coming to Gmail? Seems like a viable alternative or at least an interim. Anyone get full address book syncing to work? I've tried GCalDaemon, but it only syncs email addresses and ignores contacts w/o them.
petebocken
@ewingam: Ahhh, if only it were that simple! I've logged in/out many times, exited FF completely, closed out of GTalk, etc. etc. to no avail!!
@xxdesmus: I feel ya! I currently use POP in Thunderbird, so I'm literally itching to get my hands on some IMAP goodness. :-)
LubsyB
Anyone else NOT have IMAP yet? ...This really sucks. Everyone else seems to have it already, but not me :(
xxdesmus
I setup the [Gmail]/Trash fix. Works fine if you delete something in Thunderbird. If you delete a message out of the trash in Thunderbird it does not delete out of Gmail web trash. But if you delete the message out of Gmail web trash, it does delete out of Thunderbird trash.
petebocken
Yes, it would be great to have a post like this for Outlook Express (which I'd bet is still used by a ton of Lifehacker readers.)
That Bastid
For those of us using Thunderbird 2 (on linux) the Tools -> Options menu is Edit -> Preferences. The rest is the same.
chrismar
Good article, but there's one serious contradiction, in my opinion...
Under the "Why is IMAP better than POP" section, you offer this: "Any rules or mail filters you set up on one machine with a POP client have to be set up and reprocessed with a fresh download on all your other machines."
But then, at the end of the article, you suggest using Thunderbird's message filtering: "Better filters. Gmail's filtering mechanism and interface is OK, but Thunderbird's is better. Case in point: you can specify in what order filters should be applied to incoming messages."
Yeah, Thunderbird's filtering feature is a lot better than Gmail's, but it has the very same problem you brought up earlier: those filters aren't portable.
Sure, the filtered emails will stay that way from computer to computer with IMAP, but if you're away from your "main" system for an extended period of time, new emails won't get filtered.
Cl1mh4224rd
Gina, excellent and timely article! I have just been reconfiguring Thunderbird to work with Gmail myself. Two minor points:
1. "Set up multiple 'identities' in Thunderbird with email address-specific signatures, which you can't do in web-based Gmail." Isn't that effectively what gMail's "accounts" do? You can send mail from them, complete with reply-to addresses and incoming mail from them can be labeled (effectively organizing the mail separately.
2. Another plus about using Google Mail is that you can filter by email body which you can't do in Thunderbird's IMAP feature.
Note, I'm not disagreeing with your recommendation about using Thunderbird with Gmail; I think these are ways that you can use both together. (e.g. let gmail do some filtering that Thudnerbird can't, etc.
Thanks for the article!
mbierman
@VanL: Thanks for this. Instead of "[Gmail]/Trash", I had to use "[Google Mail] /Deleted Items" before this would function properly. I don't know why; I'm in the UK, but I have a gmail.com address rather than the googlemail.com that is issued nowadays here.
And @everyone: if you think you are still waiting for IMAP, what the heck - go ahead and set it up in TBird. Like as not, you'll find (as I did) that IMAP works fine already, ta very much.
Wol
T.T I'm still waiting IMAP on my Gmail :)
Good tutorial at all
nXqd
Nxqd3051990
I've never actually tried TB Quick Movie, but I glanced briefly at the list of features, and I think that Nostalgy seems more customizable and powerful.
Check it out here: [addons.mozilla.org]
mohit2690
This may seem a little silly, but maybe not. Some of you that are not yet IMAP enabled might want to actually sign out of your gmail and then sign back in. I tried going back and forth to my Settings tab over the past few days, hitting refresh, etc. to no avail. Then, I just signed out (including from my GMail Manager extension), signed back in, and IMAP magically appeared! Maybe gmail timed it just right, but I think not.
ewingam
Long time reader, first time poster. Thanks for the great review, Gina!
One thing is still annoying me, though: All those chat logs show up in my Thunderbird now. They look pretty ridiculous, because I can't chat via IMAP, and they don't even have a subject.
Any ideas on how to get rid of them? (Only in Thunderbird, not in my web interface, of course)
spacebert
We need to get this same thread going for Outlook!
whizkid
hi there, just tryed it and im impressed. only one problem though: i have my tb set to auto check my gmail every 5 minutes (i know, crazy, but its actually necesary...) and somehow that doesnt seem to work with the new imap... am im doing smthg wrong?
fischziege
sorry, posted in the wrong thread. heck..it's Friday
mechugena
Seconding the vote for GCALDaemon. I've had too many problems with the Google Provider, namely multi-day scheduling.
mechugena
For those using POP to check other email account (waiting on IMAP or not), you may notice that sometimes Gmail doesn't check POP mail often if you're not using it much, and that message you pull down in your regular POP client won't show up in Gmail.
If you have the option, I find forwarding email addresses to my Gmail account work much better. Mail from other accounts go to both accounts, and end up in the Gmail account much sooner.
@ MADEINBRAZIL,
To 'send as' your other email accounts, in Gmail to go Settings, Accounts, and select "Add another email address" in the "Send mail as" section.
dprkstudies
@Seeker51: As far as I know, IMAP concerns itself only with email. Contact synching is not something that IMAP does.
@godsgeek:
Profile backup [kb.mozillazine.org]
Moving your profile folder [kb.mozillazine.org]
Check your email for my PayPal address. ;)
Posco Grubb
I too have been waiting for a couple days for IMAP and tried logging in/out of gmail without any luck. What finally did it for me was logging out of gmail for about 5 minutes and logging back in - and the IMAP option magically appeared. Maybe that will work for some of you.
evoweis
IMAP support hasn't worked its way over to my account just yet but the deal maker/breaker for me on this feature is whether or not I'm going to be able to sync my contacts with a desktop client/cellphone. I've got all of my contacts in gmail and so far I haven't found any particularly good ways to sync those contacts to my sony ericsson phone via os x.
Seeker51
Okay, I have all but one of my Gmail accounts (including Apps) set up in Thunderbird, now for the $64 question; how do I copy my settings over to my laptop (I set it all up on my desktop) without going through all the steps again?
Thanks, Gina, for the great write-up. I love IMAP with my Gmail!
godsgeek
@OriginalGabriel: You can change the default to Thunderbird via System > Preferences > Preferred Applications.
And you can uninstall Evolution, though I wouldn't recommend it for simplicity's sake. (Reason: it uninstalls ubuntu-desktop, which is technically only needed when upgrading versions so that the correct updated packages are pulled in.)
Andrewski
@kms: Ads are not included. Doing so would probably be a serious break from the SMTP/IMAP protocols and would probably also break a lot of things that people do with email (e.g. file transfer with UUCP encoding). My guess is that they can still monetize our emails by creating aggregate data on what people email each other about and doing market research on that. So, to support that, they need as many people as they can get to use their service, which translates to giving us free IMAP access.
"Don't be evil" is a conveniently vague principle to live by. ;)
Posco Grubb
@Brimstone: By default, your IMAP client (Thunderbird) only downloads message headers. (Try opening your "All Mail" folder... it opens relatively quickly, even if you have thousands of messages.) The actual message content is not downloaded until you open the message.
If you want a whole folder to be downloaded to your local Thunderbird client, the feature is called "Select this folder for offline use". To enable that, right click the folder name, click Properties, and check the appropriate box in the dialog. Then click the "Download Now" button in that dialog.
My question: So is this "offline" folder thing an acceptable way to do local backups of your GMail account? Right now I've made only my "All Mail" folder as "offline".
What I have yet to try is backing up the Thunderbird profile, then deleting the Thunderbird profile, restoring it from backup, and then trying to read all my restored email (the offline folders) without connecting to the Internet.
Posco Grubb
Thankfully I haven't been holding my breath waiting for IMAP to show up in my account ... It's been a long time coming so I suppose I shouldn't complain.
In other news: Is there any means to replace Evolution in Ubuntu? I'd much rather be using Thunderbird and Sunbird/Lightning but getting rid of Evolution seems to be a bit like getting rid of IE and Outlook on Windows.
OriginalGabriel
@Adam Chernow:
I believe I used the AOL POP settings from somewhere. I enjoy my blank@whateveriwant.com within gmail :D
ajskhan
thanks you so much for writing about this in this way. I read about this earlier in the week and was really curious about how I could start integrating it into my life with Thunderbird. I <3 Lifehacker.
aidan_cage
How does Google incorporate text ads in emails that go to TB? Or are they not included?
kms
If I just use TB, how is Google going to monetize the traffic now? No ads in a client... Hmmm. I do enjoy the online interface so I might just stick with that for now. I wonder if this move to IMAP will allow a Google Gears & Gmail integration in the future.
-specialk
kalebdf
I currently pull all my GMAIL address emails via POP into my Google Apps Domain account.
Now, once IMAP releases on my Google Apps Domain account, I will try this out!
(Got IMAP on my Gmail accounts, just waiting for it on the Google Apps account)
Shoeb Ahmed
If you don't yet see IMAP in the options on your account go ahead and try to set it up in your email client. My domain accounts weren't showing it but I just went ahead and did the setup for IMAP in Thunderbird. Worked like a charm.
Oddly, even with IMAP setup and working in Thunderbird the option didn't show in my account settings for several hours. It is defaulted to on so you just might get lucky.
dualsub2006
I have configured Thunderbird for Gmail IMAP. I am Portuguese, we use ç,é... and Thunderbird is not displaying properly this characters. Anyone can help me?
hla
@VanL: AWESOME, that worked. I'm going to include your instructions in the post. Thank you!!
@iniquitor: I'm pretty sure IMAP accounts have to be separate.
@Brimstone: IMAP fetches messages as you need them. View a message and it gets it from the server. So no, you're not syncing 1GB every time you view your mailbox, just the list of messages, and then each message as you load it.
Gina Trapani, Lifehacker Editor
Now. Has anyone done any testing with Google IMAP and Outlook? I would like to maybe use outlook, because I can sync my work and home calendars