[evolution-data-server] [IMAPx] Empty trash doesn't empty virtual folder Trash
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] [IMAPx] Empty trash doesn't empty virtual folder Trash
- Date: Fri, 11 Sep 2015 10:15:38 +0000 (UTC)
commit ad3a52dd2fac2f305dbf8191de97cd8349b3e3a2
Author: Milan Crha <mcrha redhat com>
Date: Fri Sep 11 12:12:22 2015 +0200
[IMAPx] Empty trash doesn't empty virtual folder Trash
The 'expunge' parameter of the CamelFolder::synchronize_sync() had been
completely ignored, while the 'Empty trash' function used it to permanently
delete messages in the folder, thus it didn't delete anything.
camel/providers/imapx/camel-imapx-folder.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-folder.c b/camel/providers/imapx/camel-imapx-folder.c
index 532f321..e53b050 100644
--- a/camel/providers/imapx/camel-imapx-folder.c
+++ b/camel/providers/imapx/camel-imapx-folder.c
@@ -779,6 +779,9 @@ imapx_synchronize_sync (CamelFolder *folder,
success = mailbox != NULL;
} else {
success = camel_imapx_conn_manager_sync_changes_sync (conn_man, mailbox, cancellable, error);
+ if (success && expunge && camel_folder_summary_get_deleted_count (folder->summary) > 0) {
+ success = camel_imapx_conn_manager_expunge_sync (conn_man, mailbox, cancellable,
error);
+ }
}
g_clear_object (&mailbox);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]