diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-16 12:01:50 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-16 12:01:50 +0800 |
commit | e17e550ce0ed64d984a9011cfeba30ed8391ecbe (patch) | |
tree | 4fa764d2d14ac48186169da782def0a801978e51 /mail/mail-session.c | |
parent | 367a162a540a1f8ad1fa45c3298911fc02c5201a (diff) | |
download | gsoc2013-evolution-e17e550ce0ed64d984a9011cfeba30ed8391ecbe.tar.gz gsoc2013-evolution-e17e550ce0ed64d984a9011cfeba30ed8391ecbe.tar.zst gsoc2013-evolution-e17e550ce0ed64d984a9011cfeba30ed8391ecbe.zip |
Give camel_init() the correct path, and suddenly the mail module is USABLE!
svn path=/branches/kill-bonobo/; revision=37083
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index 990c42ae5d..0e978ecdd0 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -43,6 +43,7 @@ #include <camel/camel-filter-driver.h> #include <camel/camel-i18n.h> +#include "e-util/e-util.h" #include "e-util/e-error.h" #include "e-util/e-util-private.h" #include "e-account-combo-box.h" @@ -701,11 +702,11 @@ mail_session_init (EShellModule *shell_module) 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); + data_dir = e_get_user_data_dir (); if (camel_init (data_dir, TRUE) != 0) exit (0); @@ -715,6 +716,7 @@ mail_session_init (EShellModule *shell_module) e_account_combo_box_set_session (session); /* XXX Don't ask... */ e_account_writable(NULL, E_ACCOUNT_SOURCE_SAVE_PASSWD); /* Init the EAccount Setup */ + data_dir = e_shell_module_get_data_dir (shell_module); camel_session_construct (session, data_dir); gconf = mail_config_get_gconf_client (); |