aboutsummaryrefslogtreecommitdiff
path: root/themes/alps/util.html
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-10-30 11:47:23 -0400
committerDrew DeVault <sir@cmpwn.com>2020-10-30 11:47:23 -0400
commitcbeacf9d060fbd8c593aa3a9a73d9fe94b9ee5d1 (patch)
tree125353bfc6cccc6e028fd456c471a0ea07a065f0 /themes/alps/util.html
parentd325628cb2b0ad49790549367d1f792fc0f4735e (diff)
downloadalps-cbeacf9d060fbd8c593aa3a9a73d9fe94b9ee5d1.tar.gz
alps-cbeacf9d060fbd8c593aa3a9a73d9fe94b9ee5d1.zip
Copy unsent messages to Outbox
This patch: 1. Copies unsent messages to the outbox before attempting to deliver them with SMTP 2. Deletes those messages once they're sent, or leaves them if an error occured 3. Updates the message list to make it obvious when there are unsent messages in the outbox
Diffstat (limited to 'themes/alps/util.html')
-rw-r--r--themes/alps/util.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/themes/alps/util.html b/themes/alps/util.html
index 68736f1..89e5cac 100644
--- a/themes/alps/util.html
+++ b/themes/alps/util.html
@@ -8,7 +8,11 @@
{{- end -}}
{{- if .HasAttr "\\HasChildren" }}/{{ end }}
+ {{ if eq .Name "Outbox" }}
+ {{ if and (ne .Total -1) (ne .Total 0) }}({{ .Total }} unsent){{ end }}
+ {{ else }}
{{ if and (ne .Unseen -1) (ne .Unseen 0) }}({{ .Unseen }}){{ end }}
+ {{ end }}
</a>
{{ else }}
<span class="noselect">
@@ -26,6 +30,7 @@
{{ with .CategorizedMailboxes }}
{{ with .Common.Inbox }}{{ template "mbox-link" . }}{{ end}}
{{ with .Common.Drafts }}{{ template "mbox-link" . }}{{ end}}
+ {{ with .Common.Outbox }}{{ template "mbox-link" . }}{{ end}}
{{ with .Common.Sent }}{{ template "mbox-link" . }}{{ end}}
{{ with .Common.Junk }}{{ template "mbox-link" . }}{{ end}}
{{ with .Common.Trash }}{{ template "mbox-link" . }}{{ end}}