Bug 1254666 - Don't prefill From on 'edit as new'. r=aceman

This commit is contained in:
Jorg K 2016-07-13 21:31:22 +02:00
Родитель a01bae9588
Коммит e1bb0bdc95
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -2361,7 +2361,10 @@ function ComposeStartup(aParams)
identityList.selectedItem =
identityList.getElementsByAttribute("identitykey", params.identity.key)[0];
if (params.composeFields.from)
// Here we set the From from the original message, be it a draft or another
// message we want to "edit as new". Only do this for drafts.
if (gComposeType == nsIMsgCompType.Draft && params.composeFields.from)
{
let from = MailServices.headerParser.parseEncodedHeader(params.composeFields.from, null).join(", ");
if (from != identityList.value)