aboutsummaryrefslogtreecommitdiffstats
path: root/worker/imap
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2023-04-16 09:53:36 -0500
committerRobin Jarry <robin@jarry.cc>2023-04-22 22:40:12 +0200
commit91ac21ac615582e2dd5e36f4b36bde1bc0bf38d8 (patch)
tree718dd2cdcb045ca50fdc98f5c6486e0c90c94f29 /worker/imap
parent6220711f90d769cbee1ae855dd6a33964626f5a4 (diff)
downloadaerc-91ac21ac615582e2dd5e36f4b36bde1bc0bf38d8.tar.gz
msgstore: fetch message list based on OpenDirectory msg
Fetching the message list is done in a convoluted way. The UI receives a DirectoryInfo message, which creates a message store. It then receives a second DirectoryInfo (an oddity from the IMAP worker), and this DirectoryInfo is passed to the message store which then requests a fetch of the message list via store.Sort. Use the OpenDirectory done response to tell the message store to fetch messages. This makes the code easier to follow, and does not rely on quirks from the IMAP worker. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/imap')
-rw-r--r--worker/imap/checkmail.go1
-rw-r--r--worker/imap/list.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/worker/imap/checkmail.go b/worker/imap/checkmail.go
index 8f9e1b2b..c1b6ec4c 100644
--- a/worker/imap/checkmail.go
+++ b/worker/imap/checkmail.go
@@ -60,7 +60,6 @@ func (w *IMAPWorker) handleCheckMailMessage(msg *types.CheckMail) {
Unseen: int(status.Unseen),
Caps: w.caps,
},
- SkipSort: true,
}, nil)
}
if len(remaining) > 0 {
diff --git a/worker/imap/list.go b/worker/imap/list.go
index 04e6c39b..c7f1ed58 100644
--- a/worker/imap/list.go
+++ b/worker/imap/list.go
@@ -67,7 +67,6 @@ func (imapw *IMAPWorker) handleListDirectories(msg *types.ListDirectories) {
Unseen: int(status.Unseen),
Caps: imapw.caps,
},
- SkipSort: true,
}, nil)
}
default: