Bug #314349 --> Reply/Forward/Edit with .EML or message/rfc822: fails if no Message-Id

This commit is contained in:
scott%scott-macgregor.org 2006-01-26 23:48:13 +00:00
parent 1a0897e001
commit d4a600bdeb

View File

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