aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-10-27 15:35:39 -0500
committerRobin Jarry <robin@jarry.cc>2022-11-06 23:17:20 +0100
commit62deed1379338ef8fc8133b9606e8f0e534a257e (patch)
tree483ade03769720937697c9afacc7e164a70cef6a
parentc894ee2d7ae9442a04ca2af2dca5b576a850482a (diff)
downloadaerc-62deed1379338ef8fc8133b9606e8f0e534a257e.tar.gz
maildir: set SkipSort when checking mail
The maildir worker's check-mail command did not include the SkipSort directive in the DirectoryInfo, which would cause a fresh fetching of directory contents on the selected maiboxes. This is unneeded and resulted in every directory being sent to the msgstore and requesting a sort. Set SkipSort when checking mail to prevent extra calls to sort. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--worker/maildir/worker.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/worker/maildir/worker.go b/worker/maildir/worker.go
index a9c45ce8..5a4316c4 100644
--- a/worker/maildir/worker.go
+++ b/worker/maildir/worker.go
@@ -744,7 +744,8 @@ func (w *Worker) handleCheckMail(msg *types.CheckMail) {
}
dirInfo := w.getDirectoryInfo(name)
w.worker.PostMessage(&types.DirectoryInfo{
- Info: dirInfo,
+ Info: dirInfo,
+ SkipSort: true,
}, nil)
}
w.done(msg)