aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-11-07 04:45:52 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-11-07 04:45:52 +0800
commit3ccbffa051d714ce46ee432ccf1c3643c8699d37 (patch)
tree15a0732d3dc79afb1ff7f80edd304640c081888d /mail/mail-callbacks.c
parent341487d67d2cc35846e7556d0f7f02ab0ea1f79d (diff)
downloadgsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.tar
gsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.tar.gz
gsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.tar.bz2
gsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.tar.lz
gsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.tar.xz
gsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.tar.zst
gsoc2013-evolution-3ccbffa051d714ce46ee432ccf1c3643c8699d37.zip
Don't invert the flag. (undelete_msg): Same (when multiple messages are
2000-11-06 Jeffrey Stedfast <fejj@helixcode.com> * mail-callbacks.c (delete_msg): Don't invert the flag. (undelete_msg): Same (when multiple messages are selected). svn path=/trunk/; revision=6421
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 7ccb0f9aee..b6a9f9bcea 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -656,15 +656,13 @@ edit_msg (GtkWidget *widget, gpointer user_data)
if (!check_send_configuration (fb))
return;
- uids = g_ptr_array_new();
+ uids = g_ptr_array_new ();
message_list_foreach (fb->message_list, enumerate_msg, uids);
/* FIXME: do we need to pass the postpone callback too? */
mail_do_edit_messages (fb->folder, uids, (GtkSignalFunc) composer_send_cb);
}
-/* FIXME: now that we have an undelete_msg, we should make this only
- set the deleted flag? */
void
delete_msg (GtkWidget *button, gpointer user_data)
{
@@ -683,17 +681,15 @@ delete_msg (GtkWidget *button, gpointer user_data)
* - Dan
*/
if (uids->len == 1) {
- guint32 flags;
char *uid = uids->pdata[0];
mail_tool_camel_lock_up ();
- flags = camel_folder_get_message_flags (ml->folder, uid);
camel_folder_set_message_flags (ml->folder, uid,
CAMEL_MESSAGE_DELETED,
- ~flags);
+ CAMEL_MESSAGE_DELETED);
mail_tool_camel_lock_down ();
} else {
- mail_do_flag_messages (ml->folder, uids, TRUE,
+ mail_do_flag_messages (ml->folder, uids, FALSE,
CAMEL_MESSAGE_DELETED,
CAMEL_MESSAGE_DELETED);
}
@@ -725,7 +721,7 @@ undelete_msg (GtkWidget *button, gpointer user_data)
0);
mail_tool_camel_lock_down ();
} else {
- mail_do_flag_messages (ml->folder, uids, TRUE,
+ mail_do_flag_messages (ml->folder, uids, FALSE,
CAMEL_MESSAGE_DELETED,
0);
}