mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 00:17:32 +09:00
parent
d60003b8d1
commit
f1a3fd9fda
5 changed files with 133 additions and 56 deletions
|
|
@ -400,10 +400,12 @@ nsresult nsMsgDBView::FetchAuthor(nsIMsgDBHdr * aHdr, nsAString &aSenderString)
|
|||
nsCString headerCharset;
|
||||
aHdr->GetEffectiveCharset(headerCharset);
|
||||
|
||||
nsCString emailAddress;
|
||||
nsString name;
|
||||
ExtractFirstAddress(EncodedHeader(author, headerCharset.get()), name,
|
||||
emailAddress);
|
||||
nsCString emailAddress;
|
||||
nsCOMArray<msgIAddressObject> addresses = EncodedHeader(author, headerCharset.get());
|
||||
bool multipleAuthors = addresses.Length() > 1;
|
||||
|
||||
ExtractFirstAddress(addresses, name, emailAddress);
|
||||
|
||||
if (showCondensedAddresses)
|
||||
GetDisplayNameInAddressBook(emailAddress, aSenderString);
|
||||
|
|
@ -429,6 +431,12 @@ nsresult nsMsgDBView::FetchAuthor(nsIMsgDBHdr * aHdr, nsAString &aSenderString)
|
|||
}
|
||||
}
|
||||
|
||||
if (multipleAuthors)
|
||||
{
|
||||
aSenderString.AppendLiteral(" ");
|
||||
aSenderString.Append(GetString(u"andOthers"));
|
||||
}
|
||||
|
||||
UpdateCachedName(aHdr, "sender_name", aSenderString);
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue