rem: messenger.saveAs(uri, false, identity); 
add: messenger.saveAs(uri, false, identity, msgWindow); 
context: function MsgSaveAsTemplate() {  dump("\MsgSaveAsTemplate from XUL\n");  var tree = GetThreadTree();  //get the selected elements  var messageList = tree.selectedItems;  if (messageList && messageList.length == 1)  {      var uri = messageList[0].getAttribute('id');      // dump (uri);      if (uri)      {          var identity = getIdentityForSelectedServer();          messenger.saveAs(uri, false, identity);      }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/354eaa2141548fa4e91c43ed19edf768633eacab/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js