home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-mac-0.9.sea.hqx / mozilla-mac-0.9 / Chrome / messenger.jar / content / messenger / mailWindowOverlay.xul < prev    next >
Extensible Markup Language  |  2001-05-05  |  69KB  |  1,282 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4. The contents of this file are subject to the Netscape Public
  5. License Version 1.1 (the "License"); you may not use this file
  6. except in compliance with the License. You may obtain a copy of
  7. the License at http://www.mozilla.org/NPL/
  8.  
  9. Software distributed under the License is distributed on an "AS
  10. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  11. implied. See the License for the specific language governing
  12. rights and limitations under the License.
  13.  
  14. The Original Code is Mozilla Communicator client code, released
  15. March 31, 1998.
  16.  
  17. The Initial Developer of the Original Code is Netscape
  18. Communications Corporation. Portions created by Netscape are
  19.  Copyright (C) 1998-1999 Netscape Communications Corporation. All
  20. Rights Reserved.
  21. -->
  22.  
  23. <?xul-overlay href="chrome://global/content/charsetOverlay.xul"?>
  24. <?xul-overlay href="chrome://communicator/content/viewZoomOverlay.xul"?>
  25.  
  26. <!DOCTYPE window [
  27. <!ENTITY % messengerDTD SYSTEM "chrome://messenger/locale/messenger.dtd" >
  28. %messengerDTD;
  29. <!ENTITY % contentAreaCommandsDTD SYSTEM "chrome://communicator/locale/contentAreaCommands.dtd" >
  30. %contentAreaCommandsDTD;
  31. ]>  
  32. <overlay
  33.   xmlns:nc="http://home.netscape.com/NC-rdf#"
  34.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  35.  
  36. <!-- Context menu -->
  37. <script language="javascript">
  38.   // Global variable that holds the nsContextMenu instance.
  39.   var gMessagePaneContextMenu = null;
  40. </script>
  41.  
  42. <script src="chrome://messenger/content/mailCommands.js"/>
  43. <script src="chrome://messenger/content/mailWindowOverlay.js"/>
  44. <script src="chrome://messenger/content/commandglue.js"/>
  45. <script type="application/x-javascript" src="chrome://communicator/content/bookmarks/bookmarksOverlay.js"/>
  46.  
  47. <stringbundleset id="mailStringBundles">
  48.   <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  49.   <stringbundle id="bundle_viewZoom"/>
  50. </stringbundleset>
  51.  
  52. <commandset id="mailFileMenuItems"
  53.             commandupdater="true"
  54.             events="create-menu-file"
  55.             oncommandupdate="goUpdateMailMenuItems(this)">
  56.  
  57.     <command id="cmd_getNewMessages" oncommand="goDoCommand('cmd_getNewMessages')" disabled="true"/>
  58.     <command id="cmd_close" oncommand="goDoCommand('cmd_close')"/>
  59.     <command id="cmd_open" oncommand="goDoCommand('cmd_open')"/>
  60.     
  61.     <command id="cmd_file" disabled="true"/>
  62.  
  63.     <command id="cmd_emptyTrash" oncommand="goDoCommand('cmd_emptyTrash')" disabled="true"/>
  64.     <command id="cmd_compactFolder" oncommand="goDoCommand('cmd_compactFolder')" disabled="true"/>
  65.     <command id="cmd_toggleWorkOffline" oncommand="goDoCommand('cmd_toggleWorkOffline')" />
  66.     <command id="cmd_synchronizeOffline" oncommand="goDoCommand('cmd_synchronizeOffline')" disabled="true"/>
  67.     <command id="cmd_downloadFlagged" oncommand="goDoCommand('cmd_downloadFlagged')" disabled="true"/>
  68.     <command id="cmd_downloadSelected" oncommand="goDoCommand('cmd_downloadSelected')" disabled="true"/>
  69.     <command id="cmd_getMsgsForAuthAccounts" 
  70.              oncommand="goDoCommand('cmd_getMsgsForAuthAccounts'); event.preventBubble()" 
  71.              disabled="true"/>
  72.     
  73.     <command id="cmd_openMessage" oncommand="goDoCommand('cmd_openMessage')" disabled="true"/>
  74.     <command id="cmd_print" oncommand="goDoCommand('cmd_print')" disabled="true"/>
  75.     <command id="cmd_saveAsFile" oncommand="goDoCommand('cmd_saveAsFile')" disabled="true"/>
  76.     <command id="cmd_saveAsTemplate" oncommand="goDoCommand('cmd_saveAsTemplate')" disabled="true"/>    
  77.     <command id="cmd_getNextNMessages" oncommand="goDoCommand('cmd_getNextNMessages')" disabled="true"/>
  78.     <command id="cmd_renameFolder" oncommand="goDoCommand('cmd_renameFolder')" />
  79. </commandset>
  80.  
  81. <commandset id="mailCommands">
  82.   <command id="cmd_newNavigator"/>
  83.   <command id="cmd_newEditor"/>
  84.   <command id="cmd_quit"/>
  85.   <!-- <command id="cmd_pageSetup"/>-->
  86. </commandset>
  87. <commandset id="mailViewMenuItems"
  88.             commandupdater="true"
  89.             events="create-menu-view"
  90.             oncommandupdate="goUpdateMailMenuItems(this)">
  91.  
  92.    <command id="cmd_viewPageSource" oncommand="goDoCommand('cmd_viewPageSource')" disabled="true"/>
  93.    <command id="cmd_setFolderCharset" oncommand="goDoCommand('cmd_setFolderCharset')" />
  94.    <command id="cmd_reload" oncommand="goDoCommand('cmd_reload')" disabled="true"/>
  95.  
  96.    <command id="cmd_expandAllThreads" oncommand="goDoCommand('cmd_expandAllThreads')" disabled="true"/>
  97.    <command id="cmd_collapseAllThreads" oncommand="goDoCommand('cmd_collapseAllThreads')" disabled="true"/>
  98.    <command id="cmd_viewAllMsgs" oncommand="goDoCommand('cmd_viewAllMsgs')" disabled="true"/>
  99.    <command id="cmd_viewUnreadMsgs" oncommand="goDoCommand('cmd_viewUnreadMsgs')" disabled="true"/>
  100.    <command id="cmd_viewThreadsWithUnread" oncommand="goDoCommand('cmd_viewThreadsWithUnread')" disabled="true"/>
  101.    <command id="cmd_viewWatchedThreadsWithUnread" oncommand="goDoCommand('cmd_viewWatchedThreadsWithUnread')" disabled="true"/>
  102.    <command id="cmd_sortByThread" oncommand="goDoCommand('cmd_sortByThread')" disabled="true"/>
  103.  
  104. </commandset>
  105.  
  106. <commandset id="mailEditMenuItems"
  107.             commandupdater="true"
  108.             events="create-menu-edit"
  109.             oncommandupdate="goUpdateMailMenuItems(this)">
  110.  
  111.   <command id="cmd_undo"
  112.          valueDeleteMsg="&undoDeleteMsgCmd.label;"
  113.          valueMoveMsg="&undoMoveMsgCmd.label;"
  114.          valueCopyMsg="&undoCopyMsgCmd.label;"
  115.          valueDefault="&undoDefaultCmd.label;"/>
  116.   <command id="cmd_redo"
  117.          valueDeleteMsg="&redoDeleteMsgCmd.label;"
  118.          valueMoveMsg="&redoMoveMsgCmd.label;"
  119.          valueCopyMsg="&redoCopyMsgCmd.label;"
  120.          valueDefault="&redoDefaultCmd.label;"/>
  121.   <command id="cmd_cut"/>
  122.   <command id="cmd_copy"/>
  123.   <command id="cmd_paste"/>
  124.   <command id="cmd_delete"
  125.          valueFolder="&deleteFolderCmd.label;"
  126.          valueFolderAccessKey="&deleteFolderCmd.accesskey;"
  127.          valueNewsgroup="&unsubscribeNewsgroupCmd.label;"
  128.          valueNewsgroupAccessKey="&unsubscribeNewsgroupCmd.accesskey;"
  129.          valueMessage="&deleteMsgCmd.label;"
  130.          valueMessageAccessKey="&deleteMsgCmd.accesskey;"
  131.          valueNewsMessage="&cancelNewsMsgCmd.label;"
  132.          valueNewsMessageAccessKey="&cancelNewsMsgCmd.accesskey;"
  133.          valueMessages="&deleteMsgsCmd.label;"
  134.          valueMessagesAccessKey="&deleteMsgsCmd.accesskey;"/>
  135.   <command id="cmd_editDraft" oncommand="goDoCommand('cmd_editDraft')" disabled="true"/>
  136.   <command id="cmd_selectAll"/>
  137.   <command id="cmd_selectThread" oncommand="goDoCommand('cmd_selectThread')"/>
  138.   <command id="cmd_selectFlagged" oncommand="goDoCommand('cmd_selectFlagged')"/>
  139. </commandset>
  140.  
  141. <commandset id="mailEditContextMenuItems">
  142.   <command id="cmd_copyLink"/>
  143.   <command id="cmd_copyImageLocation"/>
  144.   <command id="cmd_copyImageContents"/>
  145. </commandset>
  146.  
  147. <commandset id="mailSearchMenuItems"
  148.             commandupdater="true"
  149.             events="create-menu-search"
  150.             oncommandupdate="goUpdateMailMenuItems(this)">
  151.   <command id="cmd_find" oncommand="goDoCommand('cmd_find')" disabled="true"/>
  152.   <command id="cmd_findAgain" oncommand="goDoCommand('cmd_findAgain')" disabled="true"/>
  153. </commandset>
  154.  
  155. <commandset id="mailGoMenuItems"
  156.             commandupdater="true"
  157.             events="create-menu-go"
  158.             oncommandupdate="goUpdateMailMenuItems(this)">
  159.  
  160.   <command id="cmd_nextMsg" oncommand="goDoCommand('cmd_nextMsg')" disabled="true"/>
  161.   <command id="cmd_nextUnreadMsg" oncommand="goDoCommand('cmd_nextUnreadMsg')" disabled="true"/>
  162.   <command id="cmd_nextFlaggedMsg" oncommand="goDoCommand('cmd_nextFlaggedMsg')" disabled="true"/>
  163.   <command id="cmd_nextUnreadThread" oncommand="goDoCommand('cmd_nextUnreadThread')" disabled="true"/>
  164.   <command id="cmd_previousMsg" oncommand="goDoCommand('cmd_previousMsg')" disabled="true"/>
  165.   <command id="cmd_previousUnreadMsg" oncommand="goDoCommand('cmd_previousUnreadMsg')" disabled="true"/>
  166.   <command id="cmd_previousFlaggedMsg" oncommand="goDoCommand('cmd_previousFlaggedMsg')" disabled="true"/>
  167. </commandset>
  168.  
  169. <commandset id="mailMessageMenuItems"
  170.             commandupdater="true"
  171.             events="create-menu-message"
  172.             oncommandupdate="goUpdateMailMenuItems(this)">
  173.   <command id="cmd_reply" oncommand="goDoCommand('cmd_reply')"/>
  174.   <command id="cmd_replySender" oncommand="goDoCommand('cmd_replySender')"/>
  175.   <command id="cmd_replyGroup" oncommand="goDoCommand('cmd_replyGroup')"/>
  176.   <command id="cmd_replyall" oncommand="goDoCommand('cmd_replyall')"/>
  177.   <command id="cmd_forward" oncommand="goDoCommand('cmd_forward')"/>
  178.   <command id="cmd_forwardInline" oncommand="goDoCommand('cmd_forwardInline')"/>
  179.   <command id="cmd_forwardAttachment" oncommand="goDoCommand('cmd_forwardAttachment')"/>
  180.   <command id="cmd_editAsNew" oncommand="goDoCommand('cmd_editAsNew')"/>
  181.   
  182.   <command id="cmd_markAsRead" oncommand="goDoCommand('cmd_markAsRead'); event.preventBubble()" disabled="true"/>
  183.   <command id="cmd_markAllRead" oncommand="goDoCommand('cmd_markAllRead'); event.preventBubble()" disabled="true"/>
  184.   <command id="cmd_markThreadAsRead" oncommand="goDoCommand('cmd_markThreadAsRead'); event.preventBubble()" disabled="true"/>
  185.   <command id="cmd_markAsFlagged" oncommand="goDoCommand('cmd_markAsFlagged'); event.preventBubble()" disabled="true"/>
  186.   <command id="cmd_killThread" oncommand="goDoCommand('cmd_killThread')"/>
  187.   <command id="cmd_watchThread" oncommand="goDoCommand('cmd_watchThread')"/>
  188.  
  189. </commandset>
  190.  
  191. <commandset id="mailToolbarItems"
  192.             commandupdater="true"
  193.             events="mail-toolbar"
  194.             oncommandupdate="goUpdateMailMenuItems(this)">
  195.   
  196.   <command id="button_reply"/>
  197.   <command id="button_replyall"/>
  198.   <command id="button_forward"/>
  199.   <command id="button_delete"/>
  200.   <command id="button_mark"/>
  201.   <command id="button_getNewMessages"/>
  202.   <command id="button_print"/>
  203.   <command id="button_next"/>
  204.   <command id="button_file"/>
  205. </commandset>
  206.  
  207. <broadcasterset id="mailBroadcasters">
  208.   <!-- File Menu -->
  209.   <broadcaster id="Communicator:WorkMode"/>
  210.   <!-- Edit Menu -->
  211. </broadcasterset>
  212.  
  213. <keyset id="mailKeys">
  214.     <key id="space" key=" " oncommand="SpaceHit()"/>
  215.  
  216.     <!-- File Menu -->
  217.     <key id="key_newNavigator"/>
  218.     <key id="key_close"/>
  219.     <key id="key_quit"/>
  220.     <!-- Edit Menu -->
  221.     <key id="key_undo"/>
  222.     <key id="key_redo"/>
  223.     <key id="key_cut"/>
  224.     <key id="key_copy"/>
  225.     <key id="key_paste"/>
  226.     <key id="key_delete" oncommand="goDoCommand('cmd_delete');" shift="false"/>
  227.     <key id="cmd_shiftDelete" oncommand="goDoCommand('cmd_shiftDelete')"/>
  228.     <key id="key_selectAll"/>
  229.     <key id="key_selectThread" key="&selectThreadCmd.key;"             oncommand="goDoCommand('cmd_selectThread');" modifiers="accel, shift"/>
  230.     
  231.     <key id="key_toggleRead" key="&markAsReadCmd.key;"               oncommand="goDoCommand('cmd_markAsRead');"/>
  232.     <key id="key_markAllRead" key="&markAllReadCmd.key;"             oncommand="goDoCommand('cmd_markAllRead');" modifiers="accel, shift"/>
  233.     <key id="key_nextMsg" key="&nextMsgCmd.key;"                     oncommand="goDoCommand('cmd_nextMsg')"/>
  234.     <key id="key_nextUnreadMsg" key="&nextUnreadMsgCmd.key;"         oncommand="goDoCommand('cmd_nextUnreadMsg')"/>
  235.     <key id="key_expandAllThreads" key="&expandAllThreadsCmd.key;"   oncommand="goDoCommand('cmd_expandAllThreads')"/>
  236.     <key id="key_collapseAllThreads" key="&collapseAllThreadsCmd.key;" oncommand="goDoCommand('cmd_collapseAllThreads')"/>
  237.     <key id="key_nextUnreadThread" key="&nextUnreadThreadCmd.key;"   oncommand="goDoCommand('cmd_nextUnreadThread')"/>
  238.     <key id="key_previousMsg" key="&previousMsgCmd.key;"             oncommand="goDoCommand('cmd_previousMsg')"/>
  239.     <key id="key_previousUnreadMsg" key="&previousUnreadMsgCmd.key;" oncommand="goDoCommand('cmd_previousUnreadMsg')"/>
  240.     <key id="key_reply" key="&replyMsgCmd.key;"                      oncommand="goDoCommand('cmd_reply')" modifiers="accel"/>
  241.     <key id="key_replyall" key="&replyToAllMsgCmd.key;"              oncommand="goDoCommand('cmd_replyall')" modifiers="accel, shift"/>
  242.     <key id="key_forward" key="&forwardMsgCmd.key;"                  oncommand="goDoCommand('cmd_forward')" modifiers="accel"/>
  243.   <key id="key_editAsNew" key="&editMsgAsNewCmd.key;"              oncommand="goDoCommand('cmd_editAsNew')" modifiers="accel"/>
  244.   <key id="key_watchThread" key="&watchThreadMenu.key;"            oncommand="goDoCommand('cmd_watchThread')" />
  245.   <key id="key_killThread" key="&killThreadMenu.key;"              oncommand="goDoCommand('cmd_killThread')" />
  246.   <key id="key_openMessage" key="&openMessageWindowCmd.key;"       oncommand="goDoCommand('cmd_openMessage')" modifiers="accel"/>
  247.   <key id="key_print" key="&printCmd.key;"                         oncommand="goDoCommand('cmd_print')" modifiers="accel"/>
  248.   <key id="key_saveAsFile" key="&saveAsFileCmd.key;"               oncommand="goDoCommand('cmd_saveAsFile')" modifiers="accel"/>
  249.   <key id="key_viewPageSource" key="&pageSourceCmd.key;"           oncommand="goDoCommand('cmd_viewPageSource')" modifiers="accel"/>
  250.   <key id="key_getNewMessages" key="&getNewMsgCmd.key;"            oncommand="goDoCommand('cmd_getNewMessages')" modifiers="accel"/>
  251.         <key id="key_getAllNewMessages" 
  252.              key="&getAllNewMsgCmd.key;"  
  253.              oncommand="goDoCommand('cmd_getMsgsForAuthAccounts');"
  254.              modifiers="accel, shift"/>
  255.   <key id="key_find" key="&findCmd.key;"  oncommand="goDoCommand('cmd_find')" modifiers="accel"/>
  256.   <key id="key_findAgain" key="&findAgainCmd.key;"   oncommand="goDoCommand('cmd_findAgain')" modifiers="accel"/>
  257.   <keyset id="viewZoomKeys"/>
  258.   <!-- Tab Keys -->
  259.         <key id="tabpaneCounterClockwise" keycode="VK_TAB" oncommand="SwitchPaneFocus('counter-clockwise');"
  260.              modifiers="shift"/>
  261.         <key id="tabpaneClockwise" keycode="VK_TAB" oncommand="SwitchPaneFocus('clockwise');"/>
  262.  
  263.  
  264. </keyset>
  265.  
  266.   <popup id="threadPaneContext" oncreate="return fillThreadPaneContextMenu();" >
  267.     <menuitem id="threadPaneContext-openNewWindow"
  268.         label="&contextOpenNewWindow.label;"
  269.         accesskey="&contextOpenNewWindow.accesskey;"
  270.         oncommand="MsgOpenNewWindowForMessage();"/>
  271.     <menuseparator id="threadPaneContext-sep-open"/>
  272.     <menuitem id="threadPaneContext-replySender"
  273.         label="&contextReplySender.label;"
  274.         accesskey="&contextReplySender.accesskey;"
  275.         oncommand="MsgReplySender(event);"/>
  276.     <menuitem id="threadPaneContext-replyNewsgroup"
  277.         label="&contextReplyNewsgroup.label;"
  278.         accesskey="&contextReplyNewsgroup.accesskey;"
  279.         oncommand="MsgReplyGroup(event);"/>
  280.     <menuitem id="threadPaneContext-replyAll"
  281.         label="&contextReplyAll.label;"
  282.         accesskey="&contextReplyAll.accesskey;"
  283.         oncommand="MsgReplyToAllMessage(event);"/>
  284.     <menuitem id="threadPaneContext-forward"
  285.         label="&contextForward.label;"
  286.         accesskey="&contextForward.accesskey;"
  287.         oncommand="MsgForwardMessage(event);"/>
  288.     <menuitem id="threadPaneContext-forwardAsAttachment"
  289.         label="&contextForwardAsAttachment.label;"
  290.         accesskey="&contextForwardAsAttachment.accesskey;"
  291.         oncommand="MsgForwardAsAttachment(event);"/>
  292.     <menuitem id="threadPaneContext-editAsNew"
  293.         label="&contextEditAsNew.label;"
  294.         accesskey="&contextEditAsNew.accesskey;"
  295.         oncommand="MsgEditMessageAsNew();"/>
  296.     <menuseparator id="threadPaneContext-sep-reply"/>
  297.     <menu id="threadPaneContext-moveMenu"
  298.         label="&contextMoveMsgMenu.label;"
  299.         accesskey="&contextMoveMsgMenu.accesskey;"
  300.         datasources="rdf:null"
  301.         ignore="http://home.netscape.com/NC-rdf#MessageChild">
  302.       <menupopup/>
  303.       <template> 
  304.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  305.           <menupopup>
  306.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  307.               <menupopup>
  308.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  309.                 <menuseparator/>
  310.               </menupopup>
  311.             </menu>
  312.           </menupopup>
  313.         </rule> 
  314.         <rule nc:NoSelect="true">
  315.           <menupopup>
  316.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  317.           </menupopup>
  318.         </rule>
  319.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  320.           <menupopup>
  321.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  322.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  323.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  324.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  325.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  326.               <menupopup>
  327.                 <menuitem label="&fileHereMenu.label;" 
  328.                   oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  329.                 <menuseparator/>
  330.               </menupopup>
  331.             </menu>
  332.           </menupopup>
  333.         </rule>
  334.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  335.           <!-- don't show nntp servers in the file and copies menus -->
  336.         </rule>
  337.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  338.           <!-- note, there is no "file here" -->
  339.           <menupopup>
  340.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  341.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  342.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  343.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  344.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  345.               <menupopup/>
  346.             </menu>
  347.           </menupopup>
  348.         </rule>
  349.         <rule nc:CanFileMessages="true">
  350.           <menupopup>
  351.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  352.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  353.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  354.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  355.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  356.           </menupopup>
  357.         </rule>
  358.       </template>
  359.     </menu>
  360.     <menu id="threadPaneContext-copyMenu"
  361.       label="&contextCopyMsgMenu.label;"
  362.       accesskey="&contextCopyMsgMenu.accesskey;"
  363.       datasources="rdf:null" 
  364.       ignore="http://home.netscape.com/NC-rdf#MessageChild">
  365.       <menupopup/>
  366.       <template>
  367.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  368.           <menupopup>
  369.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  370.               <menupopup>
  371.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  372.                 <menuseparator/>
  373.               </menupopup>
  374.             </menu>
  375.           </menupopup>
  376.         </rule> 
  377.         <rule nc:NoSelect="true">
  378.           <menupopup>
  379.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  380.           </menupopup>
  381.         </rule>
  382.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  383.           <menupopup>
  384.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  385.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  386.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  387.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  388.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  389.               <menupopup>
  390.                 <menuitem label="&fileHereMenu.label;" 
  391.                   oncommand="MsgCopyMessage(event.target.parentNode.parentNode)"/>
  392.                 <menuseparator/>
  393.               </menupopup>
  394.             </menu>
  395.           </menupopup>
  396.         </rule>
  397.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  398.           <!-- don't show nntp servers in the file and copies menus -->
  399.         </rule>
  400.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  401.           <!-- note, there is no "file here" -->
  402.           <menupopup>
  403.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  404.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  405.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  406.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  407.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  408.               <menupopup/>
  409.             </menu>
  410.           </menupopup>
  411.         </rule>
  412.         <rule nc:CanFileMessages="true">
  413.           <menupopup>
  414.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" 
  415.               oncommand="MsgCopyMessage(event.target)" 
  416.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  417.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  418.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  419.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  420.           </menupopup>
  421.         </rule>
  422.       </template>
  423.     </menu>
  424.     <menuitem id="threadPaneContext-saveAs"
  425.         label="&contextSaveAs.label;"
  426.         accesskey="&contextSaveAs.accesskey;"
  427.         oncommand="MsgSaveAsFile();"/>
  428.     <menuitem id="threadPaneContext-print"
  429.         label="&contextPrint.label;"
  430.         accesskey="&contextPrint.accesskey;"
  431.         oncommand="PrintEnginePrint();"/>
  432.     <menuitem id="threadPaneContext-delete"
  433.         label="&contextDelete.label;"
  434.         accesskey="&contextDelete.accesskey;"
  435.         oncommand="MsgDeleteMessage(false, false);"/>
  436.   </popup>
  437.  
  438.     <popup id="folderPaneContext" oncreate="return fillFolderPaneContextMenu();" >
  439.         <menuitem id="folderPaneContext-openNewWindow"
  440.         label="&folderContextOpenNewWindow.label;"
  441.         accesskey="&folderContextOpenNewWindow.accesskey;"
  442.         oncommand="MsgOpenNewWindowForFolder(null);"/>
  443.     <menuitem id="folderPaneContext-subscribe"
  444.         label="&folderContextSubscribe.label;"
  445.         accesskey="&folderContextSubscribe.accesskey;"
  446.         oncommand="MsgSubscribe();"/>
  447.     <menuitem id="folderPaneContext-newsUnsubscribe"
  448.         label="&folderContextUnsubscribe.label;"
  449.         accesskey="&folderContextUnsubscribe.accesskey;"
  450.         oncommand="MsgUnsubscribe();"/>
  451.     <menuitem id="folderPaneContext-getMessages"
  452.         label="&folderContextGetMessages.label;"
  453.         accesskey="&folderContextGetMessages.accesskey;"
  454.         oncommand="MsgGetMessage();"/>
  455.     <menuitem id="folderPaneContext-markAllRead"
  456.         label="&folderContextMarkNewsgroupRead.label;"
  457.         accesskey="&folderContextMarkNewsgroupRead.accesskey;"
  458.         oncommand="MsgMarkAllRead();"/>
  459.     <menuitem id="folderPaneContext-new"
  460.         label="&folderContextNew.label;"
  461.         accesskey="&folderContextNew.accesskey;"
  462.         oncommand="MsgNewFolder(NewFolder);"/>
  463.     <menuitem id="folderPaneContext-rename"
  464.         label="&folderContextRename.label;"
  465.         accesskey="&folderContextRename.accesskey;"
  466.         oncommand="MsgRenameFolder();"/>
  467.         <menuitem id="folderPaneContext-compact"
  468.               label="&folderContextCompact.label;"
  469.               accesskey="&folderContextCompact.accesskey;"
  470.         oncommand="MsgCompactFolder(false);"/>          //for one folder only
  471.     <menuitem id="folderPaneContext-remove"
  472.         label="&folderContextRemove.label;"
  473.         accesskey="&folderContextRemove.accesskey;"
  474.         oncommand="MsgDeleteFolder();"/>
  475.     <menuitem id="folderPaneContext-emptyTrash"
  476.         label="&folderContextEmptyTrash.label;"
  477.         accesskey="&folderContextEmptyTrash.accesskey;"
  478.         oncommand="MsgEmptyTrash();"/>
  479.     <menuitem id="folderPaneContext-sendUnsentMessages"
  480.         label="&folderContextSendUnsentMessages.label;"
  481.         accesskey="&folderContextSendUnsentMessages.accesskey;"
  482.         oncommand="MsgSendUnsentMsg();"/>
  483.     <menuseparator id="folderPaneContext-sep-edit"/>
  484.     <menuitem id="folderPaneContext-searchMessages"
  485.         label="&folderContextSearchMessages.label;"
  486.         accesskey="&folderContextSearchMessages.accesskey;"
  487.         oncommand="MsgSearchMessages();"/>
  488.     <menuitem id="folderPaneContext-properties"
  489.         label="&folderContextProperties.label;"
  490.         accesskey="&folderContextProperties.accesskey;"
  491.         oncommand="MsgFolderProperties();"/>
  492.   </popup>
  493.  
  494.   <popup id="messagePaneContext"   
  495.      oncreate="gMessagePaneContextMenu = new nsContextMenu(this); return fillMessagePaneContextMenu(gMessagePaneContextMenu);"
  496.      ondestroy="gMessagePaneContextMenu.onDestroy(); gMessagePaneContextMenu = null;">
  497.         <menuitem id="context-openlink"
  498.                   label="&openLinkCmd.label;"
  499.                   accesskey="&openLinkCmd.accesskey;"
  500.                   oncommand="gMessagePaneContextMenu.openLink();"/>
  501.         <menuitem id="context-editlink"
  502.                   label="&editLinkCmd.label;"
  503.                   accesskey="&editLinkCmd.accesskey;"
  504.                   oncommand="gMessagePaneContextMenu.editLink();"/>
  505.         <menuseparator id="messagePaneContext-sep-link"/>
  506.         <menuitem id="context-selectall"
  507.                   label="&selectAllCmd.label;"
  508.                   accesskey="&selectAllCmd.accesskey;"
  509.                   observes="cmd_selectAll"/>
  510.         <menuitem id="context-copy"
  511.                   label="©Cmd.label;"
  512.                   accesskey="©Cmd.accesskey;"
  513.                   observes="cmd_copy"/>
  514.     <menuseparator id="messagePaneContext-sep-open"/>
  515.     <menuitem id="messagePaneContext-replySender"
  516.         label="&contextReplySender.label;"
  517.         accesskey="&contextReplySender.accesskey;"
  518.         oncommand="MsgReplySender(event);"/>
  519.     <menuitem id="messagePaneContext-replyNewsgroup"
  520.         label="&contextReplyNewsgroup.label;"
  521.         accesskey="&contextReplyNewsgroup.accesskey;"
  522.         oncommand="MsgReplyMessage(event);"/>
  523.     <menuitem id="messagePaneContext-replyAll"
  524.         label="&contextReplyAll.label;"
  525.         accesskey="&contextReplyAll.accesskey;"
  526.         oncommand="MsgReplyToAllMessage(event);"/>
  527.     <menuitem id="messagePaneContext-forward"
  528.         label="&contextForward.label;"
  529.         accesskey="&contextForward.accesskey;"
  530.         oncommand="MsgForwardMessage(event);"/>
  531.     <menuitem id="messagePaneContext-editAsNew"
  532.         label="&contextEditAsNew.label;"
  533.         accesskey="&contextEditAsNew.accesskey;"
  534.         oncommand="MsgEditMessageAsNew();"/>
  535.     <menuseparator id="messagePaneContext-sep-reply"/>
  536.     <menu id="messagePaneContext-moveMenu"
  537.         label="&contextMoveMsgMenu.label;"
  538.         accesskey="&contextMoveMsgMenu.accesskey;"
  539.         datasources="rdf:null"
  540.         ignore="http://home.netscape.com/NC-rdf#MessageChild">
  541.       <menupopup/>
  542.       <template> 
  543.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  544.           <menupopup>
  545.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  546.               <menupopup>
  547.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  548.                 <menuseparator/>
  549.               </menupopup>
  550.             </menu>
  551.           </menupopup>
  552.         </rule> 
  553.         <rule nc:NoSelect="true">
  554.           <menupopup>
  555.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  556.           </menupopup>
  557.         </rule>
  558.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  559.           <menupopup>
  560.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  561.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  562.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  563.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  564.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  565.               <menupopup>
  566.                 <menuitem label="&fileHereMenu.label;" 
  567.                   oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  568.                 <menuseparator/>
  569.               </menupopup>
  570.             </menu>
  571.           </menupopup>
  572.         </rule>
  573.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  574.           <!-- don't show nntp servers in the file and copies menus -->
  575.         </rule>
  576.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  577.           <!-- note, there is no "file here" -->
  578.           <menupopup>
  579.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  580.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  581.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  582.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  583.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  584.               <menupopup/>
  585.             </menu>
  586.           </menupopup>
  587.         </rule>
  588.         <rule nc:CanFileMessages="true">
  589.           <menupopup>
  590.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  591.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  592.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  593.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  594.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  595.           </menupopup>
  596.         </rule>
  597.       </template>
  598.     </menu>
  599.     <menu id="messagePaneContext-copyMenu"
  600.       label="&contextCopyMsgMenu.label;"
  601.       accesskey="&contextCopyMsgMenu.accesskey;"
  602.       datasources="rdf:null" 
  603.       ignore="http://home.netscape.com/NC-rdf#MessageChild">
  604.       <menupopup/>
  605.       <template>
  606.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  607.           <menupopup>
  608.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  609.               <menupopup>
  610.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  611.                 <menuseparator/>
  612.               </menupopup>
  613.             </menu>
  614.           </menupopup>
  615.         </rule> 
  616.         <rule nc:NoSelect="true">
  617.           <menupopup>
  618.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  619.           </menupopup>
  620.         </rule>
  621.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  622.           <menupopup>
  623.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  624.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  625.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  626.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  627.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  628.               <menupopup>
  629.                 <menuitem label="&fileHereMenu.label;" 
  630.                   oncommand="MsgCopyMessage(event.target.parentNode.parentNode)"/>
  631.                 <menuseparator/>
  632.               </menupopup>
  633.             </menu>
  634.           </menupopup>
  635.         </rule>
  636.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  637.           <!-- don't show nntp servers in the file and copies menus -->
  638.         </rule>
  639.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  640.           <!-- note, there is no "file here" -->
  641.           <menupopup>
  642.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  643.                   SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  644.                   BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  645.                   IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  646.                   ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  647.               <menupopup/>
  648.             </menu>
  649.           </menupopup>
  650.         </rule>
  651.         <rule nc:CanFileMessages="true">
  652.           <menupopup>
  653.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" 
  654.               oncommand="MsgCopyMessage(event.target)" 
  655.               SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  656.               BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  657.               IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  658.               ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  659.           </menupopup>
  660.         </rule>
  661.       </template>
  662.     </menu>
  663.     <menuitem id="messagePaneContext-saveAs"
  664.         label="&contextSaveAs.label;"
  665.         accesskey="&contextSaveAs.accesskey;"
  666.         oncommand="MsgSaveAsFile();"/>
  667.     <menuitem id="messagePaneContext-print"
  668.         label="&contextPrint.label;"
  669.         accesskey="&contextPrint.accesskey;"
  670.         oncommand="PrintEnginePrint();"/>
  671.     <menuitem id="messagePaneContext-delete"
  672.         oncommand="MsgDeleteMessage(false, false);"/>
  673.     <menuseparator id="messagePaneContext-sep-edit"/>
  674.         <menuitem id="context-viewimage"
  675.                   label="&viewImageCmd.label;"
  676.                   accesskey="&viewImageCmd.accesskey;"
  677.                   oncommand="gMessagePaneContextMenu.viewImage();"/>
  678.         <menuseparator id="messagePaneContext-sep-image"/>
  679.         <menuitem id="context-copylink"
  680.                   label="©LinkCmd.label;"
  681.                   accesskey="©LinkCmd.accesskey;"
  682.                   command="cmd_copyLink"/>
  683.         <menuitem id="context-copyimage"
  684.                   label="©ImageCmd.label;"
  685.                   accesskey="©ImageCmd.accesskey;"
  686.                   command="cmd_copyImageLocation"/>
  687.         <menuseparator id="messagePaneContext-sep-copy"/>
  688.         <menuitem id="context-savelink"
  689.                   label="&saveLinkCmd.label;"
  690.                   accesskey="&saveLinkCmd.accesskey;"
  691.                   oncommand="gMessagePaneContextMenu.saveLink();"/>
  692.         <menuitem id="context-saveimage"
  693.                   accesskey="&saveImageCmd.accesskey;"
  694.                   oncommand="gMessagePaneContextMenu.saveImage();"/>
  695.         <menuitem id="context-bookmarklink"
  696.                   label="&bookmarkLinkCmd.label;"
  697.                   accesskey="&bookmarkLinkCmd.accesskey;"
  698.                   oncommand="BookmarksUtils.addBookmark(gMessagePaneContextMenu.linkURL(),
  699.                                                         gMessagePaneContextMenu.linkText());"/>
  700.  
  701. </popup>
  702.  
  703. <menubar id="mailMenubar">
  704.   <menu id="menu_File" >
  705.     <menupopup id="menu_FilePopup" oncreate="file_init();">
  706.       <menuitem label="&newMsgCmd.label;"
  707.       accesskey="&newMsgCmd.accesskey;"
  708.       key="key_newMessage"
  709.       oncommand="MsgNewMessage(event);"/>
  710.       <menu id="menu_New">
  711.         <menupopup id="menu_NewPopup">
  712.           <menuitem label="&newFolderCmd.label;"
  713.                      oncommand="MsgNewFolder(NewFolder);"
  714.                      accesskey="&newFolderCmd.accesskey;"/>
  715.           <menuitem label="&newAccountCmd.label;"
  716.                      accesskey="&newAccountCmd.accesskey;"
  717.                      oncommand="MsgAccountWizard();"/>
  718.           <menuseparator/>
  719.           <menuitem id="menu_newNavigator"/>
  720.           <menuitem id="menu_newEditor"/>
  721.         </menupopup>
  722.       </menu>
  723.       <menuitem id="openMessageWindowMenuitem" label="&openMessageWindowCmd.label;"
  724.         observes="cmd_openMessage"
  725.         accesskey="&openMessageWindowCmd.accesskey;"
  726.         key="key_openMessage"/>
  727.       <menu id="fileAttachmentMenu" label="&openAttachmentCmd.label;"/>
  728.       <menuseparator/>
  729.       <menuitem id="menu_close"/>
  730.       <menu label="&saveAsMenu.label;" accesskey="&saveAsMenu.accesskey;">
  731.         <menupopup>
  732.           <menuitem label="&saveAsFileCmd.label;"
  733.            accesskey="&saveAsFileCmd.accesskey;"
  734.            key="key_saveAsFile"
  735.            observes="cmd_saveAsFile"/>
  736.           <menuitem label="&saveAsTemplateCmd.label;"
  737.            accesskey="&saveAsTemplateCmd.accesskey;"
  738.            observes="cmd_saveAsTemplate"/>
  739.         </menupopup>
  740.       </menu>
  741.       <menuseparator/>
  742.       <menuitem label="&getNewMsgCmd.label;"
  743.        accesskey="&getNewMsgCmd.accesskey;"
  744.        key="key_getNewMessages"
  745.        observes="cmd_getNewMessages"/>
  746.                         <menu label="&getNewMsgForCmd.label;" 
  747.                               accesskey="&getNewMsgForCmd.accesskey;"
  748.                               datasources="rdf:msgaccountmanager"
  749.                               containment="http://home.netscape.com/NC-rdf#child"
  750.                               ref="msgaccounts:/"
  751.                               observes="cmd_getNewMessages">
  752.                             <menupopup>
  753.                                 <menuitem label="&getAllNewMsgCmd.label;" 
  754.                                           key="key_getAllNewMessages"
  755.                                           observes="cmd_getMsgsForAuthAccounts"/>
  756.                                 <menuseparator/>
  757.                             </menupopup>
  758.                             <template>
  759.                                 <rule nc:CanGetMessages="true">
  760.                                     <menupopup>
  761.                                         <menuitem uri="..." 
  762.                                                   value="..." 
  763.                                                   label="rdf:http://home.netscape.com/NC-rdf#Name" 
  764.                                                   oncommand="MsgGetMessagesForAccount(event)"/>
  765.                                     </menupopup>
  766.                                 </rule>
  767.                             </template>
  768.                             <menupopup/>
  769.                         </menu>
  770.       <menuitem id="menu_getnextnmsg" label="&getNextNMsgCmd.label;"
  771.        observes="cmd_getNextNMessages"/>
  772.       <menuitem label="&sendUnsentCmd.label;"
  773.        accesskey="&sendUnsentCmd.accesskey;"
  774.        oncommand="MsgSendUnsentMsg();"/>
  775.       <menuitem label="&subscribeCmd.label;"
  776.        accesskey="&subscribeCmd.accesskey;"
  777.        oncommand="MsgSubscribe();"/>
  778.        <menuseparator/>
  779.       <menuitem id="menu_renameFolder" label="&renameFolder.label;"
  780.              accesskey="&renameFolder.accesskey;"
  781.              observes="cmd_renameFolder"/>
  782.       <menuitem id="menu_emptyTrash" label="&emptyTrashCmd.label;"
  783.              accesskey="&emptyTrashCmd.accesskey;"
  784.              observes="cmd_emptyTrash"/>
  785.             <menuitem id="menu_compactFolder" label="&compactFolders.label;" accesskey="&compactFolder.accesskey;" observes="cmd_compactFolder"/>
  786.       <menuseparator id="trashMenuSeparator"/>
  787.       <menuitem label="&importCmd.label;" accesskey="&importCmd.accesskey;" oncommand="toImport();"/>
  788.       <menuseparator/>
  789.       <menu label="&offlineMenu.label;" accesskey="&offlineMenu.accesskey;">
  790.         <menupopup>
  791.           <menuitem label="&workOfflineCmd.label;"
  792.            accesskey="&workOfflineCmd.accesskey;"
  793.            observes="cmd_toggleWorkOffline"/>
  794.           <menuitem label="&synchronizeOfflineCmd.label;" 
  795.            accesskey="&synchronizeOfflineCmd.accesskey;"
  796.            observes="cmd_synchronizeOffline"/>
  797.           <menuitem label="&downloadFlaggedCmd.label;"
  798.            accesskey="&downloadFlaggedCmd.accesskey;"
  799.            observes="cmd_downloadFlagged"/>
  800.           <menuitem label="&downloadSelectedCmd.label;"
  801.            accesskey="&downloadSelectedCmd.accesskey;"
  802.            observes="cmd_downloadSelected"/>
  803.         </menupopup>
  804.       </menu>
  805.       <menuseparator/>
  806.       <menuitem id="printMenuItem" key="key_print" label="&printCmd.label;" accesskey="&printCmd.accesskey;" observes="cmd_print"/>
  807.       <menuseparator/>
  808.     </menupopup>
  809.   </menu>
  810.  
  811.   <menu id="menu_Edit" oncommand="CommandUpdate_UndoRedo();">
  812.     <menupopup oncreate="InitEditMessagesMenu()">
  813.       <menuitem id="menu_undo" label="&undoDefaultCmd.label;" accesskey="&undoDefaultCmd.accesskey;" key="key_undo" observes="cmd_undo" oncommand="Undo()"/>
  814.       <menuitem id="menu_redo" label="&redoDefaultCmd.label;" accesskey="&redoDefaultCmd.accesskey;" key="key_redo" observes="cmd_redo" oncommand="Redo()"/>
  815.       <menuseparator/>
  816.       <menuitem id="menu_cut"/>
  817.       <menuitem id="menu_copy"/>
  818.       <menuitem id="menu_paste"/>
  819.       <menuitem id="menu_delete" observes="cmd_delete"/>
  820.       <menuitem label="&editDraftCmd.label;" 
  821.             accesskey="&editDraftCmd.accesskey;" 
  822.             observes="cmd_editDraft"/>
  823.       <menuseparator/>
  824.       <menuitem id="menu_selectAll"/>
  825.       <menu label="&selectMenu.label;" accesskey="&selectMenu.accesskey;">
  826.         <menupopup>
  827.           <menuitem label="&selectThreadCmd.label;"
  828.            accesskey="&selectThreadCmd.accesskey;"
  829.            key="key_selectThread"
  830.            observes="cmd_selectThread"/>
  831.           <menuitem label="&selectFlaggedCmd.label;"
  832.            accesskey="&selectFlaggedCmd.accesskey;"
  833.            observes="cmd_selectFlagged"/>
  834.         </menupopup>
  835.       </menu>
  836.       <menuseparator/>
  837.       <menuitem label="&filtersCmd.label;"
  838.                       accesskey="&filtersCmd.accesskey;"
  839.                       oncommand="MsgFilters();"/>
  840.             <menuitem label="&folderPropsCmd.label;"
  841.                       accesskey="&folderPropsCmd.accesskey;"
  842.                       oncommand="MsgFolderProperties();"/>
  843.       <menuseparator/>
  844.       <menuitem label="&accountManagerCmd.label;" accesskey="&accountManagerCmd.accesskey;" oncommand="MsgAccountManager();"/>
  845.       <menuitem id="menu_preferences" oncommand="goPreferences('messenger.xul', 'chrome://messenger/content/pref-mailnews.xul','mailnews')"/>
  846.     </menupopup>
  847.   </menu>
  848.  
  849.   <menu id="menu_View">
  850.     <menupopup id="menu_View_Popup" oncreate="view_init()">
  851.       <menu id="menu_Toolbars">
  852.         <menupopup>
  853.           <menuitem id="menu_showMessengerToolbar"
  854.            type="checkbox"
  855.            label="&showMessengerToolbarCmd.label;"
  856.            accesskey="&showMessengerToolbarCmd.accesskey;"
  857.            oncommand="goToggleToolbar('msgToolbar', 'menu_showMessengerToolbar')"
  858.            checked="true"/>
  859.           <menuitem type="checkbox" id="menu_showTaskbar"/>
  860.         </menupopup>
  861.       </menu>
  862.       <menuitem id="menu_showMessage"
  863.        type="checkbox"
  864.        label="&showMessageCmd.label;"
  865.        accesskey="&showMessageCmd.accesskey;"
  866.        oncommand="MsgToggleMessagePane();"/>
  867.       <menuseparator/>
  868.       <menu id="viewSortMenu" accesskey="&sortMenu.accesskey;" label="&sortMenu.label;">
  869.         <menupopup oncreate="InitViewSortByMenu()">
  870.           <menuitem id="sortByDateMenuitem" type="checkbox" label="&sortByDateCmd.label;" accesskey="&sortByDateCmd.accesskey;" oncommand="MsgSortByDate()"/>
  871.           <menuitem id="sortByFlagMenuitem" type="checkbox" label="&sortByFlagCmd.label;" accesskey="&sortByFlagCmd.accesskey;" oncommand="MsgSortByFlagged()"/>
  872.           <menuitem id="sortByOrderReceivedMenuitem" type="checkbox" label="&sortByOrderReceivedCmd.label;"  accesskey="&sortByOrderReceivedCmd.accesskey;" oncommand="MsgSortByOrderReceived()"/>
  873.           <menuitem id="sortByPriorityMenuitem" type="checkbox" label="&sortByPriorityCmd.label;" accesskey="&sortByPriorityCmd.accesskey;" oncommand="MsgSortByPriority()"/>
  874.       <!-- for Sender / Recipient, accesskey and label are set dynamically -->
  875.           <menuitem id="sortBySenderOrRecipientMenuitem" type="checkbox" oncommand="MsgSortBySenderOrRecipient()"/>
  876.           <menuitem id="sortBySizeMenuitem" type="checkbox" label="&sortBySizeCmd.label;" accesskey="&sortBySizeCmd.accesskey;" oncommand="MsgSortBySize()"/>
  877.           <menuitem id="sortByStatusMenuitem" type="checkbox" label="&sortByStatusCmd.label;" accesskey="&sortByStatusCmd.accesskey;" oncommand="MsgSortByStatus()"/>
  878.           <menuitem id="sortBySubjectMenuitem" type="checkbox" label="&sortBySubjectCmd.label;" accesskey="&sortBySubjectCmd.accesskey;" oncommand="MsgSortBySubject()"/>
  879.           <menuitem id="sortByThreadMenuitem" type="checkbox" label="&sortByThreadCmd.label;"  accesskey="&sortByThreadCmd.accesskey;" oncommand="MsgSortByThread()"/>
  880.           <menuitem id="sortByUnreadMenuitem" type="checkbox" label="&sortByUnreadCmd.label;"  accesskey="&sortByUnreadCmd.accesskey;" oncommand="MsgSortByUnread()"/>
  881.           <menuseparator/>
  882.           <menuitem id="sortAscending" type="checkbox" label="&sortAscending.label;" accesskey="&sortAscending.accesskey;" oncommand="MsgSortAscending()"/>
  883.           <menuitem id="sortDescending" type="checkbox" label="&sortDescending.label;" accesskey="&sortDescending.accesskey;" oncommand="MsgSortDescending()"/>
  884.         </menupopup>
  885.       </menu>
  886.       <menu label="&msgsMenu.label;" id="viewMessagesMenu" accesskey="&msgsMenu.accesskey;">
  887.         <menupopup oncreate="InitViewMessagesMenu()">
  888.           <menuitem id="viewAllMessagesMenuItem" type="checkbox" label="&allMsgsCmd.label;" accesskey="&allMsgsCmd.accesskey;" disabled="true" observes="cmd_viewAllMsgs"/>
  889.           <menuitem id="viewUnreadMessagesMenuItem" type="checkbox" label="&unreadMsgsCmd.label;" accesskey="&unreadMsgsCmd.accesskey;" disabled="true" observes="cmd_viewUnreadMsgs"/>
  890.           <menuitem id="viewThreadsWithUnreadMenuItem" type="checkbox" label="&threadsWithUnreadCmd.label;" accesskey="&threadsWithUnreadCmd.accesskey;" disabled="true" observes="cmd_viewThreadsWithUnread"/>
  891.           <menuitem id="viewWatchedThreadsWithUnreadMenuItem" type="checkbox" label="&watchedThreadsWithUnreadCmd.label;" accesskey="&watchedThreadsWithUnreadCmd.accesskey;" disabled="true" observes="cmd_viewWatchedThreadsWithUnread"/>
  892.           <menuseparator/>
  893.           <menuitem id="menu_showThreads"
  894.            type="checkbox"
  895.            label="&threadsMsgsCmd.label;"
  896.            accesskey="&threadsMsgsCmd.accesskey;"
  897.            observes="cmd_sortByThread"/>
  898.           <menuseparator/>
  899.           <menuitem label="&expandAllThreadsCmd.label;" accesskey="&expandAllThreadsCmd.accesskey;" key="key_expandAllThreads" disabled="true" observes="cmd_expandAllThreads"/>
  900.           <menuitem label="&collapseAllThreadsCmd.label;" accesskey="&collapseAllThreadsCmd.accesskey;" key="key_collapseAllThreads" disabled="true" observes="cmd_collapseAllThreads"/>
  901.         </menupopup>
  902.       </menu>
  903.       <menu id="viewheadersmenu" label="&headersMenu.label;" accesskey="&headersMenu.accesskey;">
  904.         <menupopup>
  905.           <menuitem id="viewallheaders"
  906.            type="radio"
  907.            name="viewheadergroup"
  908.            label="&headersAllCmd.label;"
  909.            accesskey="&headersAllCmd.accesskey;"
  910.            oncommand="MsgViewAllHeaders();"/>
  911.           <menuitem id="viewnormalheaders"
  912.            checked="true"
  913.            type="radio"
  914.            name="viewheadergroup"
  915.            label="&headersNormalCmd.label;"
  916.            accesskey="&headersNormalCmd.accesskey;"
  917.            oncommand="MsgViewNormalHeaders();"/>
  918.         </menupopup>
  919.       </menu>
  920.       <menuseparator/>
  921.       <!-- overlayed from viewZoomOverlay.xul -->
  922.       <menu id="menu_textZoom"/>
  923.       <menuseparator><observes element="menu_textZoom" attribute="hidden"/></menuseparator>
  924.       <menuitem label="&reloadCmd.label;" accesskey="&reloadCmd.accesskey;" observes="cmd_reload"/>
  925.       <menuitem id="stopMenuitem" label="&stopCmd.label;" accesskey="&stopCmd.accesskey;" disabled="true" oncommand="MsgStop();"/>
  926.       <menuseparator/>
  927.       <menuitem label="&pageSourceCmd.label;" key="key_viewPageSource" accesskey="&pageSourceCmd.accesskey;" observes="cmd_viewPageSource"/>
  928.       <menuseparator/>
  929.       <menuitem label="&folderCharset.label;" accesskey="&folderCharset.accesskey;" observes="cmd_setFolderCharset"/>
  930.       <menu id = "mailviewCharsetMenu" />
  931.     </menupopup>
  932.   </menu>
  933.   <menu label="&searchMenu.label;" accesskey="&searchMenu.accesskey;">
  934.     <menupopup  oncreate="InitSearchMessagesMenu();">
  935.       <menuitem label="&findCmd.label;" key="key_find" accesskey="&findCmd.accesskey;" observes="cmd_find"/>
  936.       <menuitem label="&findAgainCmd.label;" key="key_findAgain" accesskey="&findAgainCmd.accesskey;" observes="cmd_findAgain"/>
  937.       <menuseparator/>
  938.       <menuitem label="&searchMailCmd.label;" accesskey="&searchMailCmd.accesskey;" oncommand="MsgSearchMessages();"/>
  939.       <menuseparator/>
  940.       <menuitem label="&searchInternetCmd.label;" accesskey="&searchInternetCmd.accesskey;" oncommand="openTopWin(xlateURL('urn:clienturl:srchmenu:srchinternet'));"/>
  941.       <menuitem label="&searchBookmarksCmd.label;" accesskey="&searchBookmarksCmd.accesskey;" oncommand="window.openDialog('chrome://communicator/content/bookmarks/bm-find.xul', 'FindBookmarksWindow', 'dialog=no,close,chrome,resizable');"/>
  942.     </menupopup>
  943.   </menu>
  944.   <menu label="&goMenu.label;" accesskey="&goMenu.accesskey;">
  945.     <menupopup  oncreate="InitGoMessagesMenu();">
  946.       <menu id="goNextMenu" label="&nextMenu.label;" accesskey="&nextMenu.accesskey;">
  947.         <menupopup>
  948.           <menuitem label="&nextMsgCmd.label;" key="key_nextMsg" accesskey="&nextMsgCmd.accesskey;" observes="cmd_nextMsg"/>
  949.           <menuitem label="&nextUnreadMsgCmd.label;" key="key_nextUnreadMsg" accesskey="&nextUnreadMsgCmd.accesskey;" observes="cmd_nextUnreadMsg"/>
  950.           <menuitem label="&nextFlaggedMsgCmd.label;" accesskey="&nextFlaggedMsgCmd.accesskey;" observes="cmd_nextFlaggedMsg"/>
  951.           <menuseparator/>
  952.           <menuitem label="&nextUnreadThread.label;" key="key_nextUnreadThread" accesskey="&nextUnreadThreadCmd.accesskey;" observes="cmd_nextUnreadThread"/>
  953.         </menupopup>
  954.       </menu>
  955.       <menu id="goPreviousMenu" label="&prevMenu.label;" accesskey="&prevMenu.accesskey;">
  956.         <menupopup>
  957.           <menuitem label="&prevMsgCmd.label;" key="key_previousMsg" accesskey="&previousMsgCmd.accesskey;" observes="cmd_previousMsg"/>
  958.           <menuitem label="&prevUnreadMsgCmd.label;" key="key_previousUnreadMsg" accesskey="&previousUnreadMsgCmd.accesskey;" observes="cmd_previousUnreadMsg"/>
  959.           <menuitem label="&prevFlaggedMsgCmd.label;" accesskey="&previousFlaggedMsgCmd.accesskey;" observes="cmd_previousFlaggedMsg"/>
  960.         </menupopup>
  961.       </menu>
  962.       <menuseparator id="goNextSeparator"/>
  963.       <menuitem label="&startPageCmd.label;" accesskey="&startPageCmd.accesskey;" oncommand="HideMessageHeaderPane();loadStartPage();"/>
  964.     </menupopup>
  965.   </menu>
  966.   
  967.   <menu label="&msgMenu.label;" accesskey="&msgMenu.accesskey;" >
  968.   <menupopup oncreate="InitMessageMenu();">
  969.     <menuitem label="&newMsgCmd.label;"
  970.     accesskey="&newMsgCmd.accesskey;"
  971.     key="key_newMessage"
  972.     oncommand="MsgNewMessage(event);"/>
  973.     <menuitem id="replyMainMenu" label="&replyMsgCmd.label;" 
  974.       accesskey="&replyMsgCmd.accesskey;"
  975.       key="key_reply"
  976.       observes="cmd_reply"/>
  977.     <menuitem id="replySenderMainMenu" label="&replySenderCmd.label;" 
  978.       accesskey="&replySenderCmd.accesskey;"
  979.       observes="cmd_replySender"/>
  980.     <menuitem id="replyNewsgroupMainMenu" label="&replyNewsgroupCmd.label;" 
  981.       accesskey="&replyNewsgroupCmd.accesskey;"
  982.       key="key_reply"
  983.       observes="cmd_replyGroup"/>
  984.     <menuitem label="&replyToAllMsgCmd.label;"
  985.       accesskey="&replyToAllMsgCmd.accesskey;"
  986.       key="key_replyall"
  987.       observes="cmd_replyall"/>
  988.     <menuitem label="&forwardMsgCmd.label;"
  989.       accesskey="&forwardMsgCmd.accesskey;"
  990.       key="key_forward"
  991.       observes="cmd_forward"/>
  992.     <menu label="&forwardAsMenu.label;" accesskey="&forwardAsMenu.accesskey;">
  993.       <menupopup>
  994.         <menuitem label="&forwardAsInline.label;" accesskey="&forwardAsInline.accesskey;" observes="cmd_forwardInline"/>
  995.         <menuitem label="&forwardAsAttachmentCmd.label;" accesskey="&forwardAsAttachmentCmd.accesskey;" observes="cmd_forwardAttachment"/>
  996.       </menupopup>
  997.     </menu>
  998.         <menuitem label="&editMsgAsNewCmd.label;"
  999.             accesskey="&editMsgAsNewCmd.accesskey;"
  1000.             key="key_editAsNew"
  1001.             observes="cmd_editAsNew"/>
  1002.     <menuseparator/>
  1003.     <menu label="&moveMsgMenu.label;" accesskey="&moveMsgMenu.accesskey;" id="moveMenu" datasources="rdf:null"
  1004.      ignore="http://home.netscape.com/NC-rdf#MessageChild">
  1005.       <menupopup/>
  1006.       <template> 
  1007.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  1008.           <menupopup>
  1009.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  1010.               <menupopup>
  1011.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  1012.                 <menuseparator/>
  1013.               </menupopup>
  1014.             </menu>
  1015.           </menupopup>
  1016.         </rule> 
  1017.         <rule nc:NoSelect="true">
  1018.           <menupopup>
  1019.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  1020.           </menupopup>
  1021.         </rule>
  1022.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  1023.           <menupopup>
  1024.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1025.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1026.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1027.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1028.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1029.               <menupopup>
  1030.                 <menuitem label="&fileHereMenu.label;" 
  1031.                   oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  1032.                 <menuseparator/>
  1033.               </menupopup>
  1034.             </menu>
  1035.           </menupopup>
  1036.         </rule>
  1037.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  1038.           <!-- don't show nntp servers in the file and copies menus -->
  1039.         </rule>
  1040.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  1041.           <!-- note, there is no "file here" -->
  1042.           <menupopup>
  1043.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1044.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1045.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1046.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1047.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1048.               <menupopup/>
  1049.             </menu>
  1050.           </menupopup>
  1051.         </rule>
  1052.         <rule nc:CanFileMessages="true">
  1053.           <menupopup>
  1054.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  1055.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1056.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1057.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1058.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  1059.           </menupopup>
  1060.         </rule>
  1061.       </template>
  1062.     </menu>
  1063.     <menu label="©MsgMenu.label;" accesskey="©MsgMenu.accesskey;" id="copyMenu" datasources="rdf:null"
  1064.      ignore="http://home.netscape.com/NC-rdf#MessageChild">
  1065.       <menupopup/>
  1066.       <template>
  1067.       <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  1068.           <menupopup>
  1069.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  1070.               <menupopup>
  1071.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  1072.                 <menuseparator/>
  1073.               </menupopup>
  1074.             </menu>
  1075.           </menupopup>
  1076.         </rule> 
  1077.         <rule nc:NoSelect="true">
  1078.           <menupopup>
  1079.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  1080.           </menupopup>
  1081.         </rule>
  1082.         <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  1083.           <menupopup>
  1084.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1085.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1086.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1087.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1088.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1089.               <menupopup>
  1090.                 <menuitem label="&fileHereMenu.label;" 
  1091.                   oncommand="MsgCopyMessage(event.target.parentNode.parentNode)"/>
  1092.                 <menuseparator/>
  1093.               </menupopup>
  1094.             </menu>
  1095.           </menupopup>
  1096.         </rule>
  1097.         <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  1098.           <!-- don't show nntp servers in the file and copies menus -->
  1099.         </rule>
  1100.         <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  1101.           <!-- note, there is no "file here" -->
  1102.           <menupopup>
  1103.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1104.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1105.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1106.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1107.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1108.               <menupopup/>
  1109.             </menu>
  1110.           </menupopup>
  1111.         </rule>
  1112.         <rule nc:CanFileMessages="true">
  1113.           <menupopup>
  1114.             <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" 
  1115.              oncommand="MsgCopyMessage(event.target)" 
  1116.              SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1117.              BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1118.              IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1119.              ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  1120.           </menupopup>
  1121.         </rule>
  1122.       </template>
  1123.     </menu>
  1124.     <menuseparator/>
  1125.     <menu label="&markMenu.label;" accesskey="&markMenu.accesskey;" oncreate="InitMessageMark()">
  1126.       <menupopup>
  1127.         <menuitem type="checkbox" key="key_toggleRead" id="markReadMenuItem" label="&markAsReadCmd.label;" accesskey="&markAsReadCmd.accesskey;" observes="cmd_markAsRead"/>
  1128.         <menuitem label="&markThreadAsReadCmd.label;"  accesskey="&markThreadAsReadCmd.accesskey;" observes="cmd_markThreadAsRead"/>
  1129.         <menuitem label="&markAllReadCmd.label;" key="key_markAllRead" accesskey="&markAllReadCmd.accesskey;" observes="cmd_markAllRead"/>
  1130.         <menuseparator/>
  1131.         <menuitem type="checkbox" id="markFlaggedMenuItem" label="&markFlaggedCmd.label;" accesskey="&markFlaggedCmd.accesskey;" observes="cmd_markAsFlagged"/>
  1132.       </menupopup>
  1133.     </menu>
  1134.     <menuitem label="&killThreadMenu.label;"
  1135.         accesskey="&killThreadMenu.accesskey;"
  1136.         key="key_killThread"
  1137.         id="killThread"
  1138.         observes="cmd_killThread"/>
  1139.     <menuitem label="&watchThreadMenu.label;"
  1140.         accesskey="&watchThreadMenu.accesskey;"
  1141.         key="key_watchThread"
  1142.         id="watchThread"
  1143.         observes="cmd_watchThread"/>
  1144.   </menupopup>
  1145. </menu>
  1146.  
  1147. <menu id="tasksMenu"/>
  1148. <menu id="menu_Help"/>
  1149. <spring flex="100%"/>
  1150. </menubar>
  1151.  
  1152. <toolbox id="mailToolbarToolbox">
  1153.   <toolbar class="toolbar-primary chromeclass-toolbar" id="msgToolbar" persist="collapsed">
  1154.     <box id="toolbar_button_box">
  1155.                         <menubutton class="menubutton-dual toolbar top" id="button-getmsg" 
  1156.                                     label="&getMsgButton.label;" crop="right" tooltip="aTooltip" 
  1157.                                     tooltiptext="&getMsgButton.tooltip;" 
  1158.                                     observes="button_getNewMessages" datasources="rdf:msgaccountmanager" 
  1159.                                     oncommand="goDoCommand('cmd_getNewMessages')"
  1160.                                     containment="http://home.netscape.com/NC-rdf#child" 
  1161.                                     ref="msgaccounts:/">
  1162.                             <menupopup>
  1163.                                 <menuitem label="&getAllNewMsgCmd.label;" 
  1164.                                           observes="cmd_getMsgsForAuthAccounts"/>
  1165.                                 <menuseparator/>
  1166.                             </menupopup>
  1167.                             <template>
  1168.                                 <rule nc:CanGetMessages="true">
  1169.                                     <menupopup>
  1170.                                         <menuitem uri="..." 
  1171.                                                   value="..." 
  1172.                                                   label="rdf:http://home.netscape.com/NC-rdf#Name"
  1173.                                                   oncommand="MsgGetMessagesForAccount(event);"/>
  1174.                                     </menupopup>
  1175.                                 </rule>
  1176.                             </template>
  1177.                             <menupopup/>
  1178.                         </menubutton>
  1179.       <button class="button-toolbar-2 top" id="button-newmsg" label="&newMsgButton.label;" tooltip="aTooltip" tooltiptext="&newMsgButton.tooltip;" oncommand="MsgNewMessage(event)"/>
  1180.       <toolbarseparator class="toolbarseparator-primary"/>
  1181.       <button class="button-toolbar-2 top" id="button-reply" label="&replyButton.label;" tooltip="aTooltip" tooltiptext="&replyButton.tooltip;" observes="button_reply" oncommand="MsgReplyMessage(event)"/>
  1182.       <button class="button-toolbar-2 top" id="button-replyall" label="&replyAllButton.label;" tooltip="aTooltip" tooltiptext="&replyAllButton.tooltip;" observes="button_replyall" oncommand="MsgReplyToAllMessage(event)"/>
  1183.       <button class="button-toolbar-2 top" id="button-forward" label="&forwardButton.label;" tooltip="aTooltip"  tooltiptext="&forwardButton.tooltip;" observes="button_forward" oncommand="MsgForwardMessage(event)"/>
  1184.       <toolbarseparator class="toolbarseparator-primary"/>
  1185.       <menubutton class="button-toolbar-2 top" id="button-file" observes="button_file" datasources="rdf:null" ignore="http://home.netscape.com/NC-rdf#MessageChild" label="&fileButton.label;" tooltip="aTooltip" tooltiptext="&fileButton.tooltip;">
  1186.         <template> 
  1187.         <rule nc:NoSelect="true" iscontainer="true" isempty="false">
  1188.           <menupopup>
  1189.             <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name">
  1190.               <menupopup>
  1191.                 <menuitem label="&fileHereMenu.label;" disabled="true"/>
  1192.                 <menuseparator/>
  1193.               </menupopup>
  1194.             </menu>
  1195.           </menupopup>
  1196.         </rule> 
  1197.         <rule nc:NoSelect="true">
  1198.           <menupopup>
  1199.             <menuitem uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" disabled="true"/>
  1200.           </menupopup>
  1201.         </rule>
  1202.           <rule nc:CanFileMessages="true" iscontainer="true" isempty="false">
  1203.             <menupopup>
  1204.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1205.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1206.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1207.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1208.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1209.                 <menupopup>
  1210.                   <menuitem label="&fileHereMenu.label;" 
  1211.                     oncommand="MsgMoveMessage(event.target.parentNode.parentNode)"/>
  1212.                   <menuseparator/>
  1213.                 </menupopup>
  1214.               </menu>
  1215.             </menupopup>
  1216.           </rule>
  1217.           <rule nc:CanFileMessages="false" nc:ServerType="nntp">
  1218.           <!-- don't show nntp servers in the file and copies menus -->
  1219.           </rule>
  1220.           <rule nc:CanFileMessages="false" iscontainer="true" isempty="false">
  1221.           <!-- note, there is no "file here" -->
  1222.             <menupopup>
  1223.               <menu uri="..."  class="folderMenuItem menu-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name"
  1224.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1225.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1226.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1227.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType">
  1228.                 <menupopup/>
  1229.               </menu>
  1230.             </menupopup>
  1231.           </rule>
  1232.           <rule nc:CanFileMessages="true">
  1233.             <menupopup>
  1234.               <menuitem uri="..." class="folderMenuItem menuitem-iconic" label="rdf:http://home.netscape.com/NC-rdf#Name" oncommand="MsgMoveMessage(event.target)" 
  1235.                SpecialFolder="rdf:http://home.netscape.com/NC-rdf#SpecialFolder"
  1236.                BiffState="rdf:http://home.netscape.com/NC-rdf#BiffState"
  1237.                IsServer="rdf:http://home.netscape.com/NC-rdf#IsServer"
  1238.                ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType"/>
  1239.             </menupopup>
  1240.           </rule>
  1241.         </template>
  1242.         <menupopup/>
  1243.       </menubutton>
  1244.       <button class="button-toolbar-2 top" id="button-next" label="&nextButton.label;"  oncommand="goDoCommand('cmd_nextUnreadMsg')" tooltip="aTooltip" tooltiptext="&nextButton.tooltip;" observes="button_next"/>
  1245.       <button class="button-toolbar-2 top" id="button-delete" label="&deleteButton.label;"  tooltip="aTooltip" tooltiptext="&deleteButton.tooltip;" observes="button_delete" oncommand="goDoCommand('button_delete')"/>
  1246.       <menubutton class="menubutton-dual toolbar top" id="button-mark" label="&markButton.label;" hidden="true" oncommand="goDoCommand('button_mark')"
  1247.                   crop="right" observes="button_mark" tooltip="aTooltip" tooltiptext="&markButton.tooltip;">  
  1248.             <menupopup oncreate="InitMessageMark()">
  1249.                 <menuitem type="checkbox" key="key_toggleRead" id="markReadToolbarItem" label="&markAsReadCmd.label;" accesskey="&markAsReadCmd.accesskey;" observes="cmd_markAsRead" default="true" />
  1250.                 <menuitem label="&markThreadAsReadCmd.label;"  accesskey="&markThreadAsReadCmd.accesskey;" observes="cmd_markThreadAsRead"/>
  1251.                 <menuitem label="&markAllReadCmd.label;" key="key_markAllRead" accesskey="&markAllReadCmd.accesskey;" observes="cmd_markAllRead"/>
  1252.                 <menuseparator/>
  1253.                 <menuitem type="checkbox" id="markFlaggedToolbarItem" label="&markFlaggedCmd.label;" accesskey="&markFlaggedCmd.accesskey;" observes="cmd_markAsFlagged"/>
  1254.             </menupopup>
  1255.       </menubutton>
  1256.       <menubutton class="menubutton-dual toolbar top" id="button-print" label="&printButton.label;" 
  1257.                   crop="right" observes="button_print" oncommand="goDoCommand('cmd_print')" tooltip="aTooltip" tooltiptext="&printButton.tooltip;">  
  1258.         <menupopup id="printMenu">
  1259.           <menuitem label="&printCmd.label;" accesskey="&printCmd.accesskey;" default="true"/>
  1260.           </menupopup>
  1261.       </menubutton>
  1262.       <button class="button-toolbar-2 top" id="button-stop" label="&stopButton.label;"  tooltip="aTooltip" tooltiptext="&stopButton.tooltip;" oncommand="MsgStop();"/>
  1263.       <spring flex="1"/>
  1264.             <box id="throbber-box" autostretch="never">
  1265.                 <button id="navigator-throbber" oncommand='goClickThrobber("messenger.throbber.url")'/>
  1266.             </box>
  1267.     </box>
  1268.   </toolbar>
  1269. </toolbox>
  1270.  
  1271. <statusbar id="status-bar"> 
  1272.   <box position="1" flex="1">
  1273.     <statusbarpanel id="offline-status" class="statusbarpanel-icononly"/> 
  1274.     <progressmeter class="progressmeter-statusbar" statusbar="true" id="statusbar-icon" mode="normal" value="0" oncommand="dumpProgress()"/> 
  1275.     <statusbarpanel id="statusText" label="&statusText.label;" crop="right" flex="1"/> 
  1276.   </box>
  1277.   <statusbarpanel id="security-button" class="statusbarpanel-icononly"/>
  1278. </statusbar> 
  1279. <box id="taskbar" class="chromeclass-extrachrome toolbox-bottom"/>
  1280.  
  1281. </overlay>
  1282.