GNOME Bugzilla – Bug 679780
Offline mode doesn't work in mailer
Last modified: 2013-09-13 01:06:28 UTC
I start evolution in offline, but the status bar indicates that my mail accounts are still doing online operations, like retrieving message list from a server. This is a regression from 3.4.x.
Are you still seeing this? Opening Evolution 3.5.90 in offline mode, I see status messages about opening folders and updating search folders, but nothing to suggest network I/O taking place. I also went into the database and dropped a few folder tables to force Evolution to re-download summaries for those folders, and when I go to those folders in offline mode I see 0 messages, as expected. It's not trying to download summaries in offline mode.
I see it, when I run evolution from console like this: $ CAMEL_DEBUG=all evolution --offline >/dev/null then there is logged LIST ans LSUB activity on my two IAMP accounts. Below is backtrace of one IMAPx account, and if I have also enabled EWS account, whose node is currently collapsed, then if I expand it then the UI shows only "Loading..." node, which should be super-fast in offline. I do not have "Check for new messages on start" set in Mail Preferences.
+ Trace 230723
Bug 682425 might be a dup/related, though that one is for 3.4.x
Created attachment 223518 [details] [review] evo patch for evolution; The issue is with object creation order. When the EMailUISession creates CamelServices befor its online state (the one derived from CamelSession) is synchronized with online state of EShell, then the CamelOfflineStore/CamelDiscoStore has sat incorrect online state (the offline store reads online state from CamelSession in its constructed callback). I also discovered a regression in IMAP provider with this fixed, thus I'll commit to eds another change too.
Created commit ce0d35f in evo master (3.5.92+) Created commit 5dfeb1a in eds master (3.5.92+)