[geary/mjog/790-email-flag-interleaving: 7/7] Geary.Imap.FolderSession: Use the SILENT option when sending IMAP STORE
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/790-email-flag-interleaving: 7/7] Geary.Imap.FolderSession: Use the SILENT option when sending IMAP STORE
- Date: Wed, 24 Feb 2021 21:45:35 +0000 (UTC)
commit 831cd0f476b7d6059d4cafb192517f0ddc2fe8ef
Author: Michael Gratton <mike vee net>
Date: Wed Feb 24 23:18:43 2021 +1100
Geary.Imap.FolderSession: Use the SILENT option when sending IMAP STORE
Not having the server echo the command back saves a useless round-trip,
and prevents undesirable interleaving when executing multiple STORE
commands in quick succession.'
Fixes #790
src/engine/imap/api/imap-folder-session.vala | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/engine/imap/api/imap-folder-session.vala b/src/engine/imap/api/imap-folder-session.vala
index 4fe34f2c8..d544b3b5c 100644
--- a/src/engine/imap/api/imap-folder-session.vala
+++ b/src/engine/imap/api/imap-folder-session.vala
@@ -661,7 +661,7 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
all_uid = false;
cmds.add(
- new StoreCommand(msg_set, ADD_FLAGS, NONE, flags, cancellable)
+ new StoreCommand(msg_set, ADD_FLAGS, SILENT, flags, cancellable)
);
}
@@ -700,7 +700,7 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
new StoreCommand(
msg_set,
ADD_FLAGS,
- NONE,
+ SILENT,
msg_flags_add,
cancellable
)
@@ -712,7 +712,7 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
new StoreCommand(
msg_set,
REMOVE_FLAGS,
- NONE,
+ SILENT,
msg_flags_remove,
cancellable
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]