mirror of
https://github.com/mjl-/mox.git
synced 2025-07-12 15:04:36 +03:00
also trigger use of smtputf8 for utf8 localpart in Reply-To header
This commit is contained in:
@ -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.
|
// 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
|
smtputf8 = true
|
||||||
}
|
}
|
||||||
|
if !smtputf8 && replyTo != nil && replyTo.Address.Localpart.IsInternational() {
|
||||||
|
smtputf8 = true
|
||||||
|
}
|
||||||
|
|
||||||
// Create file to compose message into.
|
// Create file to compose message into.
|
||||||
dataFile, err := store.CreateMessageTemp(log, "webmail-submit")
|
dataFile, err := store.CreateMessageTemp(log, "webmail-submit")
|
||||||
|
Reference in New Issue
Block a user