rem: getJunkmailComponent(); var counter = 0; gJunkmailComponent.startBatch(); dump('[bayesian filter message analysis begins.]\n'); processNext(); 
add: getJunkmailComponent(); var counter = 0; processNext(); 
context: function analyzeMessages(messages){    function processNext()    {        if (counter < messages.length) {            var messageUri = messages[counter];            var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri);            ++counter;            analyze(message, processNext);        }        else {            dump('[bayesian filter message analysis complete.]\n');            gJunkmailComponent.endBatch();            performActionOnJunkMsgs();        }    }    getJunkmailComponent();    var counter = 0;    gJunkmailComponent.startBatch();    dump('[bayesian filter message analysis begins.]\n');    processNext();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0c49ba83dea816d5a2050bb7d06da8fd2f99f9f8/mailCommands.js/clean/mail/base/content/mailCommands.js