add: case "cmd_openAttachment": return MessageGetNumSelectedAttachments() == 1; 
context:   isCommandEnabled: function(command)  {    var composeHTML = gMsgCompose && gMsgCompose.composeHTML;    switch (command)    {      //File Menu      case "cmd_attachFile":      case "cmd_attachPage":      case "cmd_close":      case "cmd_saveDefault":      case "cmd_saveAsFile":      case "cmd_saveAsDraft":      case "cmd_saveAsTemplate":      case "cmd_sendButton":      case "cmd_sendLater":      case "cmd_printSetup":      case "cmd_print":      case "cmd_sendWithCheck":        return !gWindowLocked;      case "cmd_sendNow":        return !(gWindowLocked || gIsOffline);      case "cmd_quit":        return true;      //Edit Menu      case "cmd_delete":        return MessageHasSelectedAttachments();      case "cmd_selectAll":        return MessageHasAttachments();      case "cmd_account":      //View Menu      case "cmd_showComposeToolbar":        return true;      case "cmd_showFormatToolbar":        return composeHTML;      //Options Menu      case "cmd_selectAddress":        return !gWindowLocked;      case "cmd_outputFormat":        return composeHTML;      case "cmd_quoteMessage":        var selectedURIs = GetSelectedMessages();        if (selectedURIs && selectedURIs.length > 0)          return true;        return false;      default://        dump("##MsgCompose: command " + command + " disabled!\n");        return false;    }  },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/22fcf47f86d88832af9a7cc1dfd001e9f5e0753f/MsgComposeCommands.js/buggy/mail/components/compose/content/MsgComposeCommands.js