aboutsummaryrefslogtreecommitdiffstats
path: root/mail/session.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-03-14 07:31:06 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-03-14 07:31:06 +0800
commit2f96c6db974180f9a9e88b89386e599edb9b21d6 (patch)
treea1a564f1caab4ec113ce6d96f7da7519b5a27463 /mail/session.c
parent24cf25fc207e0fb0d6d4e64b4d60375b71874109 (diff)
downloadgsoc2013-evolution-2f96c6db974180f9a9e88b89386e599edb9b21d6.tar.gz
gsoc2013-evolution-2f96c6db974180f9a9e88b89386e599edb9b21d6.tar.zst
gsoc2013-evolution-2f96c6db974180f9a9e88b89386e599edb9b21d6.zip
Call camel_init with the evolution directory passed in. Also, abort if
2001-03-13 Jeffrey Stedfast <fejj@ximian.com> * session.c (mail_session_init): Call camel_init with the evolution directory passed in. Also, abort if camel cannot be initialized. * main.c (main): Shutdown camel. svn path=/trunk/; revision=8689
Diffstat (limited to 'mail/session.c')
-rw-r--r--mail/session.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mail/session.c b/mail/session.c
index 7cf7801cab..b38e235885 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -23,6 +23,7 @@
#include <config.h>
#include <gnome.h>
+#include <stdlib.h>
#include "mail.h"
#include "mail-session.h"
#include "mail-mt.h"
@@ -303,8 +304,10 @@ mail_session_init (void)
{
char *camel_dir, *key, *value;
void *iter;
-
- camel_init ();
+
+ if (camel_init (evolution_dir) != 0)
+ exit (0);
+
camel_dir = g_strdup_printf ("%s/mail", evolution_dir);
session = camel_session_new (camel_dir, auth_callback,
register_callback, remove_callback);