From 8b135a085a76aa89777162b3c0daf30ca49fc96e Mon Sep 17 00:00:00 2001
From: Jeffrey Stedfast <fejj@ximian.com>
Date: Wed, 17 Oct 2001 20:23:42 +0000
Subject: Set the DELETED flag on directly on the info if the source folder
 doesn't

2001-10-17  Jeffrey Stedfast  <fejj@ximian.com>

	* camel-filter-driver.c (camel_filter_driver_filter_message): Set
	the DELETED flag on directly on the info if the source folder
	doesn't have summary capability.

svn path=/trunk/; revision=13729
---
 camel/ChangeLog             | 6 ++++++
 camel/camel-filter-driver.c | 2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/camel/ChangeLog b/camel/ChangeLog
index 47c12348fc..6f19e28d2d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-10-17  Jeffrey Stedfast  <fejj@ximian.com>
+
+	* camel-filter-driver.c (camel_filter_driver_filter_message): Set
+	the DELETED flag on directly on the info if the source folder
+	doesn't have summary capability.
+
 2001-10-17  Not Zed  <NotZed@Ximian.com>
 
 	* camel-tcp-stream-raw.c (stream_write): As below.
diff --git a/camel/camel-filter-driver.c b/camel/camel-filter-driver.c
index 8d8822b72d..5e58fc7bc8 100644
--- a/camel/camel-filter-driver.c
+++ b/camel/camel-filter-driver.c
@@ -935,7 +935,7 @@ camel_filter_driver_filter_message (CamelFilterDriver *driver, CamelMimeMessage
 	
 	/* *Now* we can set the DELETED flag... */
 	if (p->deleted) {
-		if (p->source && p->uid)
+		if (p->source && p->uid && camel_folder_has_summary_capability (p->source))
 			camel_folder_set_message_flags(p->source, p->uid, CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_SEEN, ~0);
 		else
 			info->flags |= CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_SEEN|CAMEL_MESSAGE_FOLDER_FLAGGED;
-- 
cgit