After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 679780 - Offline mode doesn't work in mailer
Offline mode doesn't work in mailer
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
3.6.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[account-mgmt]
Depends on:
Blocks:
 
 
Reported: 2012-07-12 05:32 UTC by Milan Crha
Modified: 2013-09-13 01:06 UTC
See Also:
GNOME target: 3.6
GNOME version: ---


Attachments
evo patch (1.18 KB, patch)
2012-09-05 11:23 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2012-07-12 05:32:43 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.
Comment 1 Matthew Barnes 2012-08-21 12:44:32 UTC
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.
Comment 2 Milan Crha 2012-08-22 13:05:36 UTC
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.

  • #13 camel_stream_read
  • #14 imapx_stream_fill
    at camel-imapx-stream.c line 56
  • #15 camel_imapx_stream_token
    at camel-imapx-stream.c line 591
  • #16 imapx_step
    at camel-imapx-server.c line 2272
  • #17 parse_contents
    at camel-imapx-server.c line 5785
  • #18 imapx_parser_thread
    at camel-imapx-server.c line 5832
  • #19 g_thread_proxy
    at gthread.c line 801

Comment 3 André Klapper 2012-08-22 13:20:34 UTC
Bug 682425 might be a dup/related, though that one is for 3.4.x
Comment 4 Milan Crha 2012-09-05 11:23:43 UTC
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.
Comment 5 Milan Crha 2012-09-05 11:27:32 UTC
Created commit ce0d35f in evo master (3.5.92+)
Created commit 5dfeb1a in eds master (3.5.92+)