aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/public/message.html
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-12-17 11:28:47 +0100
committerSimon Ser <contact@emersion.fr>2019-12-17 11:33:23 +0100
commit9404be1a329fce746ac8c7376c889350da574ea8 (patch)
treeff32e587b57eeabc7043f83d3a085d325b20bd50 /plugins/base/public/message.html
parente78d2db3ea0fbf75a248d0bb2e9bf724e7836272 (diff)
downloadalps-9404be1a329fce746ac8c7376c889350da574ea8.tar.gz
alps-9404be1a329fce746ac8c7376c889350da574ea8.zip
Add envelope metadata to message view
Diffstat (limited to 'plugins/base/public/message.html')
-rw-r--r--plugins/base/public/message.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index 11afa73..0b7a8d5 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -30,6 +30,28 @@
<input type="submit" value="Delete">
</form>
+<ul>
+ <li>
+ <strong>Date</strong>: {{.Message.Envelope.Date | formatdate}}
+ </li>
+ <li>
+ <strong>From</strong>: {{.Message.Envelope.From | formataddrlist}}
+ </li>
+ <li>
+ <strong>To</strong>: {{.Message.Envelope.To | formataddrlist}}
+ </li>
+ {{if .Message.Envelope.Cc}}
+ <li>
+ <strong>Cc</strong>: {{.Message.Envelope.Cc | formataddrlist}}
+ </li>
+ {{end}}
+ {{if .Message.Envelope.Bcc}}
+ <li>
+ <strong>Bcc</strong>: {{.Message.Envelope.Bcc | formataddrlist}}
+ </li>
+ {{end}}
+</ul>
+
{{define "message-part-tree"}}
{{/* nested templates can't access the parent's context */}}
{{$ = index . 0}}