зеркало из https://github.com/mozilla/pjs.git
fix for #35691. addressing widget problems (no To: field) if the
user his new msg when on a news server, and they've got a reply to address. r=varada, sr=bienvenu,sspitzer thanks to neil@parkwaycc.co.uk for the fix
This commit is contained in:
Родитель
5907a82ce7
Коммит
435b92138b
|
@ -152,19 +152,13 @@ function ComposeMessage(type, format, folder, messageArray)
|
||||||
|
|
||||||
// if they hit new or reply and they are reading a newsgroup
|
// if they hit new or reply and they are reading a newsgroup
|
||||||
// turn this into a new post or a reply to group.
|
// turn this into a new post or a reply to group.
|
||||||
if (server.type == "nntp")
|
if (!folder.isServer && server.type == "nntp" && type == msgComposeType.New)
|
||||||
{
|
{
|
||||||
if (type == msgComposeType.New)
|
type = msgComposeType.NewsPost;
|
||||||
{
|
newsgroup = server.hostName + "/" + folder.name;
|
||||||
type = msgComposeType.NewsPost;
|
|
||||||
if (folder.isServer)
|
|
||||||
newsgroup = "";
|
|
||||||
else
|
|
||||||
newsgroup = server.hostName + "/" + folder.name;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
identity = getIdentityForServer(server);
|
identity = getIdentityForServer(server);
|
||||||
// dump("identity = " + identity + "\n");
|
// dump("identity = " + identity + "\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (ex)
|
catch (ex)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче