issue 1859: tick, undo and remind an item, and choose a mode, from the page (1859.3)

ADR 0517 §1, §2, §4, §5: /item and /mode are posts behind the session's token, each calling its one
mail-reading verb (handle, unhandle, remind, record) for the operator; the script gets done or failed with
the cause as JSON, a plain form goes back to the list or shows it again saying what failed and why.
This commit is contained in:
jochen
2026-10-22 20:05:31 +02:00
parent 7e83b99615
commit ab152687e5
4 changed files with 231 additions and 0 deletions
@@ -56,6 +56,8 @@ func NewServer(host string, auth *Auth, b *Bundle) *Server {
if b != nil {
s.Mux.HandleFunc("/", protect(b.listPage))
s.Mux.HandleFunc("/all", protect(b.accountsPage))
s.Mux.HandleFunc("/item", protect(RequireFormToken(b.itemHandler)))
s.Mux.HandleFunc("/mode", protect(RequireFormToken(b.modeHandler)))
s.Mux.HandleFunc("/static/", staticPage) // the script and the stylesheet carry nothing of a mail
s.Mux.HandleFunc("/folder", protect(b.folderPage))
s.Mux.HandleFunc("/search", protect(b.searchPage))