diff --git a/mozilla/mail/base/content/commandglue.js b/mozilla/mail/base/content/commandglue.js index 80fdbb837a9..17942170ea4 100644 --- a/mozilla/mail/base/content/commandglue.js +++ b/mozilla/mail/base/content/commandglue.js @@ -400,7 +400,6 @@ function SwitchView(command) function SetSentFolderColumns(isSentFolder) { var tree = GetThreadTree(); - var searchCriteria = document.getElementById("searchCriteria"); var lastFolderSent = tree.getAttribute("lastfoldersent") == "true"; if (isSentFolder != lastFolderSent) @@ -418,15 +417,9 @@ function SetSentFolderColumns(isSentFolder) } if(isSentFolder) - { tree.setAttribute("lastfoldersent", "true"); - searchCriteria.setAttribute("value", gMessengerBundle.getString("recipientSearchCriteria")); - } else - { tree.setAttribute("lastfoldersent", "false"); - searchCriteria.setAttribute("value", gMessengerBundle.getString("senderSearchCriteria")); - } } function SetNewsFolderColumns() @@ -802,8 +795,6 @@ function FolderPaneSelectionChange() UpdateMailToolbar("gAccountCentralLoaded"); else if (gFakeAccountPageLoaded) UpdateMailToolbar("gFakeAccountPageLoaded"); - else - document.getElementById('advancedButton').setAttribute("disabled" , !(IsCanSearchMessagesEnabled())); if (gDisplayStartupPage) { diff --git a/mozilla/mail/base/content/mailWindowOverlay.js b/mozilla/mail/base/content/mailWindowOverlay.js index 2c983752331..e81eb2a72eb 100644 --- a/mozilla/mail/base/content/mailWindowOverlay.js +++ b/mozilla/mail/base/content/mailWindowOverlay.js @@ -2062,6 +2062,14 @@ function ClearPendingReadTimer() } } +// this is called when layout is actually finished rendering a +// mail message. OnMsgLoaded is called when libmime is done parsing the message +function OnMsgParsed(aUrl) +{ + if ("onQuickSearchNewMsgLoaded" in this) + onQuickSearchNewMsgLoaded(); +} + function OnMsgLoaded(aUrl) { if (!aUrl) diff --git a/mozilla/mail/base/content/mailWindowOverlay.xul b/mozilla/mail/base/content/mailWindowOverlay.xul index 7d275389421..ae4ac96eef5 100644 --- a/mozilla/mail/base/content/mailWindowOverlay.xul +++ b/mozilla/mail/base/content/mailWindowOverlay.xul @@ -1805,13 +1805,29 @@ -