Closed Bug 770441 Opened 12 years ago Closed 12 years ago

Thunderbird should not try to save the draft when the user is offline

Categories

(Thunderbird :: Message Compose Window, defect)

14 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 391732

People

(Reporter: mounir, Unassigned)

Details

Thunderbird should be able to detect when the user is offline using NetworkManager (this is a Gecko feature). AFAIK, Thunderbird is aware of that because it is trying to get new messages as soon as I'm going online and stop doing so when I'm offline (it might just be an impression though).

This feature should also be used for drafts. It's highly frustrating to write an email offline and be asked every X minutes that saving the draft failed.
Version: 7 → 14
Which platform are you using? Mac and Windows already detect online/offline state:

http://mxr.mozilla.org/comm-central/source/mail/app/profile/all-thunderbird.js#268

Linux doesn't as there were various issues with detection being inconsistent.
Alternately, if NetworkManager isn't hooking into nsIIOService to tell gecko about online/offline state, then I think that's a bug in NetworkManager.
nsNetworkManagerListener::NotifyNetworkStatusObservers notify observers of NS_NETWORK_LINK_TOPIC. Shouldn't that be enough?
(In reply to Mounir Lamouri (:mounir) from comment #3)
> nsNetworkManagerListener::NotifyNetworkStatusObservers notify observers of
> NS_NETWORK_LINK_TOPIC. Shouldn't that be enough?

Yes, so this then comes down to the platform you're using. Given that's dbus code, then iirc that's Linux which is disabled due to the previously mentioned detection being inconsistent. AFAIK that's not changed for Firefox, but if Firefox enables it, then I suspect we would.

Hence, I think this is a duplicate of bug 391732.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.