aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
parentfbae22e02a477108bd2965aa4d3a725d000e1db0 (diff)
downloadgsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar
gsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar.gz
gsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar.bz2
gsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar.lz
gsoc2013-evolution-da148869da031cec7331322223744bab9b0f6192.tar.xz
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')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/message-list.c6
2 files changed, 11 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 5f00dd6cec..cc5a2008ce 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,11 @@
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.
+
(Fix bug #314: Display URLs in statusbar on mouseover)
* mail-display.c (html_on_url): New function, callback for
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) {