Workaround for MISSING_MAILBOX@MISSING_DOMAIN

This commit is contained in:
Drew DeVault 2020-11-13 13:42:27 -05:00
parent 1565a335db
commit 7b3e580fe4

View file

@ -17,14 +17,18 @@
<input type="email" name="from" id="from" value="{{.Message.From}}" />
<label>To</label>
{{ $to := .Message.ToString }}
{{ if eq $to "MISSING_MAILBOX@MISSING_DOMAIN" }}
{{ $to = "" }}
{{ end }}
<input
type="email"
name="to"
id="to"
value="{{.Message.ToString}}"
value="{{$to}}"
multiple
list="emails"
{{ if not .Message.ToString }} autofocus{{ end }}
{{ if not $to }} autofocus{{ end }}
/>
<label>Subject</label>
@ -33,7 +37,7 @@
name="subject"
id="subject"
value="{{.Message.Subject}}"
{{ if .Message.ToString }} autofocus{{ end }}
{{ if $to }} autofocus{{ end }}
/>
<label>Attachments</label>