From 85cd4233fc54f8bc854cb3456b248e2365c91546 Mon Sep 17 00:00:00 2001 From: "alecf%netscape.com" Date: Wed, 5 May 1999 02:48:42 +0000 Subject: [PATCH] add some command glue for bringing up the account manager and the prefs dialog --- .../ui/messenger/resources/commandglue.js | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/mailnews/ui/messenger/resources/commandglue.js b/mailnews/ui/messenger/resources/commandglue.js index d17b5d27e880..ff015444ae02 100644 --- a/mailnews/ui/messenger/resources/commandglue.js +++ b/mailnews/ui/messenger/resources/commandglue.js @@ -64,6 +64,15 @@ function GetNewMail() } } +function MsgAccountManager() +{ + var appCore = FindMsgAppCore(); + if (appCore != null) { + dump('Opening account manager..'); + appCore.AccountManager(window); + } +} + function LoadMessage(messageNode) { var uri = messageNode.getAttribute('id'); @@ -135,3 +144,18 @@ function SortThreadPane(column, sortKey) } + +function MsgPreferences() +{ + var prefsCore = XPAppCoresManager.Find("PrefsCore"); + if (!prefsCore) { + prefsCore = new PrefsCore(); + if (prefsCore) { + prefsCore.Init("PrefsCore"); + } + } + if (prefsCore) { + prefsCore.ShowWindow(window); + } +} +