(Patch by Florian Le Minioux) Fix HTTP 500 when missing some folders

This commit is contained in:
Alex 2021-03-08 17:01:23 +01:00
parent 1988b2a158
commit 54d085f7f3
No known key found for this signature in database
GPG key ID: EDABF9711E244EB1

View file

@ -32,12 +32,12 @@
">Compose&nbsp;mail</a>
</li>
{{ 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 }}
<hr />
{{ range .Additional }}