aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-folder.c5
-rw-r--r--camel/camel-folder.h2
3 files changed, 11 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 0365684d03..37c85c6e20 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,6 +1,12 @@
2004-04-08 Not Zed <NotZed@Ximian.com>
+ * camel-folder.h (camel_folder_delete_message): always set the
+ seen flag when we delete a message. I demand that this may, or
+ may not, fix #56549.
+
* camel-folder.c: include camel-debug.h
+ (camel_folder_set_message_flags): fixed the doco slightly (well
+ reversed the flag and set explanation) and give an example.
* providers/local/camel-mbox-folder.c
(mbox_set_message_user_flag): message changed to folder_changed.
diff --git a/camel/camel-folder.c b/camel/camel-folder.c
index 129ca418ce..ca30bb24cd 100644
--- a/camel/camel-folder.c
+++ b/camel/camel-folder.c
@@ -756,10 +756,13 @@ set_message_flags(CamelFolder *folder, const char *uid, guint32 flags, guint32 s
* @flags: a set of CamelMessageFlag values to set
* @set: the mask of values in @flags to use.
*
- * Sets those flags specified by @set to the values specified by @flags
+ * Sets those flags specified by @flags to the values specified by @set
* on the indicated message. (This may or may not persist after the
* folder or store is closed. See camel_folder_get_permanent_flags().)
*
+ * E.g. to set the deleted flag and clear the draft flag, use
+ * set_message_flags(folder, uid, CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_DRAFT, CAMEL_MESSAGE_DELETED);
+ *
* Return Value: TRUE if the flags were changed, false otherwise.
**/
gboolean
diff --git a/camel/camel-folder.h b/camel/camel-folder.h
index da81fd5216..b34b9ab45b 100644
--- a/camel/camel-folder.h
+++ b/camel/camel-folder.h
@@ -280,7 +280,7 @@ CamelMimeMessage * camel_folder_get_message (CamelFolder *folder,
const char *uid,
CamelException *ex);
#define camel_folder_delete_message(folder, uid) \
- camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_DELETED, CAMEL_MESSAGE_DELETED)
+ camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_DELETED|CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_DELETED)
GPtrArray * camel_folder_get_uids (CamelFolder *folder);
void camel_folder_free_uids (CamelFolder *folder,