mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-29 08:24:44 +03:00
fix: emails are considered as medium spam by rspamd (#337)
This commit is contained in:
committed by
GitHub
parent
e45d9e970d
commit
39b7f6678c
@@ -45,7 +45,11 @@ func genAddressHeader(name string, addresses []Address, maxLength int) string {
|
||||
} else {
|
||||
email = fmt.Sprintf("<%s>", addr.Email)
|
||||
}
|
||||
writeHeaderQ(hl, addr.Name)
|
||||
if isPrintableASCII(addr.Name) {
|
||||
writeHeaderAtom(hl, addr.Name)
|
||||
} else {
|
||||
writeHeaderQ(hl, addr.Name)
|
||||
}
|
||||
writeHeaderAtom(hl, " ")
|
||||
writeHeaderAtom(hl, email)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user