Patch for correctly set an error on memory full conditions
- From: Sergio Villar Senin <svillar igalia com>
- To: tinymail-devel-list gnome org
- Subject: Patch for correctly set an error on memory full conditions
- Date: Mon, 17 Mar 2008 13:24:10 +0100
Hi,
this patch sets the proper exception when a message could not be
retrieved due to there is no enough room in the local storage.
Br
Index: libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c
===================================================================
--- libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c (revision 3492)
+++ libtinymail-camel/camel-lite/camel/providers/imap/camel-imap-folder.c (working copy)
@@ -4527,8 +4527,10 @@
_("This message is not currently available"
" and can't go online to fetch it"));
else if (camel_strstrcase (camel_exception_get_description (ex), "summary") != NULL)
+ if (camel_exception_is_set (ex))
+ camel_exception_clear (ex);
camel_exception_set (ex, CAMEL_EXCEPTION_SYSTEM_IO_WRITE,
- _("This message can't be retrieved due to insufficient "
+ _("This message can't be retrieved due to insufficient"
" storage space resources."));
CAMEL_IMAP_FOLDER_REC_UNLOCK (imap_folder, cache_lock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]