This is the main dovel repository, it has the Go code to run dovel SMTP server.
Author: blmayer (git@mail.blmayer.dev)
Date: Mon May 15 20:42:32 2023 -0300
Parent: afdd85f
Added delete button in other pages
commit ec74d65f52c09d206827aafa1d5b8a6517f4ef40 Author: blmayer <git@mail.blmayer.dev> Date: Mon May 15 20:42:32 2023 -0300 Added delete button in other pages diff --git a/www/inboxes.html b/www/inboxes.html index 7582762..6214dfa 100644 --- a/www/inboxes.html +++ b/www/inboxes.html @@ -7,7 +7,8 @@ <h2>{{.Query.Get "inbox"}}</h2> <a href="index.html">index</a>  -<a href="compose.html?inbox={{.Query.Get "inbox"}}">compose</a> +<a href="compose.html?inbox={{.Query.Get "inbox"}}">compose</a>  +<a href="delete?id={{.Query.Get "inbox"}}">delete</a> {{range (.Mailer.Mailboxes (.Query.Get "inbox"))}} <p> <a href="mails.html?inbox={{$.Query.Get "inbox"}}&subj={{.Title}}">{{.Title}}</a><br>
commit ec74d65f52c09d206827aafa1d5b8a6517f4ef40 Author: blmayer <git@mail.blmayer.dev> Date: Mon May 15 20:42:32 2023 -0300 Added delete button in other pages diff --git a/www/mails.html b/www/mails.html index b457664..caac595 100644 --- a/www/mails.html +++ b/www/mails.html @@ -6,9 +6,10 @@ <body> <h2>{{.Query.Get "subj"}}</h2> -<a href="inboxes.html?inbox={{.Query.Get "inbox"}}">inbox</a>  -<a href="compose.html?inbox={{.Query.Get "inbox"}}&subj={{.Query.Get "subj"}}">compose</a> {{$inbox := printf "%s/%s" (.Query.Get "inbox") (.Query.Get "subj")}} +<a href="inboxes.html?inbox={{.Query.Get "inbox"}}">inbox</a>  +<a href="compose.html?inbox={{.Query.Get "inbox"}}&subj={{.Query.Get "subj"}}">compose</a>  +<a href="delete?id={{$inbox}}">delete</a> {{range (.Mailer.Mails $inbox)}} <p> <details> @@ -40,20 +41,8 @@ {{if .Body}} <pre>{{.Body}}</pre> {{end}} - <a href="compose.html?inbox={{$.Query.Get "inbox"}}&subj={{.Subject}}&to={{.From}}">reply</a> - <form action=delete> - <input type=hidden name=id value="{{.ID}}"> - <input type=submit value=delete> - </form> - <details> - <summary>move</summary> - <form action=/move> - <input name=to type=select list=folders><br> - <datalist id=folders> - </datalist> - <input type=submit value=move> - <form> - </details> + <a href="compose.html?inbox={{$.Query.Get "inbox"}}&subj={{.Subject}}&to={{.From}}">reply</a> + <a href="delete?id={{printf "%s/%s" $inbox .ID}}">delete</a> </p> {{end}} </body>