mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 07:14:40 +03:00
on admin index page, show number of messages in queue next to link to the queue list
This commit is contained in:
@ -162,6 +162,11 @@ func List() ([]Msg, error) {
|
||||
return qmsgs, nil
|
||||
}
|
||||
|
||||
// Count returns the number of messages in the delivery queue.
|
||||
func Count() (int, error) {
|
||||
return bstore.QueryDB[Msg](queueDB).Count()
|
||||
}
|
||||
|
||||
// Add a new message to the queue. The queue is kicked immediately to start a
|
||||
// first delivery attempt.
|
||||
//
|
||||
|
Reference in New Issue
Block a user