mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
Bug #314349 --> Reply/Forward/Edit with .EML or message/rfc822: fails if no Message-Id
This commit is contained in:
parent
1a0897e001
commit
d4a600bdeb
@ -255,8 +255,8 @@ function ComposeMessage(type, format, folder, messageArray)
|
||||
identity = getIdentityForServer(server, hintForIdentity);
|
||||
|
||||
var messageID = hdr.messageId;
|
||||
var messageIDScheme = messageID.split(":")[0];
|
||||
if ((messageIDScheme == 'http' || messageIDScheme == 'https') && "openComposeWindowForRSSArticle" in this)
|
||||
var messageIDScheme = messageID ? messageID.split(":")[0] : "";
|
||||
if (messageIDScheme && (messageIDScheme == 'http' || messageIDScheme == 'https') && "openComposeWindowForRSSArticle" in this)
|
||||
openComposeWindowForRSSArticle(messageID, hdr, type);
|
||||
else if (type == msgComposeType.Reply || type == msgComposeType.ReplyAll || type == msgComposeType.ForwardInline ||
|
||||
type == msgComposeType.ReplyToGroup || type == msgComposeType.ReplyToSender ||
|
||||
@ -752,7 +752,7 @@ function JunkSelectedMessages(setAsJunk)
|
||||
// Note that this behaviour should match the one in the back end for marking
|
||||
// as junk via clicking the 'junk' column.
|
||||
|
||||
if (setAsJunk && pref.getBoolPref("mailnews.ui.junk.manualMarkAsJunkMarksRead"))
|
||||
if (setAsJunk && pref.getBoolPref("mailnews.ui.junk.manualMarkAsJunkMarksRead"))
|
||||
MarkSelectedMessagesRead(true);
|
||||
|
||||
gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk
|
||||
|
Loading…
Reference in New Issue
Block a user