diff options
author | Ross Burton <ross@openedhand.com> | 2007-06-02 17:51:14 +0800 |
---|---|---|
committer | Ross Burton <rburton@src.gnome.org> | 2007-06-02 17:51:14 +0800 |
commit | 99c6819cc5a55a24f12a74f30c83985b9dc9fc9e (patch) | |
tree | 4065abd9711e3aa57e894e0ba3329dfffab31ae8 /mail/mail-send-recv.c | |
parent | ee9fedd493a2a7da3c568c597a4f6c86b5a8405d (diff) | |
download | gsoc2013-evolution-99c6819cc5a55a24f12a74f30c83985b9dc9fc9e.tar.gz gsoc2013-evolution-99c6819cc5a55a24f12a74f30c83985b9dc9fc9e.tar.zst gsoc2013-evolution-99c6819cc5a55a24f12a74f30c83985b9dc9fc9e.zip |
Pass a CamelException when refreshing folders, removing the spew of
2007-06-02 Ross Burton <ross@openedhand.com>
* mail-send-recv.c:
Pass a CamelException when refreshing folders, removing the spew
of warnings (#439957).
svn path=/trunk/; revision=33620
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 6 |
1 files changed, 5 insertions, 1 deletions
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;i<m->folders->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; } |