aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 3fcf6a044b..fb4b5e0eed 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -286,13 +286,17 @@ format_url(const char *internal_url, const char *account_name)
static send_info_t get_receive_type(const char *url)
{
CamelProvider *provider;
+ CamelException ex;
/* HACK: since mbox is ALSO used for native evolution trees now, we need to
fudge this to treat it as a special 'movemail' source */
if (!strncmp(url, "mbox:", 5))
return SEND_RECEIVE;
- provider = camel_provider_get(url, NULL);
+ camel_exception_init (&ex);
+ provider = camel_provider_get(url, &ex);
+ camel_exception_clear (&ex);
+
if (!provider)
return SEND_INVALID;