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