mirror of
https://github.com/mjl-/mox.git
synced 2025-07-14 16:54:36 +03:00
when rejecting a message, add field "msgfrom" to the logging line
This commit is contained in:
@ -102,11 +102,17 @@ func (a Address) IsZero() bool {
|
||||
// formatted with non-ASCII characters. If localpart has non-ASCII characters,
|
||||
// they are returned regardless of smtputf8.
|
||||
func (a Address) Pack(smtputf8 bool) string {
|
||||
if a.IsZero() {
|
||||
return ""
|
||||
}
|
||||
return a.Localpart.String() + "@" + a.Domain.XName(smtputf8)
|
||||
}
|
||||
|
||||
// String returns the address in string form with non-ASCII characters.
|
||||
func (a Address) String() string {
|
||||
if a.IsZero() {
|
||||
return ""
|
||||
}
|
||||
return a.Localpart.String() + "@" + a.Domain.Name()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user