зеркало из https://github.com/mozilla/pjs.git
Bug #46086 --> can't read forwarded messages in 4.x because we are setting
a bogus content type on the news article (when it's forwarded as an attachment) Bug #48135 --> fix forwarding of news messages bustage. Clear the channel listener and re-generate it every time we load a url. r=bienvenu
This commit is contained in:
Родитель
0581e3797c
Коммит
cd50372be3
|
@ -667,6 +667,10 @@ NS_IMETHODIMP nsNNTPProtocol::GetLastActiveTimeStamp(PRTime *aTimeStamp)
|
|||
|
||||
NS_IMETHODIMP nsNNTPProtocol::LoadNewsUrl(nsIURI * aURL, nsISupports * aConsumer)
|
||||
{
|
||||
// clear the previous channel listener and use the new one....
|
||||
// don't reuse an existing channel listener
|
||||
m_channelListener = nsnull;
|
||||
m_channelListener = do_QueryInterface(aConsumer);
|
||||
return LoadUrl(aURL, aConsumer);
|
||||
}
|
||||
|
||||
|
@ -5047,7 +5051,8 @@ NS_IMETHODIMP nsNNTPProtocol::GetContentType(char * *aContentType)
|
|||
|
||||
if ((const char *)m_currentGroup && nsCRT::strlen((const char *)m_currentGroup)) {
|
||||
// if it is an article url, it has a @ or %40 in it.
|
||||
if (PL_strchr((const char *)m_currentGroup,'@') || PL_strstr((const char *)m_currentGroup,"%40")) {
|
||||
if (PL_strchr((const char *)m_currentGroup,'@') || PL_strstr((const char *)m_currentGroup,"%40")
|
||||
|| m_typeWanted == ARTICLE_WANTED) {
|
||||
*aContentType = nsCRT::strdup("message/rfc822");
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче