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

RESOLVED FIXED

Status

MailNews Core
Networking
RESOLVED FIXED
12 years ago
9 years ago

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

12 years ago
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.
(Assignee)

Comment 1

12 years ago
Created attachment 190759 [details] [diff] [review]
fix for testing

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.
(Assignee)

Comment 2

12 years ago
cc'ing Mike, who wanted to try this out.
(Assignee)

Updated

12 years ago
Attachment #190759 - Flags: superreview?(mscott)

Updated

12 years ago
Attachment #190759 - Flags: superreview?(mscott) → superreview+
(Assignee)

Comment 3

12 years ago
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+
(Assignee)

Comment 4

12 years ago
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
Last Resolved: 12 years ago
Resolution: --- → FIXED

Updated

10 years ago
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.