[evolution-data-server] Camel: Thaw frozen folders on failed Maildir message transfer
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Camel: Thaw frozen folders on failed Maildir message transfer
- Date: Tue, 22 Feb 2022 09:10:10 +0000 (UTC)
commit c137b424cb3aa7a35f14309680a91d61d4ab5288
Author: Milan Crha <mcrha redhat com>
Date: Tue Feb 22 10:08:18 2022 +0100
Camel: Thaw frozen folders on failed Maildir message transfer
Otherwise the folders are left frozen, which means they won't
notify about any changes in them, among other problems the leftover
frozen state can cause.
src/camel/providers/local/camel-maildir-folder.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/camel/providers/local/camel-maildir-folder.c
b/src/camel/providers/local/camel-maildir-folder.c
index 79fa41389..3da70f2f2 100644
--- a/src/camel/providers/local/camel-maildir-folder.c
+++ b/src/camel/providers/local/camel-maildir-folder.c
@@ -341,6 +341,14 @@ maildir_folder_transfer_messages_to_sync (CamelFolder *source,
CamelMessageInfo *info;
if ((info = camel_folder_summary_get (camel_folder_get_folder_summary (source), uid))
== NULL) {
+ camel_local_folder_claim_changes (lf);
+ camel_local_folder_claim_changes (df);
+
+ camel_folder_thaw (source);
+ camel_folder_thaw (dest);
+
+ camel_operation_pop_message (cancellable);
+
set_cannot_get_message_ex (
error, CAMEL_FOLDER_ERROR_INVALID_UID,
uid, lf->folder_path, _("No such message"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]