mirror of
https://github.com/mjl-/mox.git
synced 2025-07-19 00:06:37 +03:00
use shorter smtp.NewAddress() instead of smtp.Address{...}
This commit is contained in:
@ -673,7 +673,7 @@ many authentication failures).
|
||||
// Messages to postmaster will get to the account too.
|
||||
var contactEmail string
|
||||
if addr.Localpart.IsInternational() {
|
||||
contactEmail = smtp.Address{Localpart: "postmaster", Domain: addr.Domain}.Pack(false)
|
||||
contactEmail = smtp.NewAddress("postmaster", addr.Domain).Pack(false)
|
||||
} else {
|
||||
contactEmail = addr.Pack(false)
|
||||
}
|
||||
|
Reference in New Issue
Block a user