aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-04-24 09:55:10 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-04-24 09:55:10 +0800
commit2d09981098e0af0af5f94f8565751df7c1a4ed02 (patch)
tree451accd4d6bca7c8cfa8665936a9dd48aa71c2b9
parent36eaccbb3aef02015009fc3900443f076e74efd8 (diff)
downloadgsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.tar
gsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.tar.gz
gsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.tar.bz2
gsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.tar.lz
gsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.tar.xz
gsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.tar.zst
gsoc2013-evolution-2d09981098e0af0af5f94f8565751df7c1a4ed02.zip
pass an exception to get_provider, to silence some warnings/get a valid
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. svn path=/trunk/; revision=20950
-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;