This is the main dovel repository, it has the Go code to run dovel SMTP server.
Author: blmayer (bleemayer@gmail.com)
Date: Wed Apr 19 00:22:41 2023 -0300
Parent: b977113
Adjusted some styles
commit cdf7299fdc0e17e655e5d80fc678052c25b68486
Author: blmayer <bleemayer@gmail.com>
Date: Wed Apr 19 00:22:41 2023 -0300
Adjusted some styles
diff --git a/www/compose.html b/www/compose.html
index fb6523e..3e2ad77 100644
--- a/www/compose.html
+++ b/www/compose.html
@@ -1,20 +1,30 @@
{{template "head.html"}}
-
-<p><b>composing</b></p>
-
+<b>composing</b><br>
+<br>
<form action=/out method=post enctype=multipart/form-data>
- <label for="from">From: </label>
- <input name=from {{if .inbox}}value="{{index .inbox 0}}"{{end}}><br>
- <label>To: </label>
- <input name=to><br>
- <label>CC: </label>
- <input name=cc><br>
- <label>CCo: </label>
- <input name=cco><br>
- <label>Subject: </label>
- <input name=subject {{if .subj}}value="{{index .subj 0}}"{{end}}><br>
- Body:<br><br>
- <field><textarea name=body rows="7" cols="50"></textarea><br></field>
+ <table>
+ <tr>
+ <td style="padding-left: 0"><label for="from">From: </label></td>
+ <td><input style="width:100%" name=from {{if .inbox}}value="{{index .inbox 0}}"{{end}}></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 0"><label>To: </label></td>
+ <td><input style="width:100%" name=to {{if .to}}value="{{index .to 0}}"{{end}}></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 0"><label>CC: </label></td>
+ <td><input style="width:100%" name=cc></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 0"><label>CCo: </label></td>
+ <td><input style="width:100%" name=cco></td>
+ </tr>
+ <tr>
+ <td style="padding-left: 0"><label>Subject: </label></td>
+ <td><input style="width:100%" name=subject {{if .subj}}value="{{index .subj 0}}"{{end}}></td>
+ </tr>
+ </table>
+ <field><textarea style="width:100%" name=body rows="7" cols="50" placeholder="Body:"></textarea><br></field>
<br>
<input type=submit value=send>
</form>
commit cdf7299fdc0e17e655e5d80fc678052c25b68486
Author: blmayer <bleemayer@gmail.com>
Date: Wed Apr 19 00:22:41 2023 -0300
Adjusted some styles
diff --git a/www/mail.html b/www/mail.html
index 7445c35..a1bd9e5 100644
--- a/www/mail.html
+++ b/www/mail.html
@@ -1,24 +1,15 @@
{{template "head.html"}}
-
{{with $subj := printf "%s/%s" (.Get "inbox") (.Get "subj")}}
{{with $inbox := ($.Get "inbox")}}
<b>{{$.Get "subj"}}</b><br>
<br>
-
-<a href="mails.html?inbox={{$inbox}}&subj={{index $.subj 0}}">back</a> 
-<a href="compose.html?inbox={{$inbox}}&subj={{index $.subj 0}}">reply</a><br>
-<br>
+<a href="mails.html?inbox={{$inbox}}&subj={{index $.subj 0}}">back</a>
{{range (mails $subj)}}
- {{if eq .From $inbox}}
- To: {{index .To 0}}<br>
- {{else}}
- From: {{.From}}<br>
- {{end}}
+<p>
+ {{if eq .From $inbox}}To: {{index .To 0}}<br>{{else}}From: {{.From}}<br>{{end}}
Date: {{.Date.Format "Mon, 02 Jan 2006 15:04:05 MST"}}<br>
- {{if .Cc}}
- Cc: .Cc<br>
- {{end}}
+ {{if .Cc}}Cc: .Cc<br>{{end}}
{{if .Attachments}}
<br>
Attachments:<br>
@@ -26,12 +17,12 @@
<a href="data:{{.ContentType}};base64,{{.Data}}" download="{{.Name}}">{{.Name}}</a><br>
{{end}}
{{end}}
+</p>
{{if .Body}}
- <br>
<pre>{{.Body}}</pre>
{{end}}
<br>
+ <a href="compose.html?inbox={{$inbox}}&subj={{.Subject}}&to={{.From}}">reply</a>
{{end}}
-
{{end}}
{{end}}
commit cdf7299fdc0e17e655e5d80fc678052c25b68486
Author: blmayer <bleemayer@gmail.com>
Date: Wed Apr 19 00:22:41 2023 -0300
Adjusted some styles
diff --git a/www/style-min.html b/www/style-min.html
index 7ca9016..99f3c18 100644
--- a/www/style-min.html
+++ b/www/style-min.html
@@ -5,25 +5,25 @@
margin: 50px auto;
font-family: sans-serif;
}
+ table {
+ width: 100%;
+ }
a {
color: #888
}
input, textarea {
- flex-grow: 1;
- border: none;
- border-bottom: 1px solid #888;
color: #888;
font-family: monospace;
}
+ input {
+ border: none;
+ border-bottom: 1px solid #888;
+ }
input[type="submit"] {
text-decoration: underline;
cursor: pointer;
color: #888;
}
- label {
- display: inline-block;
- min-width: 80px;
- }
pre {
white-space: pre-wrap;
}