#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:
hwaara%chello.se 2001-08-15 01:13:35 +00:00
Родитель 3d852bec0e
Коммит 172109e7f5
1 изменённых файлов: 25 добавлений и 4 удалений

Просмотреть файл

@ -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())