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:
@ -1100,9 +1100,9 @@ const formatAddressValidated = (a, m, use) => {
|
||||
return l;
|
||||
};
|
||||
// format just the name if present and it doesn't look like an address, or otherwise just the email address.
|
||||
const formatAddressShort = (a) => {
|
||||
const formatAddressShort = (a, junk) => {
|
||||
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