5 Tips for Getting the Most Out of Gmail IMAP

Technorati Tags: ,

Gmail IMAP has been available for more than a month now. It’s been working great for me. I have read that some users are having trouble reading HTML messages on their Windows Mobile devices, but for some odd reason, I can see HTML messages (in HTML, not rendered) just fine on my i730 Windows Mobile phone.

Here are some tips to help you make the most out of Gmail IMAP. If you have not used Gmail IMAP, you can set it up by following the instructions from Google here. I personally use Gmail IMAP on my Windows Mobile 2003 phone, Outlook 2007, and Windows Mail in Windows Vista. However, these tips should work on any standard IMAP client.

1 – Be Familiar with Gmail IMAP Folders

Gmail IMAP has the following special folders:

  • Inbox
  • [Gmail]/All Mail – This folder contains all of your Gmail messages.
  • [Gmail]/Drafts – Your drafts.
  • [Gmail]/Sent Mail – Messages you sent to other people.
  • [Gmail]/Spam – Messages marked as spam.
  • [Gmail]/Starred – Starred messages.
  • [Gmail]/Trash – Messages deleted from Gmail.

Each of your custom labels also becomes an IMAP folder. Messages that have more than one labels will be in multiple IMAP folders.

Your email client may create its own special folders such as "Drafts", "Sent Items", "Deleted Items". These folders only have special meaning to your email client and not Gmail. These special folders can be seen in the web Gmail client as "[Imap]/Drafts", "[Imap]/Deleted Items". To Gmail, these are just additional labels with no special meaning.

If you use Outlook 2007, you can configure it to use Gmail’s Sent Mail folder instead of its own "Sent Items" folder:

 

Note that you can create more than 1 level of folders. You can have folders within folders:

 

2- To Archive, Move the Message Out of the Inbox Folder

To archive a message, you can do one of the following:

  • Move the message to the [Gmail]/All Mail folder.
  • Move the message to one of your label folders.
  • Use your email client’s Delete Message feature. This won’t actually delete your message, but move it to a folder named [Imap]/Deleted Items. You just have to know messages in that folder are not really meant to be deleted.

    Since I sometimes use the Delete button for its intended purpose (see section 3 below), I do not use it to archive.

Applying Multiple Labels (Updated Jan 23, 2008)

To apply more than one label to a message, copy the message to the respective folders. "Copy" does not actually create a new copy of the message. There’s still one message stored in Gmail. It just gets a new label.

To remove the message from a folder, move it to the special folder [Gmail]/All Mail. Don’t move the message to [Gmail]/Trash, as that will actually delete the message from all folders (it will be gone forever when you empty the trash), unless deleting is really what you want to do.

(I originally wrote incorrectly that copying will create multiple physical copies. Thanks to Hans Ref for correcting me on this).

3 – To Delete, Move to [Gmail]/Trash Folder

To delete a message, move it to the [Gmail]/Trash folder. If the message is in more than one folder, Gmail will delete those copies as well.

Using the email client’s Delete feature will likely not really delete the message, but instead move it to the [Imap]/Deleted Items folder.

Sometimes I use the email client’s Delete command anyway, because it’s faster to press the Delete key. Once in a while, I then go into the Deleted Items folder and move messages from there to [Gmail]/Trash. Same result in the end.

4 – To Report a Message as Spam, Move to [Gmail]/Spam Folder

See a pattern now? Most of what you need to do with Gmail IMAP involves moving messages around.

To report a message as spam, what else… move it to the [Gmail]/Spam folder. This is just like clicking ‘Report Spam’ in the Gmail web interface. Don’t believe me, it comes straight from Google.

Likewise, to mark that was marked as spam by Google incorrectly, move it out of the [Imap]/Spam folder.

5 – Import Old Mail

If you are like me, you have archived a ton of old email messages from years past. With Gmail IMAP, it’s easy to import them into Gmail so you can have all of your email messages from all time in one place, all searchable.

Just use the copy feature of your email client to copy those old messages into one of the Gmail IMAP folders. Google advices that you should copy the messages in small group because "uploading an excessive number of messages to your Gmail account via IMAP may lead to being temporarily locked out of your account." Anyone knows what the limit is?

There you have it, my 5 tips to get the most out of Gmail IMAP. For more information on how to use Gmail IMAP, see Google Help Center for IMAP.

Updated 2008-01-17

Chinh Do

I occasionally blog about programming (.NET, Node.js, Java, PowerShell, React, Angular, JavaScript, etc), gadgets, etc. Follow me on Twitter for tips on those same topics. You can also find me on GitHub. See About for more info.

View Comments

  • The best tips I have read about IMAP! Thank you.
    Besides just the tips, I learnt a lot more from each of the IMAP 'features' highlighted in the tips.
    Thank you again!

  • hi
    I am sure you are right: copying messages do not create additional copies.
    so i am trying reduce the time counting all messages so i want only particular dates
    please reply me.

  • I am sure you are right: counting all messages .
    so i am trying reduce the time counting only particular dates messages
    so that type of code i needed ,,,,,,
    please reply me.

  • "To archive a message ... use your email client’s Delete Message feature" as the third way to archive, doesn't seem like a good idea at all.

    In fact Outlook 2010 appears to find and use the GMail Trash folder automatically. So deleting messages moves them to the trash.

  • David: You are probably right. This was written way back in 2007 when the Gmail IMAP access first came out (I think). Google probably made some changes since then. I'll see if I can update this article. Thanks!

  • Hi,

    I just completed my outlook setup - GMAIL to Outlook 2007 via IMAP. Actually my account has no more space to have new incoming emails as this is my company a/c, so i transferred to outlook. I am facing one problem and that is, when i delete any email from my gmail a/c, it does not appear in my outlook. In outlook it should be there, but it gets automatically deleted when I click on send and received all option to refresh my outlook.

    So please help me out with solution.

    Waiting for prompt yet worth reply.

  • Hi,

    I just tried using your suggestions of using "[Gmail]/Sent Mail" but I get the same error for every folder except Inbox.

    Folder "[Gmail]/Sent Mail" not found.

    Any suggestions would really helpful.

Share
Published by
Chinh Do

Recent Posts

How to switch to a different Kubernetes context or namespace?

To list available contexts: kubectl config get-contexts To show the current context: kubectl config current-context…

2 years ago

How to ssh into Kubernetes pod

kubectl exec -it <podname> -- sh To get a list of running pods in the…

2 years ago

How to Create a Soft Symbolic Link (symlink) in Unix/Linux

# Create a soft symbolic link from /mnt/original (file or folder) to ~/link ln -s…

3 years ago

How to Configure Git Username and Email Address

git config --global user.name "<your name>" git config --global user.email "<youremail@somewhere.com>" Related Commands Show current…

3 years ago

Getting the Last Monday for Any Month with TypeScript/JavaScript

TypeScript/JavaScript function getLastMonday(d: Date) { let d1 = new Date(d.getFullYear(), d.getMonth() + 1, 0); let…

4 years ago

How to View Raw SMTP Email Headers in Outlook

I had to do some SMTP relay troubleshooting and it wasn't obvious how to view…

5 years ago