rem: ShowMenuItem(menuID, !forceHide); EnableMenuItem(menuID, (numSelected > 0)); 
add: var showMenuItem = !forceHide;  ShowMenuItem(menuID, showMenuItem); if(showMenuItem) { EnableMenuItem(menuID, (numSelected > 0)); if(!isNewsgroup) { SetMenuItemValue(menuID, Bundle.GetStringFromName("delete")); SetMenuItemAccessKey(menuID, Bundle.GetStringFromName("deleteAccessKey")); } else { SetMenuItemValue(menuID, Bundle.GetStringFromName("cancel")); SetMenuItemAccessKey(menuID, Bundle.GetStringFromName("cancelAccessKey")); } } 
context: function SetupDeleteMenuItem(menuID, numSelected, forceHide){	ShowMenuItem(menuID, !forceHide);	EnableMenuItem(menuID, (numSelected > 0));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f9a23563a051b06e7bd54a444582c2666ab0550a/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js