diff options
Diffstat (limited to 'themes/sourcehut')
-rw-r--r-- | themes/sourcehut/message.html | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index af39b15..1e4197f 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -124,7 +124,8 @@ <details> <summary>Move to another mailbox</summary> - <form method="post" action="{{.Message.URL}}/move"> + <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/move"> + <input type="hidden" name="uids" value="{{.Message.Uid}}"> <div class="form-group"> <select class="form-control" name="to" id="move-to"> {{range .Mailboxes}} @@ -140,7 +141,8 @@ <details> <summary>Delete</summary> - <form method="post" action="{{.Message.URL}}/delete"> + <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/delete"> + <input type="hidden" name="uids" value="{{.Message.Uid}}"> <p>Are you sure?</p> <div class="pull-right"> <button class="btn btn-danger">Delete</button> @@ -151,7 +153,8 @@ {{if .Flags}} <details> <summary>Edit flags</summary> - <form method="post" action="{{.Message.URL}}/flag"> + <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/flag"> + <input type="hidden" name="uids" value="{{.Message.Uid}}"> <div class="form-group"> {{range $name, $has := .Flags}} {{if ismutableflag $name}} |