rem: 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();   
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);  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);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/864bec57901417b7e713de73b1516b2d9ae21673/mailWindowOverlay.js/clean/mail/base/content/mailWindowOverlay.js