Skip to content

Commit

Permalink
also trigger use of smtputf8 for utf8 localpart in Reply-To header
Browse files Browse the repository at this point in the history
  • Loading branch information
mjl- committed Apr 15, 2024
1 parent d014303 commit 8bec5ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webmail/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ func (w Webmail) MessageSubmit(ctx context.Context, m SubmitMessage) {
// todo: may want to warn user that they should consider sending with a ascii-only localpart, in case receiver doesn't support smtputf8.
smtputf8 = true
}
if !smtputf8 && replyTo != nil && replyTo.Address.Localpart.IsInternational() {
smtputf8 = true
}

// Create file to compose message into.
dataFile, err := store.CreateMessageTemp(log, "webmail-submit")
Expand Down

0 comments on commit 8bec5ef

Please sign in to comment.