aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 24fac02cbe..c2f9f127a8 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2060,9 +2060,21 @@ on_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, Mess
return FALSE;
}
- /* If a message was marked as deleted and the user flags it as important, undelete it */
- if ((col == COL_FLAGGED || col == COL_NEED_REPLY) && (info->flags & CAMEL_MESSAGE_DELETED))
- flag |= CAMEL_MESSAGE_DELETED;
+ /* If a message was marked as deleted and the user flags it as
+ important, marks it as needing a reply, marks it as unread,
+ then undelete the message. */
+ if (info->flags & CAMEL_MESSAGE_DELETED) {
+
+ if (col == COL_FLAGGED && !(info->flags & CAMEL_MESSAGE_FLAGGED))
+ flag |= CAMEL_MESSAGE_DELETED;
+
+ if (col == COL_NEED_REPLY && !(info->flags & CAMEL_MESSAGE_NEEDS_REPLY))
+ flag |= CAMEL_MESSAGE_DELETED;
+
+ if (col == COL_MESSAGE_STATUS && (info->flags & CAMEL_MESSAGE_SEEN))
+ flag |= CAMEL_MESSAGE_DELETED;
+
+ }
camel_folder_set_message_flags (list->folder, camel_message_info_uid (info), flag, ~info->flags);
-042-7/+7 * - Update to 3.4.0gahr2010-07-013-36/+76 * - Add glew to the list of supported USE_GL variablesgahr2010-04-281-3/+2 * - Really fix dirent.h problemsgahr2010-04-121-6/+22 * - Update to 3.3.1gahr2010-04-036-45/+124 * - update to 1.4.1dinoex2010-03-281-0/+1 * Note that this also got broken with the dirent.h MFC.linimon2010-03-221-0/+4 * - Remove remaining SFP references (switch these ports to SF)amdmi32009-08-271-1/+1 * - Chase distfile mismatch after silent updategahr2009-08-172-7/+7 * - Change to new SFP macromiwi2009-08-151-1/+1 * -Repocopy devel/libtool15 -> libtool22 and libltdl15 -> libltdl22.mezz2009-08-031-1/+1 * - Fix PORTDOCS installationgahr2009-06-201-1/+1 * - Chase unversioned distfile update by using DIST_SUBDIRgahr2009-06-162-6/+8 * - Update checksum of userManual.pdfgahr2009-06-121-2/+2 * - Refactor (fix) pkg-plistgahr2009-03-252-250/+265 * - Update to 3.1.2gahr2009-03-232-4/+4 * - Update to 3.1.1gahr2009-03-113-273/+297 * - Update X.org ports to 7.4+ (few ports are more recent than the katamari).flz2009-01-241-0/+1 * - Update to 3.0.3gahr2008-11-283-276/+272 * Update CONFIGURE_ARGS for how we pass CONFIGURE_TARGET to configure script.rafan2008-08-211-2/+0 * - Fix build after qt 4.4.1 updatemiwi2008-08-051-2/+2 * - Fix dependency listgahr2008-07-311-1/+2 * - Update to 3.0.2gahr2008-07-1847-1455/+464 * Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1 * - Remove unneeded dependency from gtk12/gtk20 [1]miwi2008-04-201-2/+2 * - Remove USE_GETOPT_LONG which is a no-op since March 2007pav2008-03-201-1/+0 * My reference e-mail address as a ports maintainer is now gahr@FreeBSD.org.gahr2008-02-221-1/+1 * - Mark BROKEN on amd64 and ia64 with gcc 4.2pav2008-01-311-0/+4 * - Fix build with gcc 4.2miwi2007-12-2214-6/+537 * - Welcome X.org 7.2 \o/.flz2007-05-201-1/+1 * BROKEN on 7.0: does not comopilekris2007-04-221-0/+4 * - Respect X11BASEmiwi2006-12-04