aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-send-recv.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index feed6cff3b..26226d45ea 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-23 Not Zed <NotZed@Ximian.com>
+
+ * mail-send-recv.c (get_receive_type): pass an exception to
+ get_provider, to silence some warnings/get a valid result.
+
2003-04-22 Jeffrey Stedfast <fejj@ximian.com>
* mail-callbacks.c (composer_get_message): Only add the
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index bb0086c701..2a2cd1ddf0 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -261,8 +261,11 @@ format_url(const char *internal_url)
static send_info_t get_receive_type(const char *url)
{
CamelProvider *provider;
+ CamelException ex;
- provider = camel_session_get_provider (session, url, NULL);
+ camel_exception_init(&ex);
+ provider = camel_session_get_provider (session, url, &ex);
+ camel_exception_clear(&ex);
if (!provider)
return SEND_INVALID;