aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-13 03:28:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-13 03:28:50 +0800
commit2872871ac0327cda2fe74f8e81c6fcdfb7064bb6 (patch)
treec4cc10bac52dac192ecb1e811ddc5befe874e305 /camel/providers/mbox
parent49618ae6eb3289fe9f5e8b0cd5dccf8606ab6994 (diff)
downloadgsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.tar
gsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.tar.gz
gsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.tar.bz2
gsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.tar.lz
gsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.tar.xz
gsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.tar.zst
gsoc2013-evolution-2872871ac0327cda2fe74f8e81c6fcdfb7064bb6.zip
Use mbox_set_message_flags () instead of setting the flags by hand. This
2000-07-12 Jeffrey Stedfast <fejj@helixcode.com> * providers/mbox/camel-mbox-folder.c (mbox_delete_message): Use mbox_set_message_flags () instead of setting the flags by hand. This fixes the problem of the "message_changed" signal not being emitted at the correct time. * providers/imap/camel-imap-folder.c: "folder_changed" signals should pass a third argument (which is ignored). * camel-folder.c: Undo gtk signal emits done in set_flags and expunge. (move_message_to): (copy_message_to): Create info as a const CamelMessageInfo svn path=/trunk/; revision=4118
Diffstat (limited to 'camel/providers/mbox')
-rw-r--r--camel/providers/mbox/camel-mbox-folder.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/providers/mbox/camel-mbox-folder.c b/camel/providers/mbox/camel-mbox-folder.c
index c9c79a9d0b..2f254e1919 100644
--- a/camel/providers/mbox/camel-mbox-folder.c
+++ b/camel/providers/mbox/camel-mbox-folder.c
@@ -421,12 +421,12 @@ mbox_get_subfolder_names (CamelFolder *folder, CamelException *ex)
static void
mbox_delete_message (CamelFolder *folder, const gchar *uid, CamelException *ex)
{
- CamelMessageInfo *info;
+ const CamelMessageInfo *info;
CamelMboxFolder *mf = CAMEL_MBOX_FOLDER (folder);
info = camel_folder_summary_uid (CAMEL_FOLDER_SUMMARY (mf->summary), uid);
if (info) {
- info->flags |= CAMEL_MESSAGE_DELETED | CAMEL_MESSAGE_FOLDER_FLAGGED;
+ mbox_set_message_flags (folder, uid, CAMEL_MESSAGE_DELETED, ~(info->flags), ex);
camel_folder_summary_touch (CAMEL_FOLDER_SUMMARY (mf->summary));
}
}