aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/session.c5
-rw-r--r--tests/test10.c8
-rw-r--r--tests/test11.c7
4 files changed, 23 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 4553049d29..198b2c612d 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,10 @@
+2000-02-21 Dan Winship <danw@helixcode.com>
+
+ * session.c (session_store_new): Update session_store_new to
+ deal with the fact that camel_session_get_store takes a
+ CamelException now. Doesn't actually do anything with the
+ exception yet, because nothing else does yet either.
+
2000-02-19 Matt Loper <matt@helixcode.com>
* .cvsignore: added test-mail.
diff --git a/mail/session.c b/mail/session.c
index 24197951f3..e0390c380f 100644
--- a/mail/session.c
+++ b/mail/session.c
@@ -23,9 +23,12 @@ SessionStore *
session_store_new (const char *uri)
{
SessionStore *ss = g_new (SessionStore, 1);
+ CamelException *ex;
ss->session = camel_session_new ();
- ss->store = camel_session_get_store (ss->session, uri);
+ ex = camel_exception_new ();
+ ss->store = camel_session_get_store (ss->session, uri, ex);
+ camel_exception_free (ex);
g_assert (ss->session);
g_assert (ss->store);
diff --git a/tests/test10.c b/tests/test10.c
index a8835861d6..d8a8090138 100644
--- a/tests/test10.c
+++ b/tests/test10.c
@@ -81,8 +81,12 @@ main (int argc, char**argv)
camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so");
session = camel_session_new ();
- store = camel_session_get_store (session, store_url);
-
+ store = camel_session_get_store (session, store_url, ex);
+ if (camel_exception_get_id (ex)) {
+ printf ("Exception caught in camel_session_get_store\n"
+ "Full description : %s\n", camel_exception_get_description (ex));
+ return -1;
+ }
folder = camel_store_get_folder (store, "Inbox", ex);
if (camel_exception_get_id (ex)) {
diff --git a/tests/test11.c b/tests/test11.c
index 3c5fdeb9f4..de605365a6 100644
--- a/tests/test11.c
+++ b/tests/test11.c
@@ -41,7 +41,12 @@ main (int argc, char**argv)
camel_provider_register_as_module ("../camel/providers/mbox/.libs/libcamelmbox.so.0");
session = camel_session_new ();
- store = camel_session_get_store (session, store_url);
+ store = camel_session_get_store (session, store_url, ex);
+ if (camel_exception_get_id (ex)) {
+ printf ("Exception caught in camel_session_get_store\n"
+ "Full description : %s\n", camel_exception_get_description (ex));
+ return -1;
+ }
printf("get folder\n");