diff --git a/mail/base/content/mailCommands.js b/mail/base/content/mailCommands.js index 3f1c31ec3511..c504adc6a452 100644 --- a/mail/base/content/mailCommands.js +++ b/mail/base/content/mailCommands.js @@ -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