Offline folders: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
mNo edit summary
 
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Tbsuite}}
{{update}}
 
''This article was written for Thunderbird but also applies to  Mozilla Suite / SeaMonkey (though some menu sequences may differ). It hasn't been updated for Thunderbird 3 yet, which adds support for a different type of offline folder in Tools -> Account Settings -> Synchronization & Storage''
 
Thunderbird normally downloads just the headers for messages in a IMAP account. It will fetch the contents of a message as needed, but it won't store it in the [[Profile_folder_-_Thunderbird | profile]]. There are several different ways to automate downloading messages to your hard disk so that they can be used when working offline. The most common way is to configure several folders for offline use and get prompted whether it should synchronize them when you tell Thunderbird you're going to work offline. However, if you don't want to automate downloading the messages you can get a snapshop of a folder by right clicking on the remote folder, selecting Properties, the Offline tab and pressing the "Download Now" button.
 
'''Note:''' Be advised that the ''initial'' synchronization may involve downloading a substantial number of messages large in size. Some providers may impose bandwidth limitations, and there are reported cases where an account was temporarily locked down because that limit was exceeded during offline synchronization. Synchronization should resume once the account is re-enabled.


Thunderbird normally downloads just the headers for messages in a IMAP account. It will fetch the contents of a message as needed, but it won't store it in the [[Profile_folder_-_Thunderbird | profile]]. There are several different ways to automate downloading messages to your hard disk so that they can be used when working offline. The most common way is to configure several folders for offline use and get prompted whether it should synchronize them when you tell Thunderbird you're going to work offline.


==Configure the folder for offline use==
==Configure the folder for offline use==
Line 8: Line 13:
Both Tools -> Options -> Advanced -> Network & Disk Space -> Offline and File -> Offline -> Offline Settings let you configure Thunderbird to automatically download/sync when you go offline. You could also  tell it to download the offline folders using File -> Offline -> Download/Sync Now.
Both Tools -> Options -> Advanced -> Network & Disk Space -> Offline and File -> Offline -> Offline Settings let you configure Thunderbird to automatically download/sync when you go offline. You could also  tell it to download the offline folders using File -> Offline -> Download/Sync Now.


The [[Entire_message_fetched_when_opening_a_IMAP_message | MIME Parts On Demand]] preferences control how much of  a message is fetched when you read it. If you want the attachments downloaded with the message its normally sufficient to set '''mail.server.default.mime_parts_on_demand''' to false (that effects all IMAP accounts). You can use '''mail.server.serverX.mime_parts_on_demand''' instead if you want to specify it per account.
The [[Entire_message_fetched_when_opening_a_IMAP_message | MIME Parts On Demand]] preferences control how much of  a message is fetched when you read it. If you want the attachments downloaded with the message set '''mail.server.default.mime_parts_on_demand''' to '''false''' (that effects all IMAP accounts). You can use '''mail.server.serverX.mime_parts_on_demand''' instead if you want to specify it per account.


A sanity check that it actually downloaded the messages is to see if it created a mbox file for that folder in the appropriate account directory in your [[profile folder | profile]]. The mbox file for your inbox folder is called "inbox.". The "inbox.msf" file is the headers while Inbox.sbd is a directory.
A sanity check that it actually downloaded the messages is to see if it created a mbox file for that folder in the appropriate account directory in your [[profile folder | profile]]. The mbox file for your inbox folder is called "inbox.". The "inbox.msf" file is the headers while Inbox.sbd is a directory.


