threading: add backend capabilities to workers
This patch provides a method to report backend capabilities to the UI. The intial capabilities included in the report are Sort and Thread. Having these available to the UI enables the client to better handle server side threading. Signed-off-by: Koni Marti <koni.marti@gmail.com> Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
parent
a8879d79c6
commit
f0c76fad72
5 changed files with 34 additions and 0 deletions
worker/imap
|
@ -31,6 +31,7 @@ func (w *IMAPWorker) handleCheckMailMessage(msg *types.CheckMail) {
|
|||
Exists: int(status.Messages),
|
||||
Recent: int(status.Recent),
|
||||
Unseen: int(status.Unseen),
|
||||
Caps: w.caps,
|
||||
},
|
||||
SkipSort: true,
|
||||
}, nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue