aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorJason Leach <jleach@ximian.com>2001-06-06 05:31:40 +0800
committerJacob Leach <jleach@src.gnome.org>2001-06-06 05:31:40 +0800
commitda148869da031cec7331322223744bab9b0f6192 (patch)
treefd95e70893e14e8c161c5aac8cb624aa8fcb9adf /mail/message-list.c
parentfbae22e02a477108bd2965aa4d3a725d000e1db0 (diff)
downloadgsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar.gz
gsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar.zst
gsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.zip
(Fix bug #3211: Should undelete when flagging a delete message as
2001-06-05 Jason Leach <jleach@ximian.com> (Fix bug #3211: Should undelete when flagging a delete message as important) * message-list.c (on_click): When flagging a message as important, check to see if it's flagged as deleted, if so, undelete it. svn path=/trunk/; revision=10122
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 0690a747c8..3ae49c8e35 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2045,7 +2045,11 @@ on_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event, Mess
if (info == NULL) {
return FALSE;
}
-
+
+ /* If a message was marked as deleted and the user flags it as important, undelete it */
+ if (col == COL_FLAGGED && (info->flags & CAMEL_MESSAGE_DELETED))
+ flag |= CAMEL_MESSAGE_DELETED;
+
camel_folder_set_message_flags(list->folder, camel_message_info_uid(info), flag, ~info->flags);
if (flag == CAMEL_MESSAGE_SEEN && list->seen_id) {