rem: if (gDBView.numSelected == 1) { SaveAsTemplate(gDBView.URIForFirstSelectedMessage, folder); 
add: if (GetNumSelectedMessages() == 1) { SaveAsTemplate(GetFirstSelectedMessage(), folder); 
context: function MsgSaveAsTemplate(){    var folder = GetLoadedMsgFolder();    if (gDBView.numSelected == 1) {        SaveAsTemplate(gDBView.URIForFirstSelectedMessage, folder);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/3020f4f81e2e476d1ae754b1979eb46e8fe11990/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js