mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:14:39 +03:00
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:
@ -1195,6 +1195,16 @@ func (Webmail) FlagsClear(ctx context.Context, messageIDs []int64, flaglist []st
|
||||
xops.MessageFlagsClear(ctx, log, acc, messageIDs, flaglist)
|
||||
}
|
||||
|
||||
// MailboxesMarkRead marks all messages in mailboxes as read. Child mailboxes are
|
||||
// not automatically included, they must explicitly be included in the list of IDs.
|
||||
func (Webmail) MailboxesMarkRead(ctx context.Context, mailboxIDs []int64) {
|
||||
reqInfo := ctx.Value(requestInfoCtxKey).(requestInfo)
|
||||
acc := reqInfo.Account
|
||||
log := reqInfo.Log
|
||||
|
||||
xops.MailboxesMarkRead(ctx, log, acc, mailboxIDs)
|
||||
}
|
||||
|
||||
// MailboxCreate creates a new mailbox.
|
||||
func (Webmail) MailboxCreate(ctx context.Context, name string) {
|
||||
reqInfo := ctx.Value(requestInfoCtxKey).(requestInfo)
|
||||
|
Reference in New Issue
Block a user