rem: var whiteListDirectory; 
add: var whiteListDirectory = null; 
context: function filterFolderForJunk(){  MsgJunkMailInfo(true);  var view = GetDBView();  // need to expand all threads, so we analyze everything  view.doCommand(nsMsgViewCommandType.expandAll);  var treeView = view.QueryInterface(Components.interfaces.nsITreeView);  var count = treeView.rowCount;  if (!count)    return;  var junkMsgsArray = new Array;  var tmpMsgURI = view.getURIForViewIndex(0);  var tmpMsgHdr = messenger.msgHdrFromURI(tmpMsgURI);  var spamSettings = tmpMsgHdr.folder.server.spamSettings;  var whiteListDirectory;  if (spamSettings.useWhiteList && spamSettings.whiteListAbURI)    whiteListDirectory = RDF.GetResource(spamSettings.whiteListAbURI).QueryInterface(Components.interfaces.nsIAbMDBDirectory);  getJunkmailComponent();  for (var i = 0; i < count; i++) {    var msgIndex = i;    var msgURI = view.getURIForViewIndex(i);    var msgHdr = messenger.msgHdrFromURI(msgURI);    analyzeMessageForJunk(msgHdr,msgIndex,junkMsgsArray,(i == count-1),whiteListDirectory);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e870274c1fab3343b4266c8a864a953f337b6402/mailCommands.js/buggy/mailnews/base/resources/content/mailCommands.js