aboutsummaryrefslogtreecommitdiff
path: root/public/message.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/message.html')
-rw-r--r--public/message.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/message.html b/public/message.html
index 2e1a308..5c18bd0 100644
--- a/public/message.html
+++ b/public/message.html
@@ -6,7 +6,13 @@
<a href="/mailbox/{{.Mailbox.Name | pathescape}}">Back</a>
</p>
-<h2>{{.Message.Envelope.Subject}}</h2>
+<h2>
+ {{if .Message.Envelope.Subject}}
+ {{.Message.Envelope.Subject}}
+ {{else}}
+ (No subject)
+ {{end}}
+</h2>
{{define "message-part-tree"}}
{{/* nested templates can't access the parent's context */}}