From 99c6819cc5a55a24f12a74f30c83985b9dc9fc9e Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sat, 2 Jun 2007 09:51:14 +0000 Subject: Pass a CamelException when refreshing folders, removing the spew of 2007-06-02 Ross Burton * mail-send-recv.c: Pass a CamelException when refreshing folders, removing the spew of warnings (#439957). svn path=/trunk/; revision=33620 --- mail/mail-send-recv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'mail/mail-send-recv.c') diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 506ca09931..55a0a99260 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -786,12 +786,16 @@ refresh_folders_get (struct _mail_msg *mm) CamelException ex = CAMEL_EXCEPTION_INITIALISER; for (i=0;ifolders->len;i++) { - folder = mail_tool_uri_to_folder(m->folders->pdata[i], 0, NULL); + folder = mail_tool_uri_to_folder(m->folders->pdata[i], 0, &ex); if (folder) { camel_folder_refresh_info(folder, &ex); camel_exception_clear(&ex); camel_object_unref(folder); + } else if (camel_exception_is_set(&ex)) { + g_warning ("Failed to refresh folders: %s", camel_exception_get_description (&ex)); + camel_exception_clear (&ex); } + if (camel_operation_cancel_check(m->info->cancel)) break; } -- cgit v1.2.3