diff --git a/mailnews/base/resources/content/mailWindowOverlay.js b/mailnews/base/resources/content/mailWindowOverlay.js index f1e1fa50d7ad..a9a7ea171e7c 100644 --- a/mailnews/base/resources/content/mailWindowOverlay.js +++ b/mailnews/base/resources/content/mailWindowOverlay.js @@ -257,6 +257,35 @@ function InitMessageMenu() document.commandDispatcher.updateCommands('create-menu-message'); } +function InitViewHeadersMenu() +{ + var id = null; + var headerchoice = 1; + try + { + headerchoice = pref.getIntPref("mail.show_headers"); + } + catch (ex) + { + dump("failed to get the header pref\n"); + } + + switch (headerchoice) + { + case 2: + id = "viewallheaders"; + break; + case 1: + default: + id = "viewnormalheaders"; + break; + } + + var menuitem = document.getElementById(id); + if (menuitem) + menuitem.setAttribute("checked", "true"); +} + function IsNewsMessage(messageUri) { if (!messageUri) return false; diff --git a/mailnews/base/resources/content/mailWindowOverlay.xul b/mailnews/base/resources/content/mailWindowOverlay.xul index d0588d14557f..6c93fa125430 100644 --- a/mailnews/base/resources/content/mailWindowOverlay.xul +++ b/mailnews/base/resources/content/mailWindowOverlay.xul @@ -995,7 +995,7 @@ Rights Reserved. - +