зеркало из https://github.com/mozilla/gecko-dev.git
Supplementary patch to bug 241212 to allow .eml files to be opened and forwarded etc. without requiring a message folder to be selected r=mnyromyr sr=bienvenu
This commit is contained in:
Родитель
fcc2117fe0
Коммит
cbaf0b43d2
|
@ -683,6 +683,9 @@ function CreateBareDBView(originalView, msgFolder, viewType, viewFlags, sortType
|
|||
case nsMsgViewType.eShowQuickSearchResults:
|
||||
dbviewContractId += "quicksearch";
|
||||
break;
|
||||
case nsMsgViewType.eShowSearch:
|
||||
dbviewContractId += "search";
|
||||
break;
|
||||
case nsMsgViewType.eShowThreadsWithUnread:
|
||||
dbviewContractId += "threadswithunread";
|
||||
break;
|
||||
|
|
|
@ -1159,7 +1159,7 @@ function MsgOpenFromFile()
|
|||
var uri = fp.fileURL;
|
||||
uri.query = "type=application/x-message-display";
|
||||
|
||||
MsgOpenNewWindowForMessage(uri, null);
|
||||
window.openDialog( "chrome://messenger/content/messageWindow.xul", "_blank", "all,chrome,dialog=no,status,toolbar", uri, null, null );
|
||||
}
|
||||
|
||||
function MsgOpenNewWindowForMsgHdr(hdr)
|
||||
|
|
|
@ -316,6 +316,7 @@ function OnLoadMessageWindow()
|
|||
|
||||
function OnLoadMessageWindowDelayed(loadCustomMessage)
|
||||
{
|
||||
gDBView.suppressMsgDisplay = false;
|
||||
if (loadCustomMessage)
|
||||
gDBView.loadMessageByUrl(gCurrentMessageUri);
|
||||
else
|
||||
|
@ -367,6 +368,10 @@ function CreateView(originalView)
|
|||
dbFolderInfo = null;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
viewType = nsMsgViewType.eShowSearch;
|
||||
}
|
||||
|
||||
// create a db view
|
||||
CreateBareDBView(originalView, msgFolder, viewType, viewFlags, sortType, sortOrder);
|
||||
|
|
Загрузка…
Ссылка в новой задаче