From MozillaZine Knowledge Base
Jump to navigationJump to search
This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ).

IMAP (Internet Message Access Protocol) is a network protocol used to access e-mail messages while they are still stored on the server. It supports a client server view of the world. This means that IMAP lets you access messages stored in a remote folder as if it were a local folder. This includes copying, moving, reading, and deleting messages. Thunderbird by default also keeps copies of all of the messages in your remote folders in "offline folders", stored on your hard disk. When you are working online you see the contents of the remote folders. When you are working offline (File -> Offline -> Work Offline) you see the contents of the corresponding offline folder instead. You can disable this feature in Tools -> Account Settings -> Account name -> Synchronization & Storage.

You may be only familiar with POP (Post Office Protocol), which supports a download-centric view of the world, i.e. you read a message by downloading it from the server's inbox folder rather than remotely viewing it wherever it's stored. IMAP is a newer and more powerful protocol. It lets you use all of the folders on the mail server (just like webmail) while POP accounts are limited to just the inbox folder on the mail server. For many years ISPs preferred to only support POP because that is what most users were used to and they could provide a smaller mailbox (since users would download all new mail and were used to only keeping a limited number of messages on the server). However, POP accounts have become a niche due to most email providers now supporting IMAP, and its many advantages.

If you have only used POP accounts you may be used to deleting a local copy of a message, knowing that the original is still stored on the mail server (and accessible via webmail). That isn't true with IMAP. That is why the folder in the IMAP account is called a remote folder. Whatever you do to the remote folder affects the corresponding webmail folder. It also affects the corresponding offline folder, if it exists.

Thunderbird, the Mozilla Suite, and SeaMonkey support IMAP accounts. Some of the main features are:

  • You can use all of the webmail folders. If you use a POP account your Sent folder is not the same folder as the webmail Sent folder. A POP accounts inbox is not the same folder as the webmail inbox, it just tries to download any new mail if finds there.
  • Occasionally the email client has problems downloading a "bad" message if you use a POP account. This might be due to missing headers (usually happens with spam) or a problem with an attachment. If that occurs the email client is not smart enough to tell you about the error and then skip to the next new message. This is not a problem with a IMAP account as its not download-centric. You can just select the next message and open it if there was a problem.
  • It's very useful for roaming users since the messages are not (only) stored on whatever PC you're using. The main limitation in accessing your messages from another PC is that most email providers don't provide a way to share address books. There are several extensions that support that.
  • If your profile folder is corrupted or your computer breaks down, Thunderbird will be able to access and re-download your messages from your service provider.
  • You can copy or move messages and/or folders between local (on your hard disk) and remote (on the mail server) folders at will. i.e. you can "upload" a message to a remote folder just by copying/moving it.
  • You can automatically check for new mail in any IMAP folder using folder settings.
  • You can control which folders are visible. You "subscribe" a folder to make it visible, unless it's subscribed by default, or you disable "Show only subscribed folders". With Thunderbird you right click on a folder in the folder pane and select "subscribe" to get to the dialog box that lets you specify which folders should be subscribed.
  • You can use the IMAP account from multiple email clients at the same time. The closest equivalent to this feature with POP is to configure "leave messages on server". However, that only lets you access the inbox.
  • IMAP supports public folders, which can be used to share selected folders with other IMAP users without having to share an account. Typically you'd have to use a webmail command to manage which users can access that folder (by setting the appropriate ACL). This is optional functionality that many commercial IMAP email providers don't support.
  • In older versions of Thunderbird, IMAP by default only downloads the message headers to the hard disk. It does not create an mbox file like POP accounts have. This means that if you open the message again and it's not still cached in memory, it will be fetched from the IMAP server again. Thunderbird supports preferences that avoid fetching attachments until you open them.
  • When you delete an IMAP message, you're really just setting a message flag. Because of this, Thunderbird lets you specify whether deleted messages should be removed immediately, flagged, or moved to the trash folder. This also means that another email client might let you see the "deleted" message until you compact that folder. Some email clients hide messages deleted by other email clients, some display them normally, and some display them with a line through the headers (to indicate it was deleted by some other client). It's an implementation-specific decision.
  • It's easier to migrate to a different email client (if it supports IMAP) since you don't have to move or convert the messages from your computer to a different computer.
  • IMAP supports an offline mode which can be used to keep a local synchronized copy of a remote folder. A change to either folder affects the other folder the next time you synchronize. Some users may find it easier to use a message filter to automatically make a copy of a new message in the "Local Folders" inbox folder instead, if they're only concerned with the inbox.

Many IMAP email providers provide additional functionality such as server side filtering, the ability to automatically fetch and merge email from several external POP accounts (or hotmail) into your IMAP mailbox, aliases, plus or subdomain addressing (which are useful for creating email addresses on the fly to help deal with potential spam), and run server based tools such as SpamAssassin (which adds headers useful for spam filtering).

