add: EnableMenuItem('downloadSelected', GetNumSelectedMessages() > 0);  
context: function fillThreadPaneContextMenu(){  var numSelected = GetNumSelectedMessages();  var isNewsgroup = false;  var selectedMessage = null;  // Clear the global var used to keep track if a 'Delete Message' or 'Move  // To' command has been triggered via the thread pane context menu.  gThreadPaneDeleteOrMoveOccurred = false;  if(numSelected >= 0) {    selectedMessage = GetFirstSelectedMessage();    isNewsgroup = IsNewsMessage(selectedMessage);  }  SetupNewMessageWindowMenuItem("threadPaneContext-openNewWindow", numSelected, false);  SetupEditAsNewMenuItem("threadPaneContext-editAsNew", numSelected, false);  ShowMenuItem("threadPaneContext-sep-open", (numSelected <= 1));  SetupReplyToSenderMenuItem("threadPaneContext-replySender", numSelected, false);  SetupReplyToNewsgroupMenuItem("threadPaneContext-replyNewsgroup", numSelected, isNewsgroup, false);  SetupReplyAllMenuItem("threadPaneContext-replyAll", numSelected, false);  SetupForwardMenuItem("threadPaneContext-forward", numSelected, false);  SetupForwardAsAttachmentMenuItem("threadPaneContext-forwardAsAttachment", numSelected, false);  ShowMenuItem("threadPaneContext-sep-reply", true);  SetupCopyMessageUrlMenuItem("threadPaneContext-copyMessageUrl", numSelected, isNewsgroup, numSelected != 1);   SetupCopyMenuItem("threadPaneContext-copyMenu", numSelected, false);  SetupMoveMenuItem("threadPaneContext-moveMenu", numSelected, isNewsgroup, false);  SetupMoveToFolderAgainMenuItem("threadPaneContext-moveToFolderAgain", numSelected, false);      EnableMenuItem("threadPaneContext-labels", (numSelected >= 1));  EnableMenuItem("threadPaneContext-mark", (numSelected >= 1));  SetupSaveAsMenuItem("threadPaneContext-saveAs", numSelected, false);#ifdef XP_MACOSX  SetupPrintPreviewMenuItem("threadPaneContext-printpreview", numSelected, true);#else  SetupPrintPreviewMenuItem("threadPaneContext-printpreview", numSelected, false);#endif  SetupPrintMenuItem("threadPaneContext-print", numSelected, false);  SetupDeleteMenuItem("threadPaneContext-delete", numSelected, false);  SetupAddSenderToABMenuItem("threadPaneContext-addSenderToAddressBook", numSelected, false);  SetupAddAllToABMenuItem("threadPaneContext-addAllToAddressBook", numSelected, false);  ShowMenuItem("threadPaneContext-sep-edit", (numSelected <= 1));  return(true);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b5a001f838dc0820e52dee7210cefe26f11fc8c0/mailContextMenus.js/clean/mail/base/content/mailContextMenus.js