rem: if (emailAddress) top.MsgFilters(emailAddress); 
add: var accountKey = msgHdr.accountKey; var folder; if (accountKey.length > 0) { var account = accountManager.getAccount(accountKey); if (account) { server = account.incomingServer; if (server) folder = server.rootFolder; } } if (!folder) folder = GetFirstSelectedMsgFolder();  if (emailAddress) top.MsgFilters(emailAddress, folder); 
context: function MsgCreateFilter(){  // retrieve Sender direct from selected message's headers  var msgHdr = gDBView.hdrForFirstSelectedMessage;  var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser);  var emailAddress = headerParser.extractHeaderAddressMailboxes(null, msgHdr.author);  if (emailAddress)    top.MsgFilters(emailAddress);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/99af2194ae4ef25d4d95ccfcdf4ad87c11fd643f/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js