AIM (AOL) provides a 2GB mailbox, though its features are non-standard. Gmail has a 15GB mailbox, with some quirks such as a optional All Mail folder. GMX has a 5GB mailbox, with standard features. Yahoo and have standard features and supposedly provide a unlimited size mailbox. However, Yahoo redefined unlimited as 1TB in 2013 and seems to define unlimited as starting at 5GB and gradually growing over time. will also allow you to attach files from OneDrive (formerly called SkyDrive). Paid accounts have higher limits. If a Outlook or Yahoo account is provided by your ISP (instead of them running their own mail servers) it might also have different limits.

IMAP is mainly used for mail messages but it's possible to use it for other types of storage. For example, one email provider also lets you store files in remote folders and configure web access to them. It essentially adds a WebDav server that accesses the files in the remote folders. You could use this to offer a home page for example.

Thunderbird specific features

  • A saved search folder for an IMAP account supports both online and offline searching. However, the name is misleading - it basically lets you create a virtual folder. "Online searching" just means that the virtual folder is updated every time you open it. IMAP accounts don't support a Global Inbox, but you could use a saved search folder to emulate one, but this will be empty unless you are online.
  • Offline folders typically are synchronized when you switch to working offline. Thunderbird also supports a option to automatically download messages for offline use whenever you open a folder or it detects new mail.
  • Thunderbird 3.x supports message synchronizing in Tools -> Account Settings -> Synchronization and Storage. It automatically synchronizes a different type of offline folders while you are online. The main difference is that they're not just for working offline, Thunderbird will load messages quicker by using the downloaded messages as a cache. It currently stores them as mbox files (just like offline folders) though they plan on changing the format later on.

Push support

"Push e-mail" means that when a message is delivered to the mailbox you want to get immediately notified of it. Thunderbird provides that if your IMAP server supports the optional IDLE command. The IDLE command eliminates the need for a e-mail client to poll for new mail - the mail server automatically notifies the e-mail client whenever there is new mail. "Push support" is sometimes mis-interpreted as IDLE support but it is actually proprietary Push-IMAP enhancements for mobile devices such as cell phones developed by Oracle. It can use IDLE, SMS or WAP Push to provide the notification.

The IETF has defined a standard called the Lemonade Profile that is meant to replace Push-IMAP. It includes other features such as the ability to forward a message without downloading it and the ability to quickly re-sync a connection. The Lemonade for Mobiles web site has more information on what e-mail clients and servers support Push e-mail and/or Lemonade. While Lemonade is mainly thought of for cell-phones it is also useful for laptops on trains and planes, and PC's using satellite links. Unfortunately it wasn't even considered for Thunderbird 3.


The main downside of IMAP accounts are you need to unlearn some old habits, and be comfortable with things working differently. However, if you have a very slow connection, frequently don't have a Internet connection, or have to worry about a quota on how much data is transferred a POP account is better since IMAP accounts re-fetch messages every time you open them.

Normally privacy is not an issue since many email providers scan your new email in order to provide targeted ads (regardless of whether you are using webmail, POP or IMAP), and many people use "leave message on server" to save a copy of messages on the POP server for a while. However, since IMAP accounts store your mail on the server it is more vulnerable to access by law enforcement, and potentially to hackers. Over one billion Yahoo accounts were hacked.

MIME Parts on demand settings can be used to avoid fetching large attachments unless you open them. You could also move messages with very large attachments from the remote folder to a folder in Local Folders. Thunderbird enables offline folders for IMAP accounts by default, which lets you backup your messages by backing up your profile. You do need to worry about losing those messages when the folders sync if you deleted the originals on the mail server and restore the backup. In that case you'd want to import the offline folders into Local Folders instead (or before restoring the backup).

IMAP accounts have advantages but they are more complex, and require a learning curve. The main reasons most people don't switch is either they have no motivation to change, have only used POP accounts and IMAP accounts seem too complicated to them (not worth the advantages), or they are so used to using POP accounts that a IMAP account just doesn't seem to work like a mail account should work. Most email clients on smartphones use IMAP accounts, so anybody using one is more likely to be comfortable using a IMAP account on a desktop/laptop. It also offers more advantages for them.

Yahoo no longer supports importing mail from other accounts into your Yahoo account using POP, it only supports using IMAP for that. Other email providers will probably eventually do the same thing as it lets you access every folder in the other accounts (not just fetch mail from the inbox), and IMAP has become popular enough that it is expected that your email provider supports it. [1]

See also

External links


Name space

Mozilla documentation


New functionality being developed

Possible replacements

Discussions about a possible replacement for IMAP. Having the protocol also support address books, calendars and submission is being considered. Several people active in the tb-planning mailing list are involved, but no Mozilla employees.