add:  action = DetermineHTMLAction(); if (action == msgCompSendFormat.AskUser) { var result = {action:msgCompSendFormat.PlainText, abort:false}; window.openDialog("chrome: "askSendFormatDialog", "chrome,modal", result); if (result.abort) return; action = result.action; } switch (action) { case msgCompSendFormat.PlainText: msgCompFields.SetTheForcePlainText(true); msgCompFields.SetUseMultipartAlternativeFlag(false); break; case msgCompSendFormat.HTML: msgCompFields.SetTheForcePlainText(false); msgCompFields.SetUseMultipartAlternativeFlag(false); break; case msgCompSendFormat.Both: msgCompFields.SetTheForcePlainText(false); msgCompFields.SetUseMultipartAlternativeFlag(true); break; default: dump("\###SendMessage Error: invalid action value\n"); return; } 
context: function GenericSendMessage( msgType ){	dump("GenericSendMessage from XUL\n");  dump("Identity = " + getCurrentIdentity() + "\n");    	if (msgCompose != null)	{	    var msgCompFields = msgCompose.compFields;	    if (msgCompFields)	    {			Recipients2CompFields(msgCompFields);			msgCompFields.SetSubject(document.getElementById("msgSubject").value);			dump("attachments = " + GenerateAttachmentsString() + "\n");			try {				msgCompFields.SetAttachments(GenerateAttachmentsString());			}			catch (ex) {				dump("failed to SetAttachments\n");			}					try {				msgCompose.SendMsg(msgType, getCurrentIdentity(), null);			}			catch (ex) {				dump("failed to SendMsg\n");			}		}	}	else		dump("###SendMessage Error: composeAppCore is null!\n");}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/b805bebf7615f0e2145f4437e7b55520d099d6d4/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js