aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-08-27 05:19:07 +0800
committerPeter Williams <peterw@src.gnome.org>2002-08-27 05:19:07 +0800
commitb1971b08cd80e57bf20b1a4d7e289de22bff54de (patch)
tree4926923613c9b5e085cf719d4508c5f2513ef63f
parent245ac4505dd747aabaf5458fed6014f0b9b5ff1d (diff)
downloadgsoc2013-evolution-b1971b08cd80e57bf20b1a4d7e289de22bff54de.tar.gz
gsoc2013-evolution-b1971b08cd80e57bf20b1a4d7e289de22bff54de.tar.zst
gsoc2013-evolution-b1971b08cd80e57bf20b1a4d7e289de22bff54de.zip
Logic change for when untoggling a message from deleted-dom.
2002-08-26 Peter Williams <peterw@ximian.com> * mail-callbacks.c (toggle_flags): Logic change for when untoggling a message from deleted-dom. svn path=/trunk/; revision=17869
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 15269754f0..1ddb3d586e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2002-08-26 Peter Williams <peterw@ximian.com>
+ * mail-callbacks.c (toggle_flags): Logic change for when untoggling
+ a message from deleted-dom.
+
+2002-08-26 Peter Williams <peterw@ximian.com>
+
* mail-ops.c (transfer_messages_transfer): Enforce the mailer policy
that deleted messages are marked as seen. Fixes 29448. This could
go in camel_folder_transfer_messages_to, but I don't think we
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index a72de4389b..4a0dd5646d 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1997,8 +1997,10 @@ toggle_flags (FolderBrowser *fb, guint32 mask)
mask |= CAMEL_MESSAGE_DELETED;
}
- /* if we're flagging a message deleted, always mark it seen too */
- if (mask & flags & CAMEL_MESSAGE_DELETED) {
+ /* if we're flagging a message deleted, mark it seen. If
+ * we're undeleting it, we also want it to be seen, so always do this.
+ */
+ if (mask & CAMEL_MESSAGE_DELETED) {
flags |= CAMEL_MESSAGE_SEEN;
mask |= CAMEL_MESSAGE_SEEN;
}