Link sender name to search for their email address

This commit is contained in:
Drew DeVault 2020-10-23 11:47:11 -04:00
parent b437cef2ab
commit 2d73c882df

View file

@ -46,11 +46,13 @@
</div> </div>
<div class="message-list-sender {{$classes}}"> <div class="message-list-sender {{$classes}}">
{{ range .Envelope.From }} {{ range .Envelope.From }}
<a href='?query=from:"{{.MailboxName}}@{{.HostName}}"'>
{{ if .PersonalName }} {{ if .PersonalName }}
{{.PersonalName}} {{.PersonalName}}
{{ else }} {{ else }}
{{.MailboxName}}@{{.HostName}} {{.MailboxName}}@{{.HostName}}
{{ end }} {{ end }}
</a>
{{ end }} {{ end }}
</div> </div>
<div class="message-list-flags {{$classes}}"> <div class="message-list-flags {{$classes}}">