add:  gAutoSaveKickedIn = false; gEditingDraft = false; 
context: function SaveAsTemplate(){  dump("SaveAsTemplate from XUL\n");  GenericSendMessage(nsIMsgCompDeliverMode.SaveAsTemplate);  defaultSaveOperation = "template";}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/ba456a6dc8f7f8d29b562b25c00c95a394a77f48/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js