rem: var folder = GetLoadedMsgFolder(); if (GetNumSelectedMessages() == 1) { SaveAsTemplate(GetFirstSelectedMessage(), folder); } 
add: var folder = GetLoadedMsgFolder(); if (GetNumSelectedMessages() == 1) SaveAsTemplate(GetFirstSelectedMessage(), folder); 
context: function MsgSaveAsTemplate(){    var folder = GetLoadedMsgFolder();    if (GetNumSelectedMessages() == 1) {        SaveAsTemplate(GetFirstSelectedMessage(), folder);    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b6bb0ecf6484efaae610e6386311832c1d7effcf/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js