Closed Bug 302386 Opened 20 years ago Closed 20 years ago

Add ability to auto sync imap folders offline store when folders are opened or checked for new mail

Categories

(MailNews Core :: Networking, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(1 file)

Some users want us to automatically sync the offline store for a folder when it's opened or checked for new mail (really what's wanted is to silently sync in the background, but this approach is going to be a lot easier in the short term). So I'm going to add a new per server pref, autosync_offline_stores, and if you set it to true, we will sync the offline store when you open the folder, or check it for new mail. The latter will only happen if you set the hidden pref "mail.imap.use_status_for_biff" to false, so that we'll call UpdateFolder to check for new messages, and download headers and bodies, instead of just using the IMAP status command. Patch upcoming.
Attached patch fix for testingSplinter Review
This implements what I described. One caveat: it ignores whether you've configured the folder for offline use - I can go either way on that. Ignoring that flag makes it consistent with the download_bodies_on_get_new_mail pref, and moves us to a world where you don't need to configure every folder for offline use. But it could be a drag as well, for example, if you click on a large folder like your sent folder.
cc'ing Mike, who wanted to try this out.
Attachment #190759 - Flags: superreview?(mscott)
Attachment #190759 - Flags: superreview?(mscott) → superreview+
Comment on attachment 190759 [details] [diff] [review] fix for testing this is turned off by default, but it would be nice to have for people to turn on if they want.
Attachment #190759 - Flags: approval1.8b4?
Attachment #190759 - Flags: approval1.8b4? → approval1.8b4+
Shaver might be interested in this. Setting the per server pref "autosync_offline_stores" to true will make us download for offline use all msgs in any imap folder on that server when you open the folder. It's not ideal, but it does allow you to skip the go offline process before shutting down. It is currently all or nothing, so this pref ignores whether the folder is configured for offline use. It's basically a big switch that says I want all messages in all folders stored for offline use.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
OS: Windows XP → All
Hardware: PC → All
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: