rem: if ( command == "cmd_delete") { if (isNewsURI(gCurrentMessageUri)) { goSetMenuValue(command, 'valueNewsMessage'); goSetAccessKey(command, 'valueNewsMessageAccessKey'); } else { goSetMenuValue(command, 'valueMessage'); goSetAccessKey(command, 'valueMessageAccessKey'); } } 
add: if (isNewsURI(gCurrentMessageUri)) { goSetMenuValue(command, 'valueNewsMessage'); goSetAccessKey(command, 'valueNewsMessageAccessKey'); } else { goSetMenuValue(command, 'valueMessage'); goSetAccessKey(command, 'valueMessageAccessKey'); } 
context: 	isCommandEnabled: function(command)	{    var enabled = new Object();    var checkStatus = new Object();		switch ( command )		{			case "cmd_delete":        if ( command == "cmd_delete")        {          if (isNewsURI(gCurrentMessageUri))          {             goSetMenuValue(command, 'valueNewsMessage');             goSetAccessKey(command, 'valueNewsMessageAccessKey');          }          else          {             goSetMenuValue(command, 'valueMessage');             goSetAccessKey(command, 'valueMessageAccessKey');          }        }        if (gDBView)        {           gDBView.getCommandStatus(nsMsgViewCommandType.deleteMsg, enabled, checkStatus);           return enabled.value;        }			case "cmd_reply":			case "button_reply":			case "cmd_replySender":			case "cmd_replyGroup":			case "cmd_replyall":			case "button_replyall":			case "cmd_forward":			case "button_forward":			case "cmd_forwardInline":			case "cmd_forwardAttachment":			case "cmd_editAsNew":			case "button_delete":			case "cmd_shiftDelete":			case "cmd_print":      case "button_print":			case "cmd_saveAsFile":			case "cmd_saveAsTemplate":			case "cmd_viewPageSource":			case "cmd_reload":			case "cmd_find":			case "cmd_findAgain":      case "button_mark":			case "cmd_markAsRead":			case "cmd_markAllRead":			case "cmd_markThreadAsRead":			case "cmd_markAsFlagged":      case "button_file":			case "cmd_file":				return ( gCurrentMessageUri != null);			case "cmd_getNewMessages":      case "button_getNewMessages":      case "cmd_getMsgsForAuthAccounts":				return IsGetNewMessagesEnabled();			case "cmd_getNextNMessages":				return IsGetNextNMessagesEnabled();      case "cmd_synchronizeOffline":      case "cmd_toggleWorkOffline":        return true;			case "cmd_nextMsg":      case "button_next":			case "cmd_nextUnreadMsg":			case "cmd_nextUnreadThread":			case "cmd_previousMsg":			case "cmd_previousUnreadMsg":				return true;			default:				return false;		}	},
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3ad651ca3bc9abc19cb47e72b901e5c92c271fb4/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js