When creating/editing a ticket or comments, add support for bang-commands to close/reopen/label the ticket. For instance, adding a comment with the last line set to !resolve should close the ticket.
!resolve
See https://man.sr.ht/todo.sr.ht/#email-access