From ad769a4440cb343e1afd5abbd59a4d4c4d07d9d4 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Apr 2004 09:24:09 +0000 Subject: always set the seen flag when we delete a message. I demand that this may, 2004-04-08 Not Zed * 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: (camel_folder_set_message_flags): fixed the doco slightly (well reversed the flag and set explanation) and give an example. svn path=/trunk/; revision=25371 --- camel/ChangeLog | 6 ++++++ camel/camel-folder.c | 5 ++++- camel/camel-folder.h | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'camel') 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 + * 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, -- cgit