diff options
author | nobody <nobody@localhost> | 2000-02-18 02:02:38 +0800 |
---|---|---|
committer | nobody <nobody@localhost> | 2000-02-18 02:02:38 +0800 |
commit | 801e6f456d73c70c8da6e7c0f75a4925869338f3 (patch) | |
tree | cb572e29de5b639380b2832a064d24484dc595eb /mail/session.c | |
parent | 788bcf6373185aa29f8e2f83ad48cb10bf6e8a9b (diff) | |
download | gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.gz gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.bz2 gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.lz gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.xz gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.tar.zst gsoc2013-evolution-801e6f456d73c70c8da6e7c0f75a4925869338f3.zip |
This commit was manufactured by cvs2svn to create branch 'ebusboom'.
svn path=/branches/ebusboom/; revision=1824
Diffstat (limited to 'mail/session.c')
-rw-r--r-- | mail/session.c | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/mail/session.c b/mail/session.c deleted file mode 100644 index 24197951f3..0000000000 --- a/mail/session.c +++ /dev/null @@ -1,67 +0,0 @@ -/* - * session.c: handles the session infomration and resource manipulation - * - * Author: - * Miguel de Icaza (miguel@gnu.org) - * - * (C) 2000 Helix Code, Inc. http://www.helixcode.com - */ -#include <config.h> -#include "session.h" -#include "e-util/e-setup.h" -#include "camel/camel.h" - -SessionStore *default_session; - -static void -session_providers_init (void) -{ - camel_provider_register_as_module (CAMEL_PROVIDERDIR "/libcamelmbox.so"); -} - -SessionStore * -session_store_new (const char *uri) -{ - SessionStore *ss = g_new (SessionStore, 1); - - ss->session = camel_session_new (); - ss->store = camel_session_get_store (ss->session, uri); - - g_assert (ss->session); - g_assert (ss->store); - - return ss; -} - -void -session_store_destroy (SessionStore *ss) -{ - g_assert (ss != NULL); - - gtk_object_unref (GTK_OBJECT (ss->store)); - gtk_object_unref (GTK_OBJECT (ss->session)); - - g_free (ss); -} - -static void -init_default_session (void) -{ - char *url; - - url = g_strconcat ("mbox://", evolution_folders_dir, NULL); - default_session = session_store_new (url); - g_free (url); -} - -void -session_init (void) -{ - e_setup_base_dir (); - camel_init (); - session_providers_init (); - - init_default_session (); -} - - |