aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-21 05:01:30 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-21 05:01:30 +0800
commitb34714d95b4a2fc304178c8dae642532b7eaf631 (patch)
tree70b064b963d028666e9dced6e0642af9188847bf /camel/providers/local
parent8a644defbfa4fd7e357db469ca1c65dd1da154e5 (diff)
downloadgsoc2013-evolution-b34714d95b4a2fc304178c8dae642532b7eaf631.tar.gz
gsoc2013-evolution-b34714d95b4a2fc304178c8dae642532b7eaf631.tar.zst
gsoc2013-evolution-b34714d95b4a2fc304178c8dae642532b7eaf631.zip
More usage fixes for CamelException. Check our own exception for
2001-07-20 Peter Williams <peterw@ximian.com> * providers/local/camel-mbox-summary.c (mbox_summary_sync): More usage fixes for CamelException. Check our own exception for summary_update and xfer it out if an error occurred. svn path=/trunk/; revision=11273
Diffstat (limited to 'camel/providers/local')
-rw-r--r--camel/providers/local/camel-mbox-summary.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c
index c24cf4133c..8a61d63ed1 100644
--- a/camel/providers/local/camel-mbox-summary.c
+++ b/camel/providers/local/camel-mbox-summary.c
@@ -829,6 +829,7 @@ static int
mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInfo *changeinfo, CamelException *ex)
{
struct stat st;
+ CamelException internal_ex;
CamelMboxSummary *mbs = (CamelMboxSummary *)cls;
CamelFolderSummary *s = (CamelFolderSummary *)cls;
int i, count;
@@ -836,9 +837,12 @@ mbox_summary_sync(CamelLocalSummary *cls, gboolean expunge, CamelFolderChangeInf
int ret;
/* first, sync ourselves up, just to make sure */
- summary_update(cls, mbs->folder_size, changeinfo, ex);
- if (camel_exception_is_set(ex))
+ camel_exception_init (&internal_ex);
+ summary_update(cls, mbs->folder_size, changeinfo, &internal_ex);
+ if (camel_exception_is_set(&internal_ex)) {
+ camel_exception_xfer (ex, &internal_ex);
return -1;
+ }
count = camel_folder_summary_count(s);
if (count == 0)