aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/mail-session.c11
-rw-r--r--shell/e-shell.c2
2 files changed, 9 insertions, 4 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 3e7befb08d..990c42ae5d 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -46,6 +46,7 @@
#include "e-util/e-error.h"
#include "e-util/e-util-private.h"
#include "e-account-combo-box.h"
+#include "shell/e-shell.h"
#include "em-filter-context.h"
#include "em-filter-rule.h"
@@ -694,12 +695,17 @@ mail_session_check_junk_notify (GConfClient *gconf, guint id, GConfEntry *entry,
void
mail_session_init (EShellModule *shell_module)
{
- const gchar *data_dir;
+ EShell *shell;
GConfClient *gconf;
+ gboolean online_mode;
+ const gchar *data_dir;
mail_shell_module = shell_module;
data_dir = e_shell_module_get_data_dir (shell_module);
+ shell = e_shell_module_get_shell (shell_module);
+ online_mode = e_shell_get_online_mode (shell);
+
if (camel_init (data_dir, TRUE) != 0)
exit (0);
@@ -719,8 +725,7 @@ mail_session_init (EShellModule *shell_module)
session, NULL, NULL);
session->junk_plugin = NULL;
- /* The shell will tell us to go online. */
- camel_session_set_online ((CamelSession *) session, FALSE);
+ camel_session_set_online ((CamelSession *) session, online_mode);
mail_config_reload_junk_headers ();
}
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 09726d612d..f0dcaeb3f1 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -509,7 +509,7 @@ shell_class_init (EShellClass *class)
"online-mode",
_("Online Mode"),
_("Whether the shell is online"),
- TRUE,
+ FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT));