From 1b3a2114eed8a2d2fee8fa0ad3056d5685730c25 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 7 Sep 2000 20:00:03 +0000 Subject: 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 --- mail/ChangeLog | 8 ++++++++ mail/component-factory.c | 3 ++- mail/main.c | 1 - mail/session.c | 8 ++++++-- 4 files changed, 16 insertions(+), 4 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 58c5f4226d..51f632dc78 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,13 @@ 2000-09-07 Dan Winship + * 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. + * mail-ops.c (do_fetch_mail): Fix previous fix. (Free the uids, just do it correctly.) diff --git a/mail/component-factory.c b/mail/component-factory.c index 608328c133..c874cdeec9 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -115,7 +115,8 @@ owner_set_cb (EvolutionShellComponent *shell_component, g_print ("evolution-mail: Yeeeh! We have an owner!\n"); /* FIXME */ evolution_dir = g_strdup (evolution_homedir); - + session_init (); + mail_config_init (); mail_do_setup_folder ("Drafts", &drafts_folder); mail_do_setup_folder ("Outbox", &outbox_folder); diff --git a/mail/main.c b/mail/main.c index 0ab58f9a3d..cd9c6e7d6e 100644 --- a/mail/main.c +++ b/mail/main.c @@ -60,7 +60,6 @@ main (int argc, char *argv []) e_unicode_init (); - session_init (); e_cursors_init (); component_factory_init (); 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 -- cgit v1.2.3