aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author4 <NotZed@Ximian.com>2001-09-25 08:58:34 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-09-25 08:58:34 +0800
commit35fe068ed2a74a9eee0f52236625d913951a56b0 (patch)
tree8efda09afb96a188bef85ba5614ad97c50bb9c7d
parent53e4dca70fde21056b85d6d162454f1997e42149 (diff)
downloadgsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.tar
gsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.tar.gz
gsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.tar.bz2
gsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.tar.lz
gsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.tar.xz
gsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.tar.zst
gsoc2013-evolution-35fe068ed2a74a9eee0f52236625d913951a56b0.zip
Set the exception to FOLDER_INVALID rather than making out it worked. A
2001-09-24 <NotZed@Ximian.com> * camel-folder.c (append_message): Set the exception to FOLDER_INVALID rather than making out it worked. A fix for #7025. (search_by_expression): Here too. svn path=/trunk/; revision=13106
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-folder.c8
2 files changed, 12 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index fc02246f57..bed79fb5d6 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2001-09-24 <NotZed@Ximian.com>
+ * camel-folder.c (append_message): Set the exception to
+ FOLDER_INVALID rather than making out it worked. A fix for #7025.
+ (search_by_expression): Here too.
+
* providers/imap/camel-imap-folder.c (imap_update_summary): In the
'lose' case, free messages, not fetch_data twice!
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 9798de5c7d..ec23a55c71 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -467,6 +467,10 @@ static void
append_message (CamelFolder *folder, CamelMimeMessage *message,
const CamelMessageInfo *info, CamelException *ex)
{
+ camel_exception_setv(ex, CAMEL_EXCEPTION_FOLDER_INVALID,
+ _("Unsupported operation: append message: for %s"),
+ camel_type_to_name (CAMEL_OBJECT_GET_TYPE (folder)));
+
g_warning ("CamelFolder::append_message not implemented for `%s'",
camel_type_to_name (CAMEL_OBJECT_GET_TYPE (folder)));
return;
@@ -1030,6 +1034,10 @@ static GPtrArray *
search_by_expression (CamelFolder *folder, const char *expression,
CamelException *ex)
{
+ camel_exception_setv(ex, CAMEL_EXCEPTION_FOLDER_INVALID,
+ _("Unsupported operation: search by expression: for %s"),
+ camel_type_to_name (CAMEL_OBJECT_GET_TYPE (folder)));
+
g_warning ("CamelFolder::search_by_expression not implemented for "
"`%s'", camel_type_to_name (CAMEL_OBJECT_GET_TYPE (folder)));
return NULL;