mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 10:34:40 +03:00
webmail: for junk/rejects messages, show sender address instead of name in list
This commit is contained in:
@ -164,9 +164,9 @@ const formatAddressValidated = (a: api.MessageAddress, m: api.Message, use: bool
|
||||
}
|
||||
|
||||
// format just the name if present and it doesn't look like an address, or otherwise just the email address.
|
||||
const formatAddressShort = (a: api.MessageAddress): string => {
|
||||
const formatAddressShort = (a: api.MessageAddress, junk: boolean): string => {
|
||||
const n = a.Name
|
||||
if (n && !n.includes('<') && !n.includes('@') && !n.includes('>')) {
|
||||
if (!junk && n && !n.includes('<') && !n.includes('@') && !n.includes('>')) {
|
||||
return n
|
||||
}
|
||||
return '<' + a.User + '@' + formatDomain(a.Domain) + '>'
|
||||
|
Reference in New Issue
Block a user