Silence Camel exception warning at startup - fixes bug 352248.

2006-08-21  Matthew Barnes  <mbarnes@redhat.com>

	* mail-send-recv.c:
	Silence Camel exception warning at startup - fixes bug 352248.

svn path=/trunk/; revision=32617
This commit is contained in:
Matthew Barnes
2006-08-21 16:25:57 +00:00
committed by Andre Klapper
parent b70c1439bf
commit 33e18ea569
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-08-21 Matthew Barnes <mbarnes@redhat.com>
* mail-send-recv.c:
Silence Camel exception warning at startup - fixes bug 352248.
2006-08-21 Srinivasa Ragavan <sragavan@novell.com>
** Fixes a lot of search issues including widget packing.

View File

@ -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;