If Thunderbird doesn't recognize that a folder contains unread messages try setting '''mail.imap.use_status_for_biff''' true. It causes Thunderbird to explicitly select each folder to update the message summaries, rather than use the STATUS command. It has more overhead, but some IMAP servers don't return STATUS correctly.
If Thunderbird doesn't recognize that a folder contains unread messages try setting '''mail.imap.use_status_for_biff''' '''false'''. It causes Thunderbird to explicitly select each folder to update the message summaries, rather than use the STATUS command. It has more overhead, but some IMAP servers don't return STATUS correctly.  
 
===Sync on Arrival===
The [https://addons.mozilla.org/en-US/thunderbird/addon/1396 Sync on Arrival] extension claims it fixes several bugs in the offline folder support, similar to what the mail.server.serverX.download_on_biff preference does. That setting controls whether Thunderbird should download new messages (true) or just alert the user that there is new mail (false). The extension also keeps any [[Saved_Search | saved search]] folders (for IMAP accounts) up to date even if they're configured for offline use.


You need to bypass the version check per [[Updating_add-ons | this article]] since it only supports version 1.0 – 1.5.0.*. There is a dedicated thread for it [http://forums.mozillazine.org/viewtopic.php?t=334530 here].
===Retention Policy===
 
Thunderbird provides a mechanism for [[message aging]] to automatically delete "old" messages. A retention period and other policies can be defined in the Offline & Disk Space settings of an account or the Folder Properties of specific folders. This applies not just apply to the local offline copies, but also to the ''remote'' copy on the server as well. Any messages deleted via this feature are permanently deleted, not moved to the Trash folder. Its a good idea to check the message aging settings to avoid accidental data loss due to this feature.
Its not clear whether this extension is needed anymore since numerous bugs in the offline folder support were fixed for version 2.


==AutoSync==
==AutoSync==
You can force Thunderbird to download messages for offline use whenever you open a folder or Thunderbird detects new mail by setting '''mail.server.default.autosync_offline_stores''' to true. You can use '''mail.server.serverX.autosync_offline_stores''' instead if you want to specify it per account. This only works if you also set '''use_status_for_biff''' false. It ignores whether the folder is configured as a offline folder or not.
You can force Thunderbird to download messages for offline use whenever you open a folder or Thunderbird detects new mail by setting '''mail.server.default.autosync_offline_stores''' to '''true'''. You can use '''mail.server.serverX.autosync_offline_stores''' instead if you want to specify it per account. This only works if you also set '''mail.imap.use_status_for_biff''' '''false'''. It ignores whether the folder is configured as a offline folder or not.
[http://forums.mozillazine.org/viewtopic.php?p=3220560] [http://forums.mozillazine.org/viewtopic.php?p=3261480]
[http://forums.mozillazine.org/viewtopic.php?p=3220560] [http://forums.mozillazine.org/viewtopic.php?p=3261480]
[http://forums.mozillazine.org/viewtopic.php?p=3171152]
[http://forums.mozillazine.org/viewtopic.php?p=3171152]
The advantage of the AutoSync settings is that its more transparent, and any downloading is not delayed until you go offline.


This feature doesn't appear to be widely used (yet). If you use it be careful about how you configure Thunderbird to [[Checking_for_new_messages_in_other_folders_-_Thunderbird | check for new mail]] to avoid it downloading folders that you didn't expect. For example, it might download messages for a folder that was unsubscribed, due to the IMAP server sending a [http://www.isode.com/whitepapers/imap-idle.html IDLE command] to notify Thunderbird that there were new messages in that folder.
This feature doesn't appear to be widely used (yet). If you use it be careful about how you configure Thunderbird to [[Checking_for_new_messages_in_other_folders_-_Thunderbird | check for new mail]] to avoid it downloading folders that you didn't expect. For example, it might download messages for a folder that was unsubscribed, due to the IMAP server sending a [http://www.isode.com/whitepapers/imap-idle.html IDLE command] to notify Thunderbird that there were new messages in that folder.
None of the account-specific autosync_offline_stores preferences exist, though Thunderbird has built-in support for them. You need to create them. The easiest way is to use the Config Editor. See [[About:config#Adding.2C_modifying.2C_and_resetting_preferences | this article]] for how to do that.


==Use message filters==
==Use message filters==
Line 32: Line 37:


==Save it as a .eml file==
==Save it as a .eml file==
If you save a message as a .eml file you can view it by double clicking on it in Windows Explorer, but you can't import it as a real message in Thunderbird. The [https://nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension lets you select several .eml files and import them as real messages.  
If you save a message as a .eml file you can view it by double clicking on it in Windows Explorer, but you can't import it as a real message in Thunderbird. The [http://www.nic-nac-project.de/~kaosmos/mboximport-en.html ImportExportTools] extension lets you select several .eml files and import them as real messages.  


===Autosave===
===Autosave===
The [https://addons.mozilla.org/en-US/thunderbird/addon/755 Autosave] extension can automatically save any messages in the specified folders as .eml files upon receipt. It does not have a GUI, [http://forums.mozillazine.org/viewtopic.php?t=280532 this forum thread] describes how to configure it using preferences in [[prefs.js]]. One problem with using this extension is that the author stopped supporting their extensions years ago and has not been heard from since. You also need to bypass the version check per [[Updating_add-ons | this article]].
The [https://addons.mozilla.org/en-US/thunderbird/addon/755 Autosave] extension can automatically save any new messages in the specified folders as .eml files. It does not have a GUI, [http://forums.mozillazine.org/viewtopic.php?t=280532 this forum thread] describes how to configure it using preferences in [[prefs.js]]. One problem with using this extension is that the author stopped supporting their extensions years ago and has not been heard from since. You also need to bypass the version check per [[Updating_add-ons | this article]].


==See also==
==See also==
* [[Checking_for_new_messages_in_other_folders_-_Thunderbird |  Checking for new messages in other folders]]
* [[Checking_for_new_messages_in_other_folders_-_Thunderbird |  Checking for new messages in other folders]]
* [[Deleting messages in IMAP accounts]]
* [[Deleting messages in IMAP accounts]]
* [[Entire message fetched when opening a IMAP message]]
* [[Entire message fetched when opening an IMAP message]]
* [[Modify Thunderbird settings]]
* [[Modify Thunderbird settings]]


==External links==
==External links==
* [https://bugzilla.mozilla.org/show_bug.cgi?id=302386 Bug report] about adding the ability to auto sync IMAP folders offline store when folders are opened or checked for new mail.
* [http://www.broobles.com/imapsize/ IMAPsize] is a Windows utility that can do a incremental backup of remote folders to .eml files.
 
* [https://bugzilla.mozilla.org/show_bug.cgi?id=401940 Bug report] about automatically downloading full messages on IMAP folders.
 
* [https://bugzilla.mozilla.org/show_bug.cgi?id=329229 Bug report] about download IMAP messages for offline use immediately
 
* [https://bugzilla.mozilla.org/show_bug.cgi?id=377249 Bug report] about the integration of Thunderbird with Vista Desktop Search. One of the developers advocates enabling autosync by default when they do that.
 
* [http://www.broobles.com/imapsize/ IMAPsize] is a utility that can do a incremental backup of remote folders to .eml files.


* [http://www.mozilla.org/projects/thunderbird/specs/offline.html Offline extension spec.] That extension is now built-in.
*[https://wiki.mozilla.org/MailNews:Better_Faster_IMAP_Plan Better Faster IMAP Plan]


[[Category:Sending and receiving mail (Thunderbird)]]
[[Category:Sending and receiving mail (Thunderbird)]]
[[Category:Issues (Thunderbird)]]
[[Category:Issues (Thunderbird)]]
[[Category:IMAP]]
[[Category:IMAP]]

Latest revision as of 17:08, 18 June 2016

This article was written for Thunderbird but also applies to Mozilla Suite / SeaMonkey (though some menu sequences may differ). It hasn't been updated for Thunderbird 3 yet, which adds support for a different type of offline folder in Tools -> Account Settings -> Synchronization & Storage

Thunderbird normally downloads just the headers for messages in a IMAP account. It will fetch the contents of a message as needed, but it won't store it in the profile. There are several different ways to automate downloading messages to your hard disk so that they can be used when working offline. The most common way is to configure several folders for offline use and get prompted whether it should synchronize them when you tell Thunderbird you're going to work offline. However, if you don't want to automate downloading the messages you can get a snapshop of a folder by right clicking on the remote folder, selecting Properties, the Offline tab and pressing the "Download Now" button.

Note: Be advised that the initial synchronization may involve downloading a substantial number of messages large in size. Some providers may impose bandwidth limitations, and there are reported cases where an account was temporarily locked down because that limit was exceeded during offline synchronization. Synchronization should resume once the account is re-enabled.


Configure the folder for offline use

You can configure a folder for offline use with either Tools -> Account Settings -> Offline & Disk Space or by right clicking on the remote folder, selecting Properties, the Offline tab and then checking the "Select this folder for offline use" checkbox. The downloaded folder is only accessible when you've switched to working offline using File -> Offline -> Work Offline. Its not effected by whether or not your PC is offline.

Both Tools -> Options -> Advanced -> Network & Disk Space -> Offline and File -> Offline -> Offline Settings let you configure Thunderbird to automatically download/sync when you go offline. You could also tell it to download the offline folders using File -> Offline -> Download/Sync Now.

The MIME Parts On Demand preferences control how much of a message is fetched when you read it. If you want the attachments downloaded with the message set mail.server.default.mime_parts_on_demand to false (that effects all IMAP accounts). You can use mail.server.serverX.mime_parts_on_demand instead if you want to specify it per account.

A sanity check that it actually downloaded the messages is to see if it created a mbox file for that folder in the appropriate account directory in your profile. The mbox file for your inbox folder is called "inbox.". The "inbox.msf" file is the headers while Inbox.sbd is a directory.

If Thunderbird doesn't recognize that a folder contains unread messages try setting mail.imap.use_status_for_biff false. It causes Thunderbird to explicitly select each folder to update the message summaries, rather than use the STATUS command. It has more overhead, but some IMAP servers don't return STATUS correctly.

Retention Policy

Thunderbird provides a mechanism for message aging to automatically delete "old" messages. A retention period and other policies can be defined in the Offline & Disk Space settings of an account or the Folder Properties of specific folders. This applies not just apply to the local offline copies, but also to the remote copy on the server as well. Any messages deleted via this feature are permanently deleted, not moved to the Trash folder. Its a good idea to check the message aging settings to avoid accidental data loss due to this feature.

AutoSync

You can force Thunderbird to download messages for offline use whenever you open a folder or Thunderbird detects new mail by setting mail.server.default.autosync_offline_stores to true. You can use mail.server.serverX.autosync_offline_stores instead if you want to specify it per account. This only works if you also set mail.imap.use_status_for_biff false. It ignores whether the folder is configured as a offline folder or not. [1] [2] [3]

The advantage of the AutoSync settings is that its more transparent, and any downloading is not delayed until you go offline.

This feature doesn't appear to be widely used (yet). If you use it be careful about how you configure Thunderbird to check for new mail to avoid it downloading folders that you didn't expect. For example, it might download messages for a folder that was unsubscribed, due to the IMAP server sending a IDLE command to notify Thunderbird that there were new messages in that folder.

None of the account-specific autosync_offline_stores preferences exist, though Thunderbird has built-in support for them. You need to create them. The easiest way is to use the Config Editor. See this article for how to do that.

Use message filters

If you get all of your new mail in the inbox its much simpler to just use a message filter to automatically copy or move any new messages to a folder in the local folders directory. The main problem with using message filters is they are only run automatically for the inbox, you have to use "Tools -> Run Filters on Folder" for any other folder.

Save it as a .eml file

If you save a message as a .eml file you can view it by double clicking on it in Windows Explorer, but you can't import it as a real message in Thunderbird. The ImportExportTools extension lets you select several .eml files and import them as real messages.

Autosave

The Autosave extension can automatically save any new messages in the specified folders as .eml files. It does not have a GUI, this forum thread describes how to configure it using preferences in prefs.js. One problem with using this extension is that the author stopped supporting their extensions years ago and has not been heard from since. You also need to bypass the version check per this article.

See also

External links

  • IMAPsize is a Windows utility that can do a incremental backup of remote folders to .eml files.