You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3294 lines
171 KiB

<?xml version="1.0"?>
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifdef XP_UNIX
#ifndef XP_MACOSX
#define XP_GNOME 1
#endif
#endif
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>
<!-- Overlaying utilityOverlay.xul here is a temporary band-aid for a
hard-to-reproduce problem where File, Edit, and View menus disappear on
Mac when certain add-ons are installed (bug 398702). Work to find a
better fix is ongoing. Ultimately, utilityOverlay.xul wants to
disappear from Thunderbird entirely (bug 359748). -->
<?xul-overlay href="chrome://communicator/content/utilityOverlay.xul"?>
<?xul-overlay href="chrome://communicator/content/charsetOverlay.xul"?>
#ifdef XP_MACOSX
<?xul-overlay href="chrome://messenger/content/macMenuOverlay.xul"?>
#endif
<?xul-overlay href="chrome://messenger/content/baseMenuOverlay.xul"?>
<!DOCTYPE overlay [
<!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd">
%messengerDTD;
<!ENTITY % msgViewPickerDTD SYSTEM "chrome://messenger/locale/msgViewPickerOverlay.dtd" >
%msgViewPickerDTD;
<!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd">
%brandDTD;
<!ENTITY % textcontextDTD SYSTEM "chrome://global/locale/textcontext.dtd">
%textcontextDTD;
<!ENTITY % baseMenuOverlayDTD SYSTEM "chrome://messenger/locale/baseMenuOverlay.dtd">
%baseMenuOverlayDTD;
<!ENTITY % utilityDTD SYSTEM "chrome://communicator/locale/utilityOverlay.dtd">
%utilityDTD;
<!ENTITY % charsetDTD SYSTEM "chrome://global/locale/charsetMenu.dtd">
%charsetDTD;
<!ENTITY % viewZoomOverlayDTD SYSTEM "chrome://messenger/locale/viewZoomOverlay.dtd">
%viewZoomOverlayDTD;
]>
<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/javascript" src="chrome://messenger/content/mailCommands.js"/>
<script type="application/javascript" src="chrome://messenger/content/junkCommands.js"/>
<script type="application/javascript" src="chrome://messenger/content/mailWindowOverlay.js"/>
<script type="application/javascript" src="chrome://messenger/content/mailTabs.js"/>
<script type="application/javascript" src="chrome://messenger/content/messageDisplay.js"/>
<script type="application/javascript" src="chrome://messenger/content/folderDisplay.js"/>
<script type="application/javascript" src="chrome://messenger-newsblog/content/newsblogOverlay.js"/>
<script type="application/javascript" src="chrome://messenger/content/mail-offline.js"/>
<script type="application/javascript" src="chrome://global/content/printUtils.js"/>
<script type="application/javascript" src="chrome://messenger/content/msgViewPickerOverlay.js"/>
<script type="application/javascript" src="chrome://messenger/content/plugins.js"/>
<script type="application/javascript" src="chrome://global/content/viewZoomOverlay.js"/>
<script type="application/javascript" src="chrome://messenger/content/newmailaccount/uriListener.js"/>
<stringbundleset id="stringbundleset">
<stringbundle id="brand_bundle" src="chrome://branding/locale/brand.properties"/>
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
<stringbundle id="bundle_offlinePrompts" src="chrome://messenger/locale/offline.properties"/>
</stringbundleset>
<!-- Performance optimization...we include utilityOverlay.xul which defines some command sets
which are updated based on events like focus and select. We have our own custom events
which we use to optmize when we do command updating. To avoid unnecessary command updating,
we are going to override the events the global edit menu items and select edit menu items
are updated on with events of our own controlling.
-->
<commandset id="globalEditMenuItems"
commandupdater="true"
events="create-menu-edit"
oncommandupdate="goUpdateGlobalEditMenuItems()"/>
<commandset id="selectEditMenuItems"
commandupdater="true"
events="create-menu-edit"
oncommandupdate="goUpdateSelectEditMenuItems()"/>
<!-- End command set merging -->
<commandset id="mailFileMenuItems"
commandupdater="true"
events="create-menu-file"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_newFolder" oncommand="goDoCommand('cmd_newFolder')" disabled="true"/>
<command id="cmd_newVirtualFolder" oncommand="goDoCommand('cmd_newVirtualFolder')" disabled="true"/>
<command id="cmd_getNewMessages" oncommand="goDoCommand('cmd_getNewMessages')" disabled="true"/>
<command id="cmd_open" oncommand="goDoCommand('cmd_open')"/>
<command id="cmd_emptyTrash" oncommand="goDoCommand('cmd_emptyTrash')" disabled="true"/>
<command id="cmd_compactFolder" oncommand="goDoCommand('cmd_compactFolder')" disabled="true"/>
<command id="cmd_printSetup" oncommand="goDoCommand('cmd_printSetup')" disabled="true"/>
<command id="cmd_print" oncommand="goDoCommand('cmd_print')" disabled="true"/>
<command id="cmd_printpreview" oncommand="goDoCommand('cmd_printpreview')" disabled="true"/>
<command id="cmd_saveAsFile" oncommand="goDoCommand('cmd_saveAsFile')" disabled="true"/>
<command id="cmd_saveAsTemplate" oncommand="goDoCommand('cmd_saveAsTemplate')" disabled="true"/>
<command id="cmd_getNextNMessages" oncommand="goDoCommand('cmd_getNextNMessages')" disabled="true"/>
<command id="cmd_deleteFolder" oncommand="goDoCommand('cmd_deleteFolder')"/>
<command id="cmd_renameFolder" oncommand="goDoCommand('cmd_renameFolder')" />
<command id="cmd_sendUnsentMsgs" oncommand="goDoCommand('cmd_sendUnsentMsgs')" />
<command id="cmd_subscribe" oncommand="goDoCommand('cmd_subscribe')" disabled="true"/>
<command id="cmd_synchronizeOffline" oncommand="goDoCommand('cmd_synchronizeOffline')" disabled="true"/>
<command id="cmd_downloadFlagged" oncommand="goDoCommand('cmd_downloadFlagged')" disabled="true"/>
<command id="cmd_downloadSelected" oncommand="goDoCommand('cmd_downloadSelected')" disabled="true"/>
<command id="cmd_settingsOffline" oncommand="goDoCommand('cmd_settingsOffline')" disabled="true"/>
</commandset>
<commandset id="mailCommands">
<command id="cmd_quit"/>
<!--The cmd_createFilterFromPopup is used to notify the email context popup -->
<command id="cmd_createFilterFromPopup"/>
<command id="cmd_pageSetup"/>
<command id="cmd_CustomizeMailToolbar"
oncommand="CustomizeMailToolbar('mail-toolbox', 'CustomizeMailToolbar')"/>
</commandset>
<commandset id="mailViewMenuItems"
commandupdater="true"
events="create-menu-view"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_viewPageSource" oncommand="goDoCommand('cmd_viewPageSource')" disabled="true"/>
<command id="cmd_setFolderCharset" oncommand="goDoCommand('cmd_setFolderCharset')" />
<command id="cmd_expandAllThreads" oncommand="goDoCommand('cmd_expandAllThreads')" disabled="true"/>
<command id="cmd_collapseAllThreads" oncommand="goDoCommand('cmd_collapseAllThreads')" disabled="true"/>
<command id="cmd_viewClassicMailLayout" oncommand="goDoCommand('cmd_viewClassicMailLayout')" disabled="true"/>
<command id="cmd_viewWideMailLayout" oncommand="goDoCommand('cmd_viewWideMailLayout')" disabled="true"/>
<command id="cmd_viewVerticalMailLayout" oncommand="goDoCommand('cmd_viewVerticalMailLayout')" disabled="true"/>
<command id="cmd_toggleFolderPane" oncommand="goDoCommand('cmd_toggleFolderPane')" disabled="true"/>
<command id="cmd_toggleFolderPaneCols" oncommand="goDoCommand('cmd_toggleFolderPaneCols')" disabled="true"/>
<command id="cmd_toggleMessagePane" oncommand="goDoCommand('cmd_toggleMessagePane')" disabled="true"/>
<command id="cmd_viewAllMsgs" oncommand="goDoCommand('cmd_viewAllMsgs')" disabled="true"/>
<command id="cmd_viewUnreadMsgs" oncommand="goDoCommand('cmd_viewUnreadMsgs')" disabled="true"/>
<command id="cmd_viewThreadsWithUnread" oncommand="goDoCommand('cmd_viewThreadsWithUnread')" disabled="true"/>
<command id="cmd_viewWatchedThreadsWithUnread" oncommand="goDoCommand('cmd_viewWatchedThreadsWithUnread')" disabled="true"/>
<command id="cmd_viewIgnoredThreads" oncommand="goDoCommand('cmd_viewIgnoredThreads')" disabled="true"/>
<commandset id="viewZoomCommands"
commandupdater="true"
events="create-menu-view"
oncommandupdate="goUpdateMailMenuItems(this);">
<command id="cmd_fullZoomReduce"
oncommand="goDoCommand('cmd_fullZoomReduce');"/>
<command id="cmd_fullZoomEnlarge"
oncommand="goDoCommand('cmd_fullZoomEnlarge');"/>
<command id="cmd_fullZoomReset"
oncommand="goDoCommand('cmd_fullZoomReset');"/>
<command id="cmd_fullZoomToggle"
oncommand="goDoCommand('cmd_fullZoomToggle');"
checked="false"/>
</commandset>
</commandset>
<commandset id="mailEditMenuItems"
commandupdater="true"
events="create-menu-edit"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_undo"
valueDeleteMsg="&undoDeleteMsgCmd.label;"
valueMoveMsg="&undoMoveMsgCmd.label;"
valueCopyMsg="&undoCopyMsgCmd.label;"
valueUnmarkAllMsgs="&undoMarkAllCmd.label;"
valueDefault="&undoDefaultCmd.label;"/>
<command id="cmd_redo"
valueDeleteMsg="&redoDeleteMsgCmd.label;"
valueMoveMsg="&redoMoveMsgCmd.label;"
valueCopyMsg="&redoCopyMsgCmd.label;"
valueUnmarkAllMsgs="&redoMarkAllCmd.label;"
valueDefault="&redoDefaultCmd.label;"/>
<command id="cmd_cut"/>
<command id="cmd_copy"/>
<command id="cmd_paste"/>
<command id="cmd_delete"
valueFolder="&deleteFolderCmd.label;"
valueFolderAccessKey="&deleteFolderCmd.accesskey;"
valueNewsgroup="&unsubscribeNewsgroupCmd.label;"
valueNewsgroupAccessKey="&unsubscribeNewsgroupCmd.accesskey;"
valueMessage="&deleteMsgCmd.label;"
valueMessageAccessKey="&deleteMsgCmd.accesskey;"
valueIMAPDeletedMessage="&undeleteMsgCmd.label;"
valueIMAPDeletedMessageAccessKey="&undeleteMsgCmd.accesskey;"
valueMessages="&deleteMsgsCmd.label;"
valueMessagesAccessKey="&deleteMsgsCmd.accesskey;"
valueIMAPDeletedMessages="&undeleteMsgsCmd.label;"
valueIMAPDeletedMessagesAccessKey="&undeleteMsgsCmd.accesskey;"/>
<command id="cmd_cancel" oncommand="goDoCommand('cmd_cancel')"/>
<command id="cmd_selectAll"/>
<command id="cmd_selectThread" oncommand="goDoCommand('cmd_selectThread')"/>
<command id="cmd_selectFlagged" oncommand="goDoCommand('cmd_selectFlagged')"/>
<command id="cmd_properties" oncommand="goDoCommand('cmd_properties')"
valueNewsgroup="&folderPropsNewsgroupCmd2.label;"
valueFolder="&folderPropsFolderCmd2.label;"
valueGeneric="&folderPropsCmd2.label;"/>
<command id="cmd_find" oncommand="goDoCommand('cmd_find')" disabled="true"/>
<command id="cmd_findAgain" oncommand="goDoCommand('cmd_findAgain')" disabled="true"/>
<command id="cmd_findPrevious" oncommand="goDoCommand('cmd_findPrevious')"
disabled="true"/>
<command id="cmd_search" oncommand="goDoCommand('cmd_search')"/>
<!-- Stop/abort current network activities. -->
<command id="cmd_stop" oncommand="goDoCommand('cmd_stop')"/>
<command id="cmd_reload" oncommand="goDoCommand('cmd_reload')"/>
</commandset>
<commandset id="mailEditContextMenuItems">
<command id="cmd_copyLink"/>
<command id="cmd_copyImage"/>
</commandset>
<commandset id="mailGoMenuItems"
commandupdater="true"
events="create-menu-go"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_nextMsg" oncommand="goDoCommand('cmd_nextMsg')" disabled="true"/>
<command id="cmd_nextUnreadMsg" oncommand="goDoCommand('cmd_nextUnreadMsg')" disabled="true"/>
<command id="cmd_nextFlaggedMsg" oncommand="goDoCommand('cmd_nextFlaggedMsg')" disabled="true"/>
<command id="cmd_nextUnreadThread" oncommand="goDoCommand('cmd_nextUnreadThread')" disabled="true"/>
<command id="cmd_previousMsg" oncommand="goDoCommand('cmd_previousMsg')" disabled="true"/>
<command id="cmd_previousUnreadMsg" oncommand="goDoCommand('cmd_previousUnreadMsg')" disabled="true"/>
<command id="cmd_previousFlaggedMsg" oncommand="goDoCommand('cmd_previousFlaggedMsg')" disabled="true"/>
<command id="cmd_goStartPage" oncommand="goDoCommand('cmd_goStartPage');"/>
<command id="cmd_undoCloseTab" oncommand="goDoCommand('cmd_undoCloseTab');"/>
<command id="cmd_goForward" oncommand="goDoCommand('cmd_goForward')" disabled="true"/>
<command id="cmd_goBack" oncommand="goDoCommand('cmd_goBack')" disabled="true"/>
<command id="cmd_goFolder" oncommand="gFolderTreeView.selectFolder(event.target._folder, true);" disabled="true"/>
</commandset>
<commandset id="mailMessageMenuItems"
commandupdater="true"
events="create-menu-message"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_archive" oncommand="goDoCommand('cmd_archive')"/>
<command id="cmd_newMessage" oncommand="MsgNewMessage(event)"/>
<command id="cmd_reply" oncommand="MsgReplyMessage(event)"/>
<command id="cmd_replySender" oncommand="MsgReplySender(event);"/>
<command id="cmd_replyGroup" oncommand="MsgReplyGroup(event);"/>
<command id="cmd_replyall" oncommand="MsgReplyToAllMessage(event);"/>
<command id="cmd_replylist" oncommand="MsgReplyToListMessage(event);"/>
<command id="cmd_forward" oncommand="MsgForwardMessage(event);"/>
<command id="cmd_forwardInline" oncommand="MsgForwardAsInline(event)"/>
<command id="cmd_forwardAttachment" oncommand="MsgForwardAsAttachment(event);"/>
<command id="cmd_editAsNew" oncommand="goDoCommand('cmd_editAsNew')"/>
<command id="cmd_editDraftMsg" oncommand="goDoCommand('cmd_editDraftMsg')"/>
<command id="cmd_openMessage" oncommand="goDoCommand('cmd_openMessage')"/>
<command id="cmd_openConversation" oncommand="goDoCommand('cmd_openConversation')"/>
<command id="cmd_moveToFolderAgain" oncommand="goDoCommand('cmd_moveToFolderAgain')"/>
<command id="cmd_createFilterFromMenu" oncommand="goDoCommand('cmd_createFilterFromMenu')"/>
<command id="cmd_killThread" oncommand="goDoCommand('cmd_killThread')"/>
<command id="cmd_killSubthread" oncommand="goDoCommand('cmd_killSubthread')"/>
<command id="cmd_watchThread" oncommand="goDoCommand('cmd_watchThread')"/>
</commandset>
<commandset id="mailToolbarItems"
commandupdater="true"
events="mail-toolbar"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_newMessage"/>
<command id="button_reply"/>
<command id="button_replyall"/>
<command id="button_replylist"/>
<command id="button_followup"/>
<command id="button_archive"/>
<command id="button_forward"/>
<command id="button_delete"/>
<command id="button_mark"/>
<command id="cmd_tag"/>
<command id="button_getNewMessages"/>
<command id="button_print"/>
<command id="button_previous"/>
<command id="button_previousMsg"/>
<command id="button_next"/>
<command id="button_nextMsg"/>
<command id="button_goBack"/>
<command id="button_goForward"/>
<command id="button_file"/>
<command id="cmd_delete"/>
<command id="button_junk"/>
<command id="button_showconversation"/>
<command id="button_compact"/>
</commandset>
<commandset id="mailGetMsgMenuItems"
commandupdater="true"
events="create-menu-getMsgToolbar,create-menu-file"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_getMsgsForAuthAccounts"
oncommand="goDoCommand('cmd_getMsgsForAuthAccounts'); event.stopPropagation()"
disabled="true"/>
</commandset>
<commandset id="mailMarkMenuItems"
commandupdater="true"
events="create-menu-mark"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_toggleRead" oncommand="goDoCommand('cmd_toggleRead'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markAsRead" oncommand="goDoCommand('cmd_markAsRead'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markAsUnread" oncommand="goDoCommand('cmd_markAsUnread'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markAllRead" oncommand="goDoCommand('cmd_markAllRead'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markThreadAsRead" oncommand="goDoCommand('cmd_markThreadAsRead'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markReadByDate" oncommand="goDoCommand('cmd_markReadByDate');" disabled="true"/>
<command id="cmd_markAsFlagged" oncommand="goDoCommand('cmd_markAsFlagged'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markAsJunk" oncommand="goDoCommand('cmd_markAsJunk'); event.stopPropagation()" disabled="true"/>
<command id="cmd_markAsNotJunk" oncommand="goDoCommand('cmd_markAsNotJunk'); event.stopPropagation()" disabled="true"/>
<command id="cmd_recalculateJunkScore" oncommand="goDoCommand('cmd_recalculateJunkScore');" disabled="true"/>
<command id="cmd_viewAllHeader" oncommand="goDoCommand('cmd_viewAllHeader');" disabled="true"/>
<command id="cmd_viewNormalHeader" oncommand="goDoCommand('cmd_viewNormalHeader');" disabled="true"/>
</commandset>
<commandset id="mailTagMenuItems"
commandupdater="true"
events="create-menu-tag"
oncommandupdate="goUpdateMailMenuItems(this);">
<command id="cmd_addTag" oncommand="goDoCommand('cmd_addTag'); event.stopPropagation();"/>
<command id="cmd_manageTags" oncommand="goDoCommand('cmd_manageTags'); event.stopPropagation();"/>
<command id="cmd_removeTags" oncommand="goDoCommand('cmd_removeTags'); event.stopPropagation();"/>
</commandset>
<commandset id="mailToolsMenuItems"
commandupdater="true"
events="create-menu-tasks"
oncommandupdate="goUpdateMailMenuItems(this)">
<command id="cmd_displayMsgFilters"
oncommand="goDoCommand('cmd_displayMsgFilters');" disabled="true"/>
<command id="cmd_applyFilters" oncommand="goDoCommand('cmd_applyFilters');" disabled="true"/>
<command id="cmd_applyFiltersToSelection"
oncommand="goDoCommand('cmd_applyFiltersToSelection');"
disabled="true"
valueSelection="&filtersApplyToSelection.label;"
valueSelectionAccessKey="&filtersApplyToSelection.accesskey;"
valueMessage="&filtersApplyToMessage.label;"
valueMessageAccessKey="&filtersApplyToMessage.accesskey;"/>
<command id="cmd_runJunkControls" oncommand="goDoCommand('cmd_runJunkControls');" disabled="true"/>
<command id="cmd_deleteJunk" oncommand="goDoCommand('cmd_deleteJunk');" disabled="true"/>
</commandset>
#ifdef XP_MACOSX
<commandset id="macWindowMenuItems">
<!-- Mac Window menu -->
<command id="minimizeWindow" label="&minimizeWindow.label;" oncommand="window.minimize();"/>
<command id="zoomWindow" label="&zoomWindow.label;" oncommand="zoomWindow();"/>
<command id="Tasks:Mail" oncommand="focusOnMail(1);"/>
<command id="Tasks:AddressBook" oncommand="toAddressBook();"/>
</commandset>
#endif
<keyset id="mailKeys">
<key id="space" key=" " modifiers="shift any" oncommand="SpaceHit(event);"/>
<!-- File Menu -->
<key id="key_close"/>
#ifndef XP_MACOSX
<key id="key_close2" keycode="VK_F4" modifiers="accel" command="cmd_close"/>
<key id="key_renameFolder" keycode="&renameFolder.key;" oncommand="goDoCommand('cmd_renameFolder')"/>
#endif
#ifdef XP_UNIX
<key id="key_quit"/>
#endif
<!-- Edit Menu -->
<key id="key_undo"/>
<key id="key_redo"/>
<key id="key_cut"/>
<key id="key_copy"/>
<key id="key_paste"/>
#ifdef XP_MACOSX
<key id="key_delete" keycode="VK_BACK"
oncommand="goDoCommand('cmd_delete');"/>
<key id="key_delete2" keycode="VK_DELETE"
oncommand="goDoCommand('cmd_delete');"/>
<key id="cmd_shiftDelete" keycode="VK_BACK"
oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
<key id="cmd_shiftDelete2" keycode="VK_DELETE"
oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
#else
<key id="key_delete" keycode="VK_DELETE"
oncommand="goDoCommand('cmd_delete');"/>
<key id="cmd_shiftDelete" keycode="VK_DELETE"
oncommand="goDoCommand('cmd_shiftDelete');" modifiers="shift"/>
#endif
<key id="key_selectAll"/>
<key id="key_selectThread" key="&selectThreadCmd.key;" oncommand="goDoCommand('cmd_selectThread');" modifiers="accel, shift"/>
<key id="key_toggleRead" key="&toggleReadCmd.key;" oncommand="goDoCommand('cmd_toggleRead');"/>
<key id="key_toggleFlagged" key="&markStarredCmd.key;" oncommand="goDoCommand('cmd_markAsFlagged');"/>
<key id="key_markJunk" key="&markAsJunkCmd.key;" oncommand="goDoCommand('cmd_markAsJunk');"/>
<key id="key_markNotJunk" key="&markAsNotJunkCmd.key;" oncommand="goDoCommand('cmd_markAsNotJunk');"
modifiers="shift"/>
<key id="key_markAllRead" key="&markAllReadCmd.key;"
oncommand="goDoCommand('cmd_markAllRead');" modifiers="shift"/>
<key id="key_markThreadAsRead" key="&markThreadAsReadCmd.key;" oncommand="goDoCommand('cmd_markThreadAsRead')"/>
<key id="key_markReadByDate" key="&markReadByDateCmd.key;" oncommand="goDoCommand('cmd_markReadByDate')"/>
<key id="key_nextMsg" key="&nextMsgCmd.key;" oncommand="goDoCommand('cmd_nextMsg')"/>
<key id="key_nextUnreadMsg" key="&nextUnreadMsgCmd.key;" oncommand="goDoCommand('cmd_nextUnreadMsg')"/>
<key id="key_expandAllThreads" key="&expandAllThreadsCmd.key;" oncommand="goDoCommand('cmd_expandAllThreads')"/>
<key key="&expandAllThreadsCmd.key;" modifiers="shift" oncommand="goDoCommand('cmd_expandAllThreads')"/>
<key id="key_collapseAllThreads" key="&collapseAllThreadsCmd.key;" oncommand="goDoCommand('cmd_collapseAllThreads')"/>
<key key="&collapseAllThreadsCmd.key;" modifiers="shift" oncommand="goDoCommand('cmd_collapseAllThreads')"/>
<key id="key_nextUnreadThread" key="&nextUnreadThread.key;" oncommand="goDoCommand('cmd_nextUnreadThread')"/>
<key id="key_previousMsg" key="&prevMsgCmd.key;" oncommand="goDoCommand('cmd_previousMsg')"/>
<key id="key_previousUnreadMsg" key="&prevUnreadMsgCmd.key;" oncommand="goDoCommand('cmd_previousUnreadMsg')"/>
<key id="key_archive" key="&archiveMsgCmd.key;" oncommand="goDoCommand('cmd_archive')"/>
<key id="key_goForward" key="&goForwardCmd.commandKey;" oncommand="goDoCommand('cmd_goForward')"/>
<key id="key_goBack" key="&goBackCmd.commandKey;" oncommand="goDoCommand('cmd_goBack')"/>
<key id="key_goStartPage" keycode="VK_HOME" oncommand="goDoCommand('cmd_goStartPage')" modifiers="alt"/>
<key id="key_undoCloseTab" key="&undoCloseTabCmd.commandkey;" oncommand="goDoCommand('cmd_undoCloseTab')" modifiers="accel, shift"/>
<key id="key_reply" key="&replyMsgCmd.key;" oncommand="goDoCommand('cmd_reply')" modifiers="accel"/>
<key id="key_replyall" key="&replyToAllMsgCmd.key;" oncommand="goDoCommand('cmd_replyall')" modifiers="accel, shift"/>
<key id="key_replylist" key="&replyToListMsgCmd.key;" oncommand="goDoCommand('cmd_replylist')" modifiers="accel, shift"/>
<key id="key_forward" key="&forwardMsgCmd.key;" oncommand="goDoCommand('cmd_forward')" modifiers="accel"/>
<key id="key_editAsNew" key="&editAsNewMsgCmd.key;" oncommand="goDoCommand('cmd_editAsNew')" modifiers="accel"/>
<key id="key_watchThread" key="&watchThreadMenu.key;" oncommand="goDoCommand('cmd_watchThread')" />
<key id="key_killThread" key="&killThreadMenu.key;" oncommand="goDoCommand('cmd_killThread')" />
<key id="key_killSubthread" key="&killSubthreadMenu.key;" oncommand="goDoCommand('cmd_killSubthread')" modifiers="shift" />
<key id="key_openMessage" key="&openMessageWindowCmd.key;" oncommand="goDoCommand('cmd_openMessage')" modifiers="accel"/>
<key id="key_openConversation" key="&openConversationCmd.key;" oncommand="goDoCommand('cmd_openConversation')" modifiers="accel, shift"/>
#ifdef XP_MACOSX
<key id="key_moveToFolderAgain" key="&moveToFolderAgainCmd.key;" oncommand="goDoCommand('cmd_moveToFolderAgain')" modifiers="alt, accel"/>
#else
<key id="key_moveToFolderAgain" key="&moveToFolderAgainCmd.key;" oncommand="goDoCommand('cmd_moveToFolderAgain')" modifiers="accel, shift"/>
#endif
<key id="key_print" key="&printCmd.key;" oncommand="goDoCommand('cmd_print')" modifiers="accel"/>
<key id="key_saveAsFile" key="&saveAsFileCmd.key;" oncommand="goDoCommand('cmd_saveAsFile')" modifiers="accel"/>
<key id="key_viewPageSource" key="&pageSourceCmd.key;" oncommand="goDoCommand('cmd_viewPageSource')" modifiers="accel"/>
#ifdef XP_MACOSX
<key id="key_getNewMessagesAlt" keycode="VK_F5"
oncommand="goDoCommand('cmd_getNewMessages');"/>
<key id="key_getAllNewMessagesAlt" keycode="VK_F5" modifiers="shift"
oncommand="goDoCommand('cmd_getMsgsForAuthAccounts');"/>
<key id="key_getNewMessages" key="&getNewMessagesCmd.key;" modifiers="accel"
oncommand="goDoCommand('cmd_getNewMessages');"/>
<key id="key_getAllNewMessages" key="&getAllNewMessagesCmd.key;" modifiers="accel, shift"
oncommand="goDoCommand('cmd_getMsgsForAuthAccounts');"/>
#else
<key id="key_getNewMessages" keycode="VK_F5"
oncommand="goDoCommand('cmd_getNewMessages');"/>
<key id="key_getAllNewMessages" keycode="VK_F5" modifiers="shift"
oncommand="goDoCommand('cmd_getMsgsForAuthAccounts');"/>
#endif
#ifdef XP_GNOME
<key id="key_getNewMessages2" keycode="VK_F9"
oncommand="goDoCommand('cmd_getNewMessages');"/>
<key id="key_getAllNewMessages2" keycode="VK_F9" modifiers="shift"
oncommand="goDoCommand('cmd_getMsgsForAuthAccounts');"/>
#endif
<key id="key_find" key="&findCmd.key;" oncommand="goDoCommand('cmd_find')" modifiers="accel"/>
<key id="key_findAgain" key="&findAgainCmd.key;" oncommand="goDoCommand('cmd_findAgain')" modifiers="accel"/>
<key id="key_findPrev" key="&findPrevCmd.key;" oncommand="goDoCommand('cmd_findPrevious')" modifiers="accel, shift"/>
<key keycode="&findAgainCmd.key2;" oncommand="goDoCommand('cmd_findAgain')"/>
<key keycode="&findPrevCmd.key2;" oncommand="goDoCommand('cmd_findPrevious')" modifiers="shift"/>
<key id="key_quickSearchFocus" key="&quickSearchCmd.key;" oncommand="QuickSearchFocus()" modifiers="accel"/>
<keyset id="viewZoomKeys">
<key id="key_fullZoomReduce" key="&fullZoomReduceCmd.commandkey;"
command="cmd_fullZoomReduce" modifiers="accel"/>
<key key="&fullZoomReduceCmd.commandkey2;"
command="cmd_fullZoomReduce" modifiers="accel"/>
<key id="key_fullZoomEnlarge" key="&fullZoomEnlargeCmd.commandkey;"
command="cmd_fullZoomEnlarge" modifiers="accel"/>
<key key="&fullZoomEnlargeCmd.commandkey2;"
command="cmd_fullZoomEnlarge" modifiers="accel"/>
<key key="&fullZoomEnlargeCmd.commandkey3;"
command="cmd_fullZoomEnlarge" modifiers="accel"/>
<key id="key_fullZoomReset" key="&fullZoomResetCmd.commandkey;"
command="cmd_fullZoomReset" modifiers="accel"/>
<key key="&fullZoomResetCmd.commandkey2;"
command="cmd_fullZoomReset" modifiers="accel"/>
</keyset>
<!-- Tab/F6 Keys -->
<key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
<key keycode="VK_TAB" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
<key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control,shift"/>
<key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="control"/>
<key keycode="VK_F6" oncommand="SwitchPaneFocus(event);" modifiers="shift"/>
<key keycode="VK_F6" oncommand="SwitchPaneFocus(event);"/>
<!-- View Toggle Keys (F8) -->
<key id="key_toggleMessagePane" keycode="VK_F8" oncommand="goDoCommand('cmd_toggleMessagePane');"/>
<!-- Tag Keys -->
<!-- Includes both shifted and not, for Azerty and other layouts where the
numeric keys are shifted. -->
<key id="key_tag0" key="&tagCmd0.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_removeTags');"/>
<key id="key_tag1" key="&tagCmd1.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag1');"/>
<key id="key_tag2" key="&tagCmd2.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag2');"/>
<key id="key_tag3" key="&tagCmd3.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag3');"/>
<key id="key_tag4" key="&tagCmd4.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag4');"/>
<key id="key_tag5" key="&tagCmd5.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag5');"/>
<key id="key_tag6" key="&tagCmd6.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag6');"/>
<key id="key_tag7" key="&tagCmd7.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag7');"/>
<key id="key_tag8" key="&tagCmd8.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag8');"/>
<key id="key_tag9" key="&tagCmd9.key;" modifiers="shift any"
oncommand="goDoCommand('cmd_tag9');"/>
<!-- Tools Keys -->
<key id="key_searchMail"
key="&searchMailCmd.key;"
oncommand="goDoCommand('cmd_search')"
modifiers="accel,shift"/>
<key id="key_errorConsole"
key="&errorConsoleCmd.commandkey;"
oncommand="toJavaScriptConsole();"
modifiers="accel,shift"/>
<key id="key_scratchpad"
keycode="&scratchpadCmd.keycode;"
keytext="&scratchpadCmd.keytext;"
modifiers="shift"
oncommand="ScratchpadManager.openScratchpad({ executionContext: 2 });"/>
<key id="key_sanitizeHistory"
keycode="VK_DELETE"
oncommand="toSanitize();"
modifiers="accel,shift"/>
#ifdef XP_MACOSX
<key id="key_sanitizeHistory_mac"
keycode="VK_BACK"
oncommand="toSanitize();"
modifiers="accel,shift"/>
#endif
<key id="key_addressbook"
key="&addressBookCmd.key;"
modifiers="accel, shift"
oncommand="toAddressBook();"/>
<key id="key_savedFiles"
key="&savedFiles.key;"
modifiers="accel"
oncommand="openSavedFilesWnd();"/>
#ifdef XP_GNOME
#define NUM_SELECT_TAB_MODIFIER alt
#else
#define NUM_SELECT_TAB_MODIFIER accel
#endif
#expand <key id="key_mail" oncommand="focusOnMail(0, event);" key="1" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab2" oncommand="focusOnMail(1, event);" key="2" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab3" oncommand="focusOnMail(2, event);" key="3" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab4" oncommand="focusOnMail(3, event);" key="4" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab5" oncommand="focusOnMail(4, event);" key="5" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab6" oncommand="focusOnMail(5, event);" key="6" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab7" oncommand="focusOnMail(6, event);" key="7" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectTab8" oncommand="focusOnMail(7, event);" key="8" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#expand <key id="key_selectLastTab" oncommand="focusOnMail(-1, event);" key="9" modifiers="__NUM_SELECT_TAB_MODIFIER__"/>
#ifdef XP_MACOSX
<!-- Mac Window menu keys -->
<key id="key_minimizeWindow" command="minimizeWindow" key="&minimizeWindow.key;" modifiers="accel"/>
<!-- the following 3 keys are used in the application menu on Mac OS X Cocoa widgets -->
<key id="key_preferencesCmdMac" key="&preferencesCmdMac.commandkey;" modifiers="&preferencesCmdMac.modifiers;"/>
<key id="key_hideThisAppCmdMac" key="&hideThisAppCmdMac.commandkey;" modifiers="&hideThisAppCmdMac.modifiers;"/>
<key id="key_hideOtherAppsCmdMac" key="&hideOtherAppsCmdMac.commandkey;" modifiers="&hideOtherAppsCmdMac.modifiers;"/>
#endif
<!-- Common keys for the base menu overlay -->
<keyset id="baseMenuKeyset"/>
</keyset>
<!-- "Please keep all items and separators up to date in nsContextMenu.js when making changes here" -->
<menupopup id="mailContext"
pagemenu="start"
onpopupshowing="return fillMailContextMenu(event);"
onpopuphiding="mailContextOnPopupHiding(event);">
<menuseparator id="page-menu-separator"/>
<!-- Spellchecking suggestions -->
<menuitem id="mailContext-spell-no-suggestions"
disabled="true"
label="&spellNoSuggestions.label;"/>
<menuitem id="mailContext-spell-add-to-dictionary"
label="&spellAddToDictionary.label;"
accesskey="&spellAddToDictionary.accesskey;"
oncommand="gSpellChecker.addToDictionary();"/>
<menuseparator id="mailContext-spell-suggestions-separator"/>
<menuitem id="mailContext-openInBrowser"
label="&openInBrowser.label;"
accesskey="&openInBrowser.accesskey;"
oncommand="gContextMenu.openInBrowser();"/>
<menuitem id="mailContext-openLinkInBrowser"
label="&openLinkInBrowser.label;"
accesskey="&openLinkInBrowser.accesskey;"
oncommand="gContextMenu.openLinkInBrowser();"/>
<menuseparator id="mailContext-sep-open-browser"/>
<menuitem id="mailContext-reload"
label="&reloadCmd.label;"
accesskey="&reloadCmd.accesskey;"
command="cmd_reload"/>
<menuitem id="mailContext-stop"
label="&stopCmd.label;"
accesskey="&stopCmd.accesskey;"
command="cmd_stop"/>
<menuseparator id="mailContext-sep-link"/>
<menuitem id="mailContext-undo"
label="&undoDefaultCmd.label;"
accesskey="&undoDefaultCmd.accesskey;"
command="cmd_undo"/>
<menuseparator id="mailContext-sep-undo"/>
<menuitem id="mailContext-cut"
label="&cutCmd.label;"
accesskey="&cutCmd.accesskey;"
command="cmd_copy"/>
<menuitem id="mailContext-copy"
label="&copyCmd.label;"
accesskey="&copyCmd.accesskey;"
command="cmd_copy"/>
<menuitem id="mailContext-paste"
label="&pasteCmd.label;"
accesskey="&pasteCmd.accesskey;"
command="cmd_paste"/>
<menuitem id="mailContext-selectall"
label="&selectAllCmd.label;"
accesskey="&selectAllCmd.accesskey;"
command="cmd_selectAll"/>
<menuseparator id="mailContext-sep-clipboard"/>
<menuitem id="mailContext-searchTheWeb"
label="[glodaComplete.webSearch1.label]"
oncommand="openWebSearch(event.target.value)"/>
<!-- Spellchecking general menu items (enable, add dictionaries...) -->
<menuseparator id="mailContext-spell-separator"/>
<menuitem id="mailContext-spell-check-enabled"
label="&spellCheckToggle.label;"
type="checkbox"
accesskey="&spellCheckToggle.accesskey;"
oncommand="gSpellChecker.toggleEnabled();"/>
<menuitem id="mailContext-spell-add-dictionaries-main"
label="&spellAddDictionaries.label;"
accesskey="&spellAddDictionaries.accesskey;"
oncommand="gContextMenu.addDictionaries();"/>
<menu id="mailContext-spell-dictionaries"
label="&spellDictionaries.label;"
accesskey="&spellDictionaries.accesskey;">
<menupopup id="mailContext-spell-dictionaries-menu">
<menuseparator id="mailContext-spell-language-separator"/>
<menuitem id="mailContext-spell-add-dictionaries"
label="&spellAddDictionaries.label;"
accesskey="&spellAddDictionaries.accesskey;"
oncommand="gContextMenu.addDictionaries();"/>
</menupopup>
</menu>
<menuseparator id="mailContext-sep-open"/>
<menuitem id="mailContext-media-play"
label="&contextPlay.label;"
accesskey="&contextPlay.accesskey;"
oncommand="gContextMenu.mediaCommand('play');"/>
<menuitem id="mailContext-media-pause"
label="&contextPause.label;"
accesskey="&contextPause.accesskey;"
oncommand="gContextMenu.mediaCommand('pause');"/>
<menuitem id="mailContext-media-mute"
label="&contextMute.label;"
accesskey="&contextMute.accesskey;"
oncommand="gContextMenu.mediaCommand('mute');"/>
<menuitem id="mailContext-media-unmute"
label="&contextUnmute.label;"
accesskey="&contextUnmute.accesskey;"
oncommand="gContextMenu.mediaCommand('unmute');"/>
<menuitem id="threadPaneContext-openNewTab"
label="&contextOpenNewTab.label;"
accesskey="&contextOpenNewTab.accesskey;"
oncommand="OpenMessageInNewTab(event);"/>
<menuitem id="mailContext-openNewWindow"
label="&contextOpenNewWindow.label;"
accesskey="&contextOpenNewWindow.accesskey;"
oncommand="MsgOpenNewWindowForMessage();"/>
<menuitem id="mailContext-openConversation"
label="&contextOpenConversation.label;"
accesskey="&contextOpenConversation.accesskey;"
oncommand="gConversationOpener.openConversationForMessages(gFolderDisplay.selectedMessages);"/>
<menuitem id="mailContext-openContainingFolder"
label="&contextOpenContainingFolder.label;"
accesskey="&contextOpenContainingFolder.accesskey;"
oncommand="OpenContainingFolder();"/>
<menuseparator id="mailContext-sep-open2"/>
<menuitem id="mailContext-replyNewsgroup"
label="&contextReplyNewsgroup2.label;"
accesskey="&contextReplyNewsgroup2.accesskey;"
oncommand="MsgReplyGroup(event);"/>
<menuitem id="mailContext-replySender"
label="&contextReplySender.label;"
accesskey="&contextReplySender.accesskey;"
oncommand="MsgReplySender(event);"/>
<menuitem id="mailContext-replyAll"
label="&contextReplyAll.label;"
accesskey="&contextReplyAll.accesskey;"
oncommand="MsgReplyToAllMessage(event);"/>
<menuitem id="mailContext-replyList"
label="&contextReplyList.label;"
accesskey="&contextReplyList.accesskey;"
oncommand="MsgReplyToListMessage(event);"/>
<menuitem id="mailContext-forward"
label="&contextForward.label;"
accesskey="&contextForward.accesskey;"
oncommand="MsgForwardMessage(event);"/>
<menu id="mailContext-forwardAsMenu"
label="&contextForwardAsMenu.label;"
accesskey="&contextForwardAsMenu.accesskey;">
<menupopup id="mailContext-forwardAsPopup">
<menuitem id="mailContext-forwardAsInline"
label="&contextForwardAsInline.label;"
accesskey="&contextForwardAsInline.accesskey;"
command="cmd_forwardInline"/>
<menuitem id="mailContext-forwardAsAttachment"
label="&contextForwardAsAttachmentItem.label;"
accesskey="&contextForwardAsAttachmentItem.accesskey;"
command="cmd_forwardAttachment"/>
</menupopup>
</menu>
<menuitem id="mailContext-multiForwardAsAttachment"
label="&contextMultiForwardAsAttachment.label;"
accesskey="&contextMultiForwardAsAttachment.accesskey;"
oncommand="MsgForwardAsAttachment(event);"/>
<!-- The following two items are not hooked to their commands because we need
to enable them even in some cases there is no real selected message yet,
only a rightclick on a message. -->
<menuitem id="mailContext-editAsNew"
label="&contextEditMsgAsNew.label;"
accesskey="&contextEditMsgAsNew.accesskey;"
oncommand="MsgEditMessageAsNew(event);"/>
<menuitem id="mailContext-editDraftMsg"
label="&contextEditDraftMsg.label;"
oncommand="MsgEditDraftMessage(event);"/>
<menuseparator id="mailContext-sep-reply"/>
<menu id="mailContext-tags" label="&tagMenu.label;" accesskey="&tagMenu.accesskey;">
<menupopup id="mailContext-tagpopup"
onpopupshowing="InitMessageTags(this);">
<menuitem id="mailContext-addNewTag"
label="&addNewTag.label;"
accesskey="&addNewTag.accesskey;"
command="cmd_addTag"/>
<menuitem id="mailContext-manageTags"
label="&manageTags.label;"
accesskey="&manageTags.accesskey;"
command="cmd_manageTags"/>
<menuseparator id="mailContext-sep-afterTagAddNew"/>
<menuitem id="mailContext-tagRemoveAll"
command="cmd_removeTags"/>
<menuseparator id="mailContext-sep-afterTagRemoveAll"/>
</menupopup>
</menu>
<menu id="mailContext-mark"
label="&markMenu.label;"
accesskey="&markMenu.accesskey;">
<menupopup id="mailContext-markPopup"
onpopupshowing="InitMessageMark()">
<menuitem id="mailContext-markRead"
label="&markAsReadCmd.label;"
accesskey="&markAsReadCmd.accesskey;"
command="cmd_markAsRead"/>
<menuitem id="mailContext-markUnread"
label="&markAsUnreadCmd.label;"
accesskey="&markAsUnreadCmd.accesskey;"
command="cmd_markAsUnread"/>
<menuitem id="mailContext-markThreadAsRead"
label="&markThreadAsReadCmd.label;"
accesskey="&markThreadAsReadCmd.accesskey;"
command="cmd_markThreadAsRead"/>
<menuitem id="mailContext-markReadByDate"
label="&markReadByDateCmd.label;"
accesskey="&markReadByDateCmd.accesskey;"
command="cmd_markReadByDate"/>
<menuitem id="mailContext-markAllRead"
label="&markAllReadCmd.label;"
accesskey="&markAllReadCmd.accesskey;"
command="cmd_markAllRead"/>
<menuseparator id="mailContext-sep-afterMarkAllRead"/>
<menuitem id="mailContext-markFlagged"
type="checkbox"
label="&markStarredCmd.label;"
accesskey="&markStarredCmd.accesskey;"
command="cmd_markAsFlagged"/>
<menuseparator id="mailContext-sep-afterMarkFlagged"/>
<menuitem id="mailContext-markAsJunk"
label="&markAsJunkCmd.label;"
accesskey="&markAsJunkCmd.accesskey;"
command="cmd_markAsJunk"/>
<menuitem id="mailContext-markAsNotJunk"
label="&markAsNotJunkCmd.label;"
accesskey="&markAsNotJunkCmd.accesskey;"
command="cmd_markAsNotJunk"/>
<menuitem id="mailContext-recalculateJunkScore"
label="&recalculateJunkScoreCmd.label;"
accesskey="&recalculateJunkScoreCmd.accesskey;"
command="cmd_recalculateJunkScore"/>
</menupopup>
</menu>
<menuseparator id="mailContext-sep-afterMarkMenu"/>
<menuitem id="mailContext-copyMessageUrl"
label="&copyMessageLocation.label;"
accesskey="&copyMessageLocation.accesskey;"
oncommand="CopyMessageUrl()"/>
<menuitem id="mailContext-archive"
label="&contextArchive.label;"
accesskey="&contextArchive.accesskey;"
oncommand="MsgArchiveSelectedMessages(event);"/>
<menu id="mailContext-moveMenu"
label="&contextMoveMsgMenu.label;"
accesskey="&contextMoveMsgMenu.accesskey;"
oncommand="MsgMoveMessage(event.target._folder)">
<menupopup id="mailContext-fileHereMenu"
type="folder"
mode="filing"
showFileHereLabel="true"
showRecent="true"
recentLabel="&contextMoveCopyMsgRecentMenu.label;"
recentAccessKey="&contextMoveCopyMsgRecentMenu.accesskey;"/>
</menu>
<menu id="mailContext-copyMenu"
label="&contextCopyMsgMenu.label;"
accesskey="&contextCopyMsgMenu.accesskey;"
oncommand="MsgCopyMessage(event.target._folder)">
<menupopup id="mailContext-copyHereMenu"
type="folder"
mode="filing"
showFileHereLabel="true"
showRecent="true"
recentLabel="&contextMoveCopyMsgRecentMenu.label;"
recentAccessKey="&contextMoveCopyMsgRecentMenu.accesskey;"/>
</menu>
<menuitem id="mailContext-moveToFolderAgain"
command="cmd_moveToFolderAgain"
label="&moveToFolderAgain.label;"
accesskey="&moveToFolderAgain.accesskey;"/>
<menuitem id="mailContext-delete"
command="cmd_delete"/>
<menuseparator id="paneContext-afterMove"/>
<menuitem id="mailContext-ignoreThread"
label="&contextKillThreadMenu.label;"
accesskey="&contextKillThreadMenu.accesskey;"
command="cmd_killThread"/>
<menuitem id="mailContext-ignoreSubthread"
label="&contextKillSubthreadMenu.label;"
accesskey="&contextKillSubthreadMenu.accesskey;"
command="cmd_killSubthread"/>
<menuitem id="mailContext-watchThread"
label="&contextWatchThreadMenu.label;"
accesskey="&contextWatchThreadMenu.accesskey;"
command="cmd_watchThread"/>
<menuseparator id="mailContext-afterWatchThread"/>
<menuitem id="mailContext-saveAs"
label="&contextSaveAs.label;"
accesskey="&contextSaveAs.accesskey;"
oncommand="MsgSaveAsFile();"/>
<menuitem id="mailContext-printpreview"
label="&contextPrintPreview.label;"
accesskey="&contextPrintPreview.accesskey;"
observes="cmd_printpreview"
command="cmd_printpreview"/>
<menuitem id="mailContext-print"
label="&contextPrint.label;"
accesskey="&contextPrint.accesskey;"
observes="cmd_print"
command="cmd_print"/>
<menuitem id="downloadSelected"
label="&downloadSelectedCmd.label;"
accesskey="&downloadSelectedCmd.accesskey;"
command="cmd_downloadSelected"/>
<menuseparator id="mailContext-sep-edit"/>
<menuitem id="mailContext-copylink"
label="&copyLinkCmd.label;"
accesskey="&copyLinkCmd.accesskey;"
command="cmd_copyLink"/>
<menuitem id="mailContext-copyimage"
label="&copyImageAllCmd.label;"
accesskey="&copyImageAllCmd.accesskey;"
command="cmd_copyImage"/>
<menuitem id="mailContext-addemail"
label="&AddToAddressBook.label;"
accesskey="&AddToAddressBook.accesskey;"
oncommand="addEmail();"/>
<menuitem id="mailContext-composeemailto"
label="&SendMessageTo.label;"
accesskey="&SendMessageTo.accesskey;"
oncommand="composeEmailTo();"/>
<menuitem id="mailContext-copyemail"
label="&copyEmailCmd.label;"
accesskey="&copyEmailCmd.accesskey;"
oncommand="gContextMenu.copyEmail();"/>
<menuseparator id="mailContext-sep-copy"/>
<menuitem id="mailContext-savelink"
label="&saveLinkAsCmd.label;"
accesskey="&saveLinkAsCmd.accesskey;"
oncommand="gContextMenu.saveLink();"/>
<menuitem id="mailContext-saveimage"
label="&saveImageAsCmd.label;"
accesskey="&saveImageAsCmd.accesskey;"
oncommand="gContextMenu.saveImage();"/>
<menuseparator id="mailContext-sep-reportPhishing"/>
<menuitem id="mailContext-reportPhishingURL"
label="&reportPhishingURL.label;"
accesskey="&reportPhishingURL.accesskey;"
oncommand="gPhishingDetector.reportPhishingURL(gContextMenu.linkURL);"/>
</menupopup>
<menupopup id="folderPaneContext"
onpopupshowing="return fillFolderPaneContextMenu(event);"
onpopuphiding="if (event.target == this) folderPaneOnPopupHiding();">
<menuitem id="folderPaneContext-getMessages"
label="&folderContextGetMessages.label;"
accesskey="&folderContextGetMessages.accesskey;"
oncommand="MsgGetMessage();"/>
<menuitem id="folderPaneContext-openNewTab"
label="&folderContextOpenNewTab.label;"
accesskey="&folderContextOpenNewTab.accesskey;"
oncommand="FolderPaneContextMenuNewTab(event);"/>
<menuitem id="folderPaneContext-openNewWindow"
label="&folderContextOpenInNewWindow.label;"
accesskey="&folderContextOpenInNewWindow.accesskey;"
oncommand="MsgOpenNewWindowForFolder(null,-1);"/>
<menuitem id="folderPaneContext-searchMessages"
label="&folderContextSearchForMessages.label;"
accesskey="&folderContextSearchForMessages.accesskey;"
oncommand="gFolderTreeController.searchMessages();"/>
<menuitem id="folderPaneContext-subscribe"
label="&folderContextSubscribe.label;"
accesskey="&folderContextSubscribe.accesskey;"
oncommand="MsgSubscribe();"/>
<menuitem id="folderPaneContext-newsUnsubscribe"
label="&folderContextUnsubscribe.label;"
accesskey="&folderContextUnsubscribe.accesskey;"
oncommand="MsgUnsubscribe();"/>
<menuseparator id="folderPaneContext-sep1"/>
<menuitem id="folderPaneContext-new"
label="&folderContextNew.label;"
accesskey="&folderContextNew.accesskey;"
oncommand="gFolderTreeController.newFolder();"/>
<menuitem id="folderPaneContext-remove"
label="&folderContextRemove.label;"
accesskey="&folderContextRemove.accesskey;"
oncommand="gFolderTreeController.deleteFolder();"/>
<menuitem id="folderPaneContext-rename"
label="&folderContextRename.label;"
accesskey="&folderContextRename.accesskey;"
oncommand="gFolderTreeController.renameFolder();"/>
<menuseparator id="folderPaneContext-sep2"/>
<menuitem id="folderPaneContext-compact"
label="&folderContextCompact.label;"
accesskey="&folderContextCompact.accesskey;"
oncommand="gFolderTreeController.compactFolders();"/>
<menuitem id="folderPaneContext-markMailFolderAllRead"
label="&folderContextMarkMailFolderRead.label;"
accesskey="&folderContextMarkMailFolderRead.accesskey;"
oncommand="MsgMarkAllRead();"/>
<menuitem id="folderPaneContext-markNewsgroupAllRead"
label="&folderContextMarkNewsgroupRead.label;"
accesskey="&folderContextMarkNewsgroupRead.accesskey;"
oncommand="MsgMarkAllRead();"/>
<menuitem id="folderPaneContext-emptyTrash"
label="&folderContextEmptyTrash.label;"
accesskey="&folderContextEmptyTrash.accesskey;"
oncommand="gFolderTreeController.emptyTrash();"/>
<menuitem id="folderPaneContext-emptyJunk"
label="&folderContextEmptyJunk.label;"
accesskey="&folderContextEmptyJunk.accesskey;"
oncommand="gFolderTreeController.emptyJunk();"/>
<menuitem id="folderPaneContext-sendUnsentMessages"
label="&folderContextSendUnsentMessages.label;"
accesskey="&folderContextSendUnsentMessages.accesskey;"
oncommand="goDoCommand('cmd_sendUnsentMsgs')"/>
<menuseparator id="folderPaneContext-sep3"/>
<menuitem id="folderPaneContext-favoriteFolder"
type="checkbox"
label="&folderContextFavoriteFolder.label;"
accesskey="&folderContextFavoriteFolder.accesskey;"
checked="false"
oncommand="ToggleFavoriteFolderFlag();"/>
<menuitem id="folderPaneContext-properties"
label="&folderContextProperties2.label;"
accesskey="&folderContextProperties2.accesskey;"
oncommand="gFolderTreeController.editFolder();"/>
<menuitem id="folderPaneContext-settings"
label="&folderContextSettings2.label;"
accesskey="&folderContextSettings2.accesskey;"
oncommand="gFolderTreeController.editFolder();"/>
</menupopup>
<menupopup id="toolbar-context-menu"
onpopupshowing="onViewToolbarsPopupShowing(event, 'mail-toolbox');">
<menuseparator id="customizeMailToolbarMenuSeparator"/>
<menuitem id="CustomizeMailToolbar"
command="cmd_CustomizeMailToolbar"
label="&customizeToolbar.label;"
accesskey="&customizeToolbar.accesskey;"/>
</menupopup>
<menupopup id="remoteContentOptions" value=""
onpopupshowing="onRemoteContentOptionsShowing(event);">
<menuitem id="remoteContentOptionAllowForMsg"
label="&remoteContentOptionsAllowForMsg.label;"
accesskey="&remoteContentOptionsAllowForMsg.accesskey;"
oncommand="LoadMsgWithRemoteContent();"/>
<menuseparator id="remoteContentSettingsMenuSeparator"/>
<menuitem id="editRemoteContentSettings"
#ifdef XP_WIN
label="&editRemoteContentSettings.label;"
accesskey="&editRemoteContentSettings.accesskey;"
#else
label="&editRemoteContentSettingsUnix.label;"
accesskey="&editRemoteContentSettingsUnix.accesskey;"
#endif
oncommand="editRemoteContentSettings();"/>
<menuseparator id="remoteContentOriginsMenuSeparator"/>
<menuseparator id="remoteContentAllMenuSeparator"/>
<menuitem id="remoteContentOptionAllowAll"
oncommand="allowRemoteContentForAll(this.parentNode);"/>
</menupopup>
<menupopup id="phishingOptions">
<menuitem id="phishingOptionIgnore"
label="&phishingOptionIgnore.label;"
accesskey="&phishingOptionIgnore.accesskey;"
oncommand="IgnorePhishingWarning();"/>
<menuitem id="phishingOptionSettings"
#ifdef XP_WIN
label="&phishingOptionSettings.label;"
accesskey="&phishingOptionSettings.accesskey;"
#else
label="&phishingOptionSettingsUnix.label;"
accesskey="&phishingOptionSettingsUnix.accesskey;"
#endif
oncommand="OpenPhishingSettings();"/>
</menupopup>
<!-- Used by messenger.xul and messageWindow.xul -->
<popupset id="mainPopupSet">
<menupopup id="appmenu-popup"
onpopupshowing="initAppMenuPopup(this, event);">
<hbox>
<vbox id="appmenuPrimaryPane">
<splitmenu id="appmenu_newMessage"
label="&appmenuNewMsgCmd.label;"
command="cmd_newMessage">
<menupopup id="appmenu_newMenupopup">
<menuitem id="appmenu_newNewMsgCmd"
label="&newNewMsgCmd.label;"
key="key_newMessage2"
command="cmd_newMessage"/>
<menuitem id="appmenu_newFolder"
label="&newFolderCmd.label;"
command="cmd_newFolder"/>
<menuitem id="appmenu_newVirtualFolder"
label="&newVirtualFolderCmd.label;"
command="cmd_newVirtualFolder"/>
<menuseparator id="appmenu_newAccountPopupMenuSeparator"/>
<menuitem id="appmenu_newAccountMenuItem"
label="&newOtherAccountsCmd.label;"
oncommand="MsgAccountWizard();"/>
<menuseparator id="appmenu_newPopupMenuSeparator"/>
<menuitem id="appmenu_newCard"
label="&appmenuNewContactCmd.label;"
command="cmd_newCard"/>
</menupopup>
</splitmenu>
<menu id="appmenu_msgAttachmentMenu"
label="&openAttachmentListCmd.label;"
disabled="true">
<menupopup id="appmenu_attachmentMenuList"
onpopupshowing="FillAttachmentListPopup(this);"/>
</menu>
<menuseparator class="appmenu-menuseparator"/>
<hbox>
<menuitem id="appmenu-edit-label"
label="&appmenuEditMenu.label;"
disabled="true"/>
<toolbarbutton id="appmenu-cut"
class="appmenu-edit-button"
command="cmd_cut"
onclick="if (!this.disabled) hidePopup();"
tooltiptext="&cutCmd.label;"/>
<toolbarbutton id="appmenu-copy"
class="appmenu-edit-button"
command="cmd_copy"
onclick="if (!this.disabled) hidePopup();"
tooltiptext="&copyCmd.label;"/>
<toolbarbutton id="appmenu-paste"
class="appmenu-edit-button"
command="cmd_paste"
onclick="if (!this.disabled) hidePopup();"
tooltiptext="&pasteCmd.label;"/>
<spacer flex="1"/>
<menu id="appmenu-editmenu">
<menupopup id="appmenu-editmenu-menupopup">
<menuitem id="appmenu-editmenu-cut"
class="menuitem-iconic"
label="&cutCmd.label;"
key="key_cut"
command="cmd_cut"/>
<menuitem id="appmenu-editmenu-copy"
class="menuitem-iconic"
label="&copyCmd.label;"
key="key_copy"
command="cmd_copy"/>
<menuitem id="appmenu-editmenu-paste"
class="menuitem-iconic"
label="&pasteCmd.label;"
key="key_paste"
command="cmd_paste"/>
<menuseparator/>
<menuitem id="appmenu-editmenu-undo"
label="&undoCmd.label;"
key="key_undo"
command="cmd_undo"/>
<menuitem id="appmenu-editmenu-redo"
label="&redoCmd.label;"
key="key_redo"
command="cmd_redo"/>
<menuseparator id="appmenu_messageAfterRedoEditSeparator"/>
<menuitem id="appmenu_delete"
label="&deleteCmd.label;"
#ifdef XP_MACOSX
acceltext="⌫"
#else
key="key_delete"
#endif
command="cmd_delete"/>
<menuseparator id="appmenu_messageAfterDeleteEditSeparator"/>
<menuitem id="appmenu-editmenu-selectAll"
label="&selectAllCmd.label;"
key="key_selectAll"
command="cmd_selectAll"/>
<menuitem id="appmenu_selectThread"
label="&appmenuSelectThread.label;"
key="key_selectThread"
command="cmd_selectThread"/>
<menuitem id="appmenu_selectFlagged"
label="&appmenuSelectFlagged.label;"
command="cmd_selectFlagged"/>
</menupopup>
</menu>
</hbox>
<splitmenu id="appmenu_find"
label="&findMenu.label;"
command="cmd_find">
<menupopup id="appmenu_FindPopup">
<menuitem id="appmenu_findCmd"
label="&findCmd.label;"
key="key_find"
command="cmd_find"/>
<menuitem id="appmenu_findAgainCmd"
label="&findAgainCmd.label;"
key="key_findAgain"
command="cmd_findAgain"/>
<menuseparator id="appMenuAfterFindSeparator"/>
<menuitem id="appmenu_searchMailCmd"
label="&searchMailCmd.label;"
key="key_searchMail"
command="cmd_search"/>
<menuitem id="appmenu_searchAddressesCmd"
label="&searchAddressesCmd.label;"
oncommand="MsgSearchAddresses()"/>
</menupopup>
</splitmenu>
<splitmenu id="appmenu_print"
iconic="true"
label="&printCmd.label;"
key="printKb"
command="cmd_print">
<menupopup>
<menuitem id="appmenu_print_popup"
class="menuitem-iconic"
label="&printCmd.label;"
key="key_print"
command="cmd_print"/>
#ifndef XP_MACOSX
<menuitem id="appmenu_printPreview"
label="&printPreviewCmd.label;"
command="cmd_printpreview"/>
#endif
<menuitem id="appmenu_printSetup"
label="&printSetupCmd.label;"
command="cmd_printSetup"/>
</menupopup>
</splitmenu>
<menuseparator class="appmenu-menuseparator"/>
<menu id="appmenu_saveAs"
label="&saveAsMenu.label;">
<menupopup id="menu_SavePopup">
<menuitem id="appmenu_saveAsFile"
label="&saveAsFileCmd.label;"
key="key_saveAsFile"
command="cmd_saveAsFile"/>
<menuitem id="appmenu_saveAsTemplate"
label="&saveAsTemplateCmd.label;"
command="cmd_saveAsTemplate"/>
</menupopup>
</menu>
<menu id="appmenu_FolderViews"
label="&folderView.label;">
<menupopup id="appmenu_FolderViewsPopup"
onpopupshowing="InitAppFolderViewsMenu();
InitViewFolderViewsMenu(event);">
<menuitem id="appmenu_allFolders"
value="all"
label="&allFolders.label;"
type="radio"
name="viewmessages"
<