diff options
author | Robin Jarry <robin@jarry.cc> | 2023-06-24 14:42:00 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-06-25 22:28:40 +0200 |
commit | fb99486ad073bb99ca526add707d774464159e8a (patch) | |
tree | 32a2ee9f0ac57d827dbe441cc662bb00bb8fa367 /worker/jmap/push.go | |
parent | f7837edbb203a489fbfdd95f6b427906a58fbbdb (diff) | |
download | aerc-fb99486ad073bb99ca526add707d774464159e8a.tar.gz |
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 <robin@jarry.cc>
Tested-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'worker/jmap/push.go')
-rw-r--r-- | worker/jmap/push.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 { |