From 3b3f989e833c51ff0f8f0d544e14dec5e93a64dd Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 15 Sep 2000 14:58:46 +0000 Subject: Don't get_message_flags, because POP doesn't support it and it's pointless * mail-ops.c (do_fetch_mail): Don't get_message_flags, because POP doesn't support it and it's pointless anyway since we're setting deleted, not toggling it. call camel_folder_sync with expunge=TRUE so that the deletions are actually recorded. svn path=/trunk/; revision=5450 --- mail/mail-ops.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index fd95cbaef9..e147709219 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -219,19 +219,16 @@ do_fetch_mail (gpointer in_data, gpointer op_data, CamelException *ex) what it's been copied to at least 1 folder - even if it's just the default (assuming we didn't get an exception) */ if (!input->keep_on_server && !camel_exception_is_set (ex)) { - guint32 flags; - - flags = camel_folder_get_message_flags (folder, uids->pdata[i]); camel_folder_set_message_flags (folder, uids->pdata[i], CAMEL_MESSAGE_DELETED, - ~flags); + CAMEL_MESSAGE_DELETED); } camel_object_unref (CAMEL_OBJECT (message)); } gtk_object_unref (GTK_OBJECT (filter)); - camel_folder_sync (folder, FALSE, ex); + camel_folder_sync (folder, TRUE, ex); camel_folder_thaw (input->destination); -- cgit