IMAP: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(Thunderbird specific features - minor editing, removed a bug that was listed as a feature.)
mNo edit summary
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Tbsuite}}
{{Tbsuite}}


'''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. IMAP allows a user to access messages stored in remote folders as if it was a local folder. This includes copying, moving, reading, and deleting them.
'''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 [[Menu_differences_in_Windows,_Linux,_and_Mac | Tools -> Account Settings]] -> Account name -> Synchronization & Storage.  


Most users are more 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 servers inbox folder, rather than remotely viewing it wherever its stored. IMAP is a newer and more powerful protocol. However, many ISPs prefer to support POP instead because most users are used to it, and they can provide a smaller mailbox (since users will be downloading messages, not accessing them while stored on the server).
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.


Thunderbird, Mozilla Suite and SeaMonkey support IMAP accounts. Some of the main features are:
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.


* You can copy or move messages and/or folders between local and remote folders at will.  
Thunderbird, the Mozilla Suite, and SeaMonkey support IMAP accounts. Some of the main features are:


* You can automatically check for new mail in any folder.
* 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.


* You can control which folders are visible. You "subscribe" a folder to make it visible, unless its subscribed by default or you disable "Show only subscribed folders". With Thunderbird you right click on a remote folder and select "subscribe" to get to the dialog box that lets you specify which folders should be subscribed.
* 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.


* You can use it 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.
* 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.


* Its very usefull for roaming users since the messages are not 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.


* It supports public folders, which can be used to share selected folders with other IMAP users. 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.
* 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.  


* By default IMAP only downloads the message headers to the hard disk. It does not create a mbox file like POP accounts have. This means that if you open the message again, unless its still cached in memory, it will be fetched from the IMAP server again. Thunderbird supports preferences you can set to avoid it fetching attachments until you open them.  
* You can automatically check for new mail in any IMAP folder using folder settings.


* When you delete a 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). Its a implementation specific decision.
* 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.


* Its easier to migrate to a different email client (if it supports IMAP) since you don't have to move or convert the messages.
* 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.


* Supports a offline mode which can be used to keep a local synchronized copy of a remote folder. A change to either folder effects 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 instead, if they're only concerned with 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.


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 usefull 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).
* 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.  


