diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-08 17:24:09 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-08 17:24:09 +0800 |
commit | ad769a4440cb343e1afd5abbd59a4d4c4d07d9d4 (patch) | |
tree | bb6d2afd362530b93f33826b53200b43d69cd437 /camel | |
parent | 00f84d0c5a594736ddc17ec8115b3a858e085c0a (diff) | |
download | gsoc2013-evolution-ad769a4440cb343e1afd5abbd59a4d4c4d07d9d4.tar.gz gsoc2013-evolution-ad769a4440cb343e1afd5abbd59a4d4c4d07d9d4.tar.zst gsoc2013-evolution-ad769a4440cb343e1afd5abbd59a4d4c4d07d9d4.zip |
always set the seen flag when we delete a message. I demand that this may,
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:
(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
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 6 | ||||
-rw-r--r-- | camel/camel-folder.c | 5 | ||||
-rw-r--r-- | camel/camel-folder.h | 2 |
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, |