From 54d085f7f3f0a8f6da83cc599c19c593b1412dc3 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 8 Mar 2021 17:01:23 +0100 Subject: (Patch by Florian Le Minioux) Fix HTTP 500 when missing some folders --- themes/alps/util.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/alps/util.html b/themes/alps/util.html index 9cdfd86..b0022ec 100644 --- a/themes/alps/util.html +++ b/themes/alps/util.html @@ -32,12 +32,12 @@ ">Compose mail {{ with .CategorizedMailboxes }} - {{ with .Common.Inbox }}{{ template "mbox-link" . }}{{ end }} - {{ with .Common.Drafts }}{{ 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 }} - {{ with .Common.Archive }}{{ template "mbox-link" . }}{{ end }} + {{ if .Common.Inbox.Info }}{{ with .Common.Inbox }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Drafts.Info }}{{ with .Common.Drafts }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Sent.Info }}{{ with .Common.Sent }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Junk.Info }}{{ with .Common.Junk }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Trash.Info }}{{ with .Common.Trash }}{{ template "mbox-link" . }}{{ end }}{{ end }} + {{ if .Common.Archive.Info }}{{ with .Common.Archive }}{{ template "mbox-link" . }}{{ end }}{{ end }} {{ if .Additional }}
{{ range .Additional }} -- cgit v1.2.3