Most free IMAP accounts have small mailboxes. [[Using AOL Mail with Mozilla | AIM (AOL) ]] provides a 2GB mailbox, though its features are non-standard. [http://mail.google.com/support/bin/answer.py?answer=77662 Gmail] has a 7GB mailbox, with some quirks. [http://www.gmx.com/ GMX] has a 5GB mailbox, with standard features. Yahoo might eventually provide free IMAP accounts that any email client can use but its currently usable only from [http://www.readwriteweb.com/archives/yahoo_imap_zimbra_desktop.php Zimbra email clients] and cell-phones. Outlook/Outlook Express, Thunderbird/Mozilla Suite and [http://en.wikipedia.org/wiki/Mulberry_(e-mail_client) Mulberry] are considered the email clients with the best IMAP support.  
* 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.


IMAP is mainly used for mail messages but its 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 [http://en.wikipedia.org/wiki/Webdav WebDav] server that accesses the files in the remote folders. You could use this to offer a home page for example.
* 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). 
 
[[Using AOL Mail with Mozilla | AIM (AOL) ]] provides a 2GB mailbox, though its features are non-standard. [http://mail.google.com/support/bin/answer.py?answer=77662 Gmail] has a 15GB mailbox, with some quirks such as a optional All Mail folder. [http://www.gmx.com/ GMX] has a 5GB mailbox, with standard features. [[Yahoo]] and [[Hotmail | Outlook.com]] have standard features and supposedly provide a unlimited size mailbox. However, Yahoo redefined unlimited as 1TB in 2013 and Outlook.com seems to define unlimited as starting at 5GB and gradually growing over time. Outlook.com 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 [http://en.wikipedia.org/wiki/Webdav WebDav] server that accesses the files in the remote folders. You could use this to offer a home page for example.


==Thunderbird specific features==
==Thunderbird specific features==


* A [[Saved_Search | saved search]] folder for a 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 to emulate one.
* A [[Saved_Search | 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.


* You can configure Thunderbird to [[Deleting_messages_in_IMAP_accounts | automatically compact]] a  remote folder whenever you delete a message in it.
* You can configure Thunderbird to [[Deleting_messages_in_IMAP_accounts | automatically compact]] a  remote folder whenever you delete a message in it.


* Offline folders typically are synchronized when you switch to working offline. Thunderbird also supports a [[Offline_folders | option]] to automatically download messages for offline use whenever you open a folder or it detects new mail.
* Offline folders typically are synchronized when you switch to working offline. Thunderbird also supports a [[Offline_folders | 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 [[Menu_differences_in_Windows%2C_Linux%2C_and_Mac | 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 support===
Line 45: Line 55:


The IETF has defined a standard called the [http://en.wikipedia.org/wiki/Lemonade_Profile 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 [http://www.lemonadeformobiles.com/ 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 IETF has defined a standard called the [http://en.wikipedia.org/wiki/Lemonade_Profile 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 [http://www.lemonadeformobiles.com/ 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.
==POP vs IMAP==
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 [https://krebsonsecurity.com/2016/12/yahoo-one-billion-more-accounts-hacked/ one billion Yahoo accounts were hacked].
[[Entire_message_fetched_when_opening_a_IMAP_message | 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. [https://help.yahoo.com/kb/mail-for-desktop/SLN28161.html?impressions=true]


==See also==
==See also==
Line 50: Line 72:
* [[Checking for new messages in other folders - Thunderbird]]
* [[Checking for new messages in other folders - Thunderbird]]
* [[Deleting messages in IMAP accounts]]
* [[Deleting messages in IMAP accounts]]
* [[Gmail]]
* [[Offline folders]]
* [[Offline folders]]
* [[Sharing address books]]
* [[Sharing address books]]
* [[Synchronizing mail on two computers]]
* [[Synchronizing mail on two computers]]
* [[Using AOL and AIM mail]]
* [[Using AOL and AIM mail]]
* [[Using Gmail with Thunderbird and Mozilla Suite]]


==External links==
==External links==
===Generic===
* [http://www.imap.org/ The IMAP Connection]
* [http://www.imap.org/ The IMAP Connection]
* [http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol Wikipedia IMAP article]
* [http://en.wikipedia.org/wiki/Internet_Message_Access_Protocol Wikipedia IMAP article]
* [http://www.ii.com/internet/messaging/imap/isps/#table A guide to finding a good IMAP email provider]
* [http://www.ii.com/internet/messaging/imap/isps/#table A guide to finding a good IMAP email provider]
* [http://tools.ietf.org/html/rfc2683 IMAP4 Implementation Recommendations]
* [https://datatracker.ietf.org/wg/extra/documents/  Email mailstore and eXtensions To Revise or Amend (EXTRA) ] Recent improvements proposed to existing IMAP and Sieve standards.
===Name space===
* [http://www.courier-mta.org/FAQ.html#namespace Can't create folders, only subfolders of INBOX (Courier)]
* [http://cyrusimap.web.cmu.edu/imapd/overview.html#mboxname Netnews namespace convention (Cyrus)]
* [http://cyrusimap.web.cmu.edu/imapd/altnamespace.html Alternate namespace (Cyrus)]
* [http://wiki.dovecot.org/Namespaces How to configure namespaces (Dovecot)]
* [http://www.washington.edu/imap/IMAP-FAQs/index.html#7.22 Why do I have #mhinbox, #mh, #shared, #ftp, #news, and #public folders? (UW-IMAP)]
* [http://www.rfc-archive.org/getrfc.php?rfc=2342  IMAP Namespace RFC]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=558659 Bug report] requesting "Support IMAP LIST SPECIAL-USE (RFC 6154) to autoconfigure Sent, Trash, Draft folders on IMAP servers"
* [https://bugzilla.mozilla.org/show_bug.cgi?id=337330 Bug report] requesting support for "IMAP METADATA extension rfc5464"
* [https://bugzilla.mozilla.org/show_bug.cgi?id=799821 Bug report] about a number of bugs that are a result of the LSUB command not returning the same flags as the LIST command. According to IMAP4rev1 RFC, this is allowable. This can also cause it to hang with a [https://bugzilla.mozilla.org/show_bug.cgi?id=1046392 "Looking for folders..."] if the user has thousands of symbolic or hard links to non mail files in the IMAP server directory.
===Mozilla documentation===
* [http://www.mozilla.org/projects/thunderbird/specs/offline.html Offline extension]
* [http://www.mozilla.org/projects/thunderbird/specs/offline.html Offline extension]
* [http://www.mozilla.org/quality/mailnews/tests/sea-mn-imap-commands.html Mozilla IMAP QA tests]
* [http://www.mozilla.org/quality/mailnews/tests/sea-mn-imap-commands.html Mozilla IMAP QA tests]
* [https://wiki.mozilla.org/MailNews:Better_Faster_IMAP2 Better Faster IMAP Plan]
* [https://wiki.mozilla.org/MailNews:Supported_IMAP_extensions Supported IMAP extensions]
===Lemonade===
* [http://www.networkcomputing.com/showArticle.jhtml?articleID=197005721 Network Computing article on Lemonade]
* [http://www.networkcomputing.com/showArticle.jhtml?articleID=197005721 Network Computing article on Lemonade]
* [http://www.isode.com/whitepapers/imap-idle.html IMAP IDLE: The best approach for 'push' email.]
* [http://www.isode.com/whitepapers/imap-idle.html IMAP IDLE: The best approach for 'push' email.]
* [http://wikis.sun.com/display/CommSuite/Messaging+Server+Lemonade+Profile+1+Support Sun Messaging Server Lemonade Profile 1 Support]
* [http://wikis.sun.com/display/CommSuite/Messaging+Server+Lemonade+Profile+1+Support Sun Messaging Server Lemonade Profile 1 Support]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=421779 Bug report requesting support for SMTP BURL extension]
* [https://bugzilla.mozilla.org/show_bug.cgi?id=421779 Bug report requesting support for SMTP BURL extension]
===New functionality being developed===
* [https://wiki.mozilla.org/MailNews:Minimizing_Bandwidth_Usage Minimizing bandwidth usage via the Incommunicado Extension ]
* [https://wiki.mozilla.org/Thunderbird:IMAP_RFC_4551_Implementation Syncing using a Conditional Store facility]
* [http://blog.davidbienvenu.org/?p=27 Support for IMAP MOVE and ID extensions]
===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.
* [http://imapwiki.org/ReplacementProtocol A Replacement Protocol]
* [https://www.ietf.org/mailman/listinfo/imap5 imap5 -- Discussion on drastically slimming-down IMAP.]
* [http://answerpot.com/forumdisplay.php?4-L204524-Imap5 IMAP5 threads on Answerpot]
* [http://www.ietf.org/mail-archive/web/imap5/current/maillist.html IETF imap5 Discussion Archive]
* [http://imapwiki.org/ImapRFCList IMAP RFC List] with comments on what problem it solved, and whats planned.
* [https://github.com/jmapio/jmap JMAP] is a new JSON-based API for synchronizing a mail client with a mail server. It is also intended as a replacement for IMAP. It aims to be compatible with the IMAP data model, so that it can be easily implemented on a server that currently supports IMAP.


[[Category:Mail (Thunderbird)]]
[[Category:Mail (Thunderbird)]]
[[Category:Mail (Mozilla Suite)]]
[[Category:Mail (Mozilla Suite)]]
[[Category:IMAP]]
[[Category:IMAP]]

Latest revision as of 23:03, 10 January 2019

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 Outlook.com have standard features and supposedly provide a unlimited size mailbox. However, Yahoo redefined unlimited as 1TB in 2013 and Outlook.com seems to define unlimited as starting at 5GB and gradually growing over time. Outlook.com 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.

POP vs IMAP

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

Generic

Name space

Mozilla documentation

Lemonade

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.