зеркало из https://github.com/mozilla/gecko-dev.git
#3745, Fixing long-awaited |followup-to: poster| support, one less MUST off of the GNKSA list.
r=ducarroz, sr=sspitzer
This commit is contained in:
Родитель
3d852bec0e
Коммит
172109e7f5
|
@ -1598,10 +1598,31 @@ NS_IMETHODIMP QuotingOutputStreamListener::OnStopRequest(nsIRequest *request, ns
|
|||
|
||||
if (! followUpTo.IsEmpty())
|
||||
{
|
||||
if (type != nsIMsgCompType::ReplyToSender)
|
||||
compFields->SetNewsgroups(nsAutoCString(followUpTo));
|
||||
if (type == nsIMsgCompType::Reply)
|
||||
compFields->SetTo(&emptyUnichar);
|
||||
if (followUpTo == NS_LITERAL_STRING("poster"))
|
||||
{
|
||||
if (!replyTo.IsEmpty())
|
||||
compFields->SetTo(replyTo.get());
|
||||
else
|
||||
{
|
||||
mHeaders->ExtractHeader(HEADER_FROM, PR_FALSE, getter_Copies(outCString));
|
||||
if (outCString)
|
||||
{
|
||||
nsAutoString from;
|
||||
mimeConverter->DecodeMimeHeader(outCString, from, charset);
|
||||
compFields->SetTo(from.get());
|
||||
}
|
||||
}
|
||||
|
||||
if (! newgroups.IsEmpty())
|
||||
compFields->SetNewsgroups(nsnull);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (type != nsIMsgCompType::ReplyToSender)
|
||||
compFields->SetNewsgroups(nsAutoCString(followUpTo));
|
||||
if (type == nsIMsgCompType::Reply)
|
||||
compFields->SetTo(&emptyUnichar);
|
||||
}
|
||||
}
|
||||
|
||||
if (! references.IsEmpty())
|
||||
|
|
Загрузка…
Ссылка в новой задаче