Bug 704016 - Enable View Source for .eml files and port |Bug 550478 - Attached .eml - Other Actions --> View Source - only shows body|. r+moa=Mnyromyr

This commit is contained in:
Jens Hatlak 2011-11-26 01:15:03 +01:00
Родитель 2488e62d34
Коммит 59b12b893f
2 изменённых файлов: 6 добавлений и 1 удалений

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

@ -454,6 +454,10 @@ function ViewPageSource(messages)
// Now, we need to get a URL from a URI
var url = mailSession.ConvertMsgURIToMsgURL(messages[i], msgWindow);
// Strip out the message-display parameter to ensure that attached
// emails display the message source, not the processed HTML.
url = url.replace(/(\?|&)type=application\/x-message-display(&|$)/, "$1")
.replace(/\?$/, "");
window.openDialog( "chrome://global/content/viewSource.xul",
"_blank", "all,dialog=no", url,
mailCharacterSet);

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

@ -618,7 +618,6 @@ var MessageWindowController =
case "button_junk":
case "cmd_shiftDelete":
case "cmd_saveAsTemplate":
case "cmd_viewPageSource":
case "cmd_getMsgsForAuthAccounts":
case "button_mark":
case "cmd_markAsRead":
@ -649,6 +648,8 @@ var MessageWindowController =
case "cmd_goForward":
case "button_goForward":
return (gDBView.keyForFirstSelectedMessage != nsMsgKey_None);
case "cmd_viewPageSource":
return GetNumSelectedMessages() > 0;
case "cmd_reply":
case "button_reply":
case "cmd_replySender":