rem: 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(); } } 
add: var messageUri = messages[counter]; var message = messenger.messageServiceFromURI(messageUri).messageURIToMsgHdr(messageUri); ++counter; analyze(message, processNext); } else performActionOnJunkMsgs(); } 
context:     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();        }    }
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0c49ba83dea816d5a2050bb7d06da8fd2f99f9f8/mailCommands.js/clean/mail/base/content/mailCommands.js