rem: } 
context: function analyzeMessageForJunk(aMsgHdr, aMsgIndex, aJunkMsgIndices, aLastMessage, aWhiteListDirectory){    var listener = {        onMessageClassified: function(aClassifiedMsgURI, aClassification)        {            // XXX TODO            // update status bar, or a progress dialog            // running junk mail controls manually, on a large folder            // can take a while, and the user doesn't know when we are done.                        // XXX TODO            // make the cut off 50, like in nsMsgSearchTerm.cpp                        var score =                 aClassification == nsIJunkMailPlugin.JUNK ? "100" : "0";            // set these props via the db (instead of the message header            // directly) so that the nsMsgDBView knows to update the UI            //            var db = aMsgHdr.folder.getMsgDatabase(msgWindow);            db.setStringProperty(aMsgHdr.messageKey, "junkscore", score);            db.setStringProperty(aMsgHdr.messageKey, "junkscoreorigin",                                  "plugin");                         if (aClassification == nsIJunkMailPlugin.JUNK)              aJunkMsgIndices.push(aMsgIndex);                        if (aLastMessage)             {              gJunkmailComponent.endBatch();              performActionsOnJunkMsgs(aJunkMsgIndices);            }        }    };    // if we are whitelisting, check if the email address is in the whitelist addressbook.    if (aWhiteListDirectory)    {      var headerParser = Components.classes["@mozilla.org/messenger/headerparser;1"].getService(Components.interfaces.nsIMsgHeaderParser);      var authorEmailAddress = headerParser.extractHeaderAddressMailboxes(null, aMsgHdr.author);      if (aWhiteListDirectory.hasCardForEmailAddress(authorEmailAddress))        // skip over this message, like we do on incoming mail        // the difference is it could be marked as junk from previous analysis        // or from being manually marked by the user.        return;    }    var messageURI = aMsgHdr.folder.generateMessageURI(aMsgHdr.messageKey)        + "?fetchCompleteMessage=true";    gJunkmailComponent.classifyMessage(messageURI, msgWindow, listener);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/cbbf6240a7759401cb6b0288280503990c878570/mailCommands.js/clean/mailnews/base/resources/content/mailCommands.js