From fb99486ad073bb99ca526add707d774464159e8a Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 24 Jun 2023 14:42:00 +0200 Subject: jmap: avoid displaying archive folder when use-labels=true When archiving a message, the counts of archive folder are changed. When use-labels=true, the archive folder is hidden and should remain so. Do not send updates to the UI. Signed-off-by: Robin Jarry Tested-by: Tim Culverhouse --- worker/jmap/push.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worker/jmap/push.go') diff --git a/worker/jmap/push.go b/worker/jmap/push.go index 2582b17a..320fee4f 100644 --- a/worker/jmap/push.go +++ b/worker/jmap/push.go @@ -283,6 +283,9 @@ func (w *JMAPWorker) refresh(newState jmap.TypeState) error { for _, id := range changedMboxIds { mbox := mboxes[id] + if mbox.Role == mailbox.RoleArchive && w.config.useLabels { + continue + } newDir := w.MailboxPath(mbox) dir, ok := w.mbox2dir[id] if ok { -- cgit