aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-18 06:16:46 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-18 06:16:46 +0800
commit982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad (patch)
tree8a625ee1ff79fcfca14383168d6a67088c0413d5 /camel/providers
parent4ddd273ac4fc4dfa9c0b66e740801b16b691c2c1 (diff)
downloadgsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.tar
gsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.tar.gz
gsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.tar.bz2
gsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.tar.lz
gsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.tar.xz
gsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.tar.zst
gsoc2013-evolution-982357f35cdadf9a823dd1b5a3c0a35bf2ecbdad.zip
Make sure the new description isn't the same as the old description
2001-10-17 Jeffrey Stedfast <fejj@ximian.com> * camel-exception.c (camel_exception_set): Make sure the new description isn't the same as the old description pointer before freeing the old one. (camel_exception_setv): Don't free the old description until we set the new one this way we can reuse the old description in the new description. * providers/local/camel-mbox-folder.c (mbox_append_message): If errno == EINTR, then we got a user-cancel so set the exception appropriately so that we don't make the user shit his pants. svn path=/trunk/; revision=13737
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/local/camel-mbox-folder.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/camel/providers/local/camel-mbox-folder.c b/camel/providers/local/camel-mbox-folder.c
index c7d09f4af2..0f8d8c9f74 100644
--- a/camel/providers/local/camel-mbox-folder.c
+++ b/camel/providers/local/camel-mbox-folder.c
@@ -261,10 +261,14 @@ mbox_append_message(CamelFolder *folder, CamelMimeMessage * message, const Camel
return;
fail_write:
- camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
- _("Cannot append message to mbox file: %s: %s"),
- lf->folder_path, g_strerror (errno));
-
+ if (errno == EINTR)
+ camel_exception_set (ex, CAMEL_EXCEPTION_USER_CANCEL,
+ _("Mail append cancelled"));
+ else
+ camel_exception_setv (ex, CAMEL_EXCEPTION_SYSTEM,
+ _("Cannot append message to mbox file: %s: %s"),
+ lf->folder_path, g_strerror (errno));
+
if (filter_stream)
camel_object_unref(CAMEL_OBJECT(filter_stream));