2000-06-17 03:26:47 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
|
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
|
|
|
|
%brandDTD;
|
|
|
|
<!ENTITY % mailTasksOverlayDTD SYSTEM "chrome://messenger/locale/mailTasksOverlay.dtd" >
|
|
|
|
%mailTasksOverlayDTD;
|
|
|
|
]>
|
|
|
|
|
|
|
|
<overlay id="mailPrefsOverlay"
|
|
|
|
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
|
|
|
|
|
|
|
<script language="JavaScript">
|
|
|
|
<![CDATA[
|
|
|
|
// uses "toOpenWindowByType" function provided by utilityOverlay.js
|
|
|
|
// which is included by most clients.
|
|
|
|
function toMessengerWindow()
|
|
|
|
{
|
2000-09-13 23:57:52 +00:00
|
|
|
var pref = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);
|
2000-06-17 03:26:47 +00:00
|
|
|
var windowDoc = "chrome://messenger/content/messenger.xul";
|
|
|
|
try
|
|
|
|
{
|
|
|
|
var layoutType = pref.GetIntPref("mail.pane_config");
|
|
|
|
windowDoc = !layoutType ? "chrome://messenger/content/messenger.xul" :
|
|
|
|
"chrome://messenger/content/mail3PaneWindowVertLayout.xul";
|
|
|
|
}
|
|
|
|
catch(ex)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
toOpenWindowByType("mail:3pane", windowDoc);
|
|
|
|
}
|
|
|
|
|
|
|
|
function toAddressBook()
|
|
|
|
{
|
|
|
|
toOpenWindowByType("mail:addressbook", "chrome://messenger/content/addressbook/addressbook.xul");
|
|
|
|
}
|
|
|
|
|
|
|
|
function toNewsgroups()
|
|
|
|
{
|
|
|
|
dump ("Sorry, command not implemented.\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
function toImport()
|
|
|
|
{
|
2000-09-01 00:48:04 +00:00
|
|
|
window.openDialog("chrome://messenger/content/importDialog.xul","importDialog","chrome, modal, titlebar", {importType: "addressbook"});
|
2000-06-17 03:26:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
]]>
|
|
|
|
</script>
|
2000-09-12 02:33:16 +00:00
|
|
|
|
|
|
|
<keyset id="keyset">
|
2000-09-22 05:02:20 +00:00
|
|
|
<key id="key_mail" key="&messengerCmd.commandkey;" observes="Tasks:Mail" modifiers="accel"/>
|
2000-09-12 02:33:16 +00:00
|
|
|
</keyset>
|
|
|
|
|
|
|
|
|
|
|
|
<broadcasterset id="broadcasterset">
|
|
|
|
<broadcaster id="Tasks:Mail" value="&messengerCmd.label;" oncommand="toMessengerWindow();"/>
|
|
|
|
</broadcasterset>
|
|
|
|
|
|
|
|
|
2000-06-17 03:26:47 +00:00
|
|
|
<box id="taskButtons">
|
2000-06-24 04:52:59 +00:00
|
|
|
<button class="button-toolbar-4 taskbutton" id="mini-mail" onclick="toMessengerWindow()"
|
2000-06-17 03:26:47 +00:00
|
|
|
position="2" tooltip="aTooltip" tooltiptext="&taskMessenger.tooltip;"/>
|
|
|
|
</box>
|
|
|
|
|
|
|
|
<menupopup id="taskPopup">
|
2000-09-12 02:45:43 +00:00
|
|
|
<menuitem position="2" accesskey="&messengerCmd.accesskey;" key="key_mail" observes="Tasks:Mail"/>
|
2000-06-17 03:26:47 +00:00
|
|
|
</menupopup>
|
|
|
|
|
|
|
|
</overlay>
|
|
|
|
|