diff options
author | Dan Winship <danw@src.gnome.org> | 2000-09-08 04:00:03 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-09-08 04:00:03 +0800 |
commit | 1b3a2114eed8a2d2fee8fa0ad3056d5685730c25 (patch) | |
tree | 18d79eb0e28703db1054a231970d3c48607c0aa2 /mail/session.c | |
parent | 1fb4f1bfee3badccac9419a6115aefa34ab8f6b1 (diff) | |
download | gsoc2013-evolution-1b3a2114eed8a2d2fee8fa0ad3056d5685730c25.tar.gz gsoc2013-evolution-1b3a2114eed8a2d2fee8fa0ad3056d5685730c25.tar.zst gsoc2013-evolution-1b3a2114eed8a2d2fee8fa0ad3056d5685730c25.zip |
Pass a storage dir to camel_session_new now.
* session.c (session_init): Pass a storage dir to
camel_session_new now.
* main.c (main): Can't call session_init here now, because it
requires evolution_dir to be set.
* component-factory.c (owner_set_cb): call session_init here.
svn path=/trunk/; revision=5240
Diffstat (limited to 'mail/session.c')
-rw-r--r-- | mail/session.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/session.c b/mail/session.c index 09416b0825..e3dcbd541b 100644 --- a/mail/session.c +++ b/mail/session.c @@ -189,9 +189,13 @@ remove_callback (guint handle) void session_init (void) { + char *camel_dir; + camel_init (); - session = camel_session_new (auth_callback, register_callback, - remove_callback); + camel_dir = g_strdup_printf ("%s/mail", evolution_dir); + session = camel_session_new (camel_dir, auth_callback, + register_callback, remove_callback); + g_free (camel_dir); } static gboolean |