webmail: add button to mark a mailbox and its children as read

this sets the seen flag on all messages in the mailbox and its children.
This commit is contained in:
Mechiel Lukkien
2025-01-30 11:50:52 +01:00
parent c8fd9ca664
commit ad26fd265d
9 changed files with 134 additions and 1 deletions

View File

@ -556,6 +556,15 @@ var api;
const params = [messageIDs, flaglist];
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params);
}
// MailboxesMarkRead marks all messages in mailboxes as read. Child mailboxes are
// not automatically included, they must explicitly be included in the list of IDs.
async MailboxesMarkRead(mailboxIDs) {
const fn = "MailboxesMarkRead";
const paramTypes = [["[]", "int64"]];
const returnTypes = [];
const params = [mailboxIDs];
return await _sherpaCall(this.baseURL, this.authState, { ...this.options }, paramTypes, returnTypes, fn, params);
}
// MailboxCreate creates a new mailbox.
async MailboxCreate(name) {
const fn = "MailboxCreate";