From cbeacf9d060fbd8c593aa3a9a73d9fe94b9ee5d1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 30 Oct 2020 11:47:23 -0400 Subject: 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 --- themes/alps/util.html | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'themes/alps/util.html') 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 }} {{ else }} @@ -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}} -- cgit v1.2.3