rem: getJunkmailComponent(); var messages = GetSelectedMessages();    gJunkmailComponent.batchUpdate = true;    for ( var msg in messages ) { var message = messenger.messageServiceFromURI(messages[msg]) .messageURIToMsgHdr(messages[msg]); mark(message, setAsJunk, null); }    gJunkmailComponent.batchUpdate = false;    
context: function JunkSelectedMessages(setAsJunk){    getJunkmailComponent();    var messages = GetSelectedMessages();    // start the batch of messages    //    gJunkmailComponent.batchUpdate = true;    // mark each one    //    for ( var msg in messages ) {        var message = messenger.messageServiceFromURI(messages[msg])            .messageURIToMsgHdr(messages[msg]);        mark(message, setAsJunk, null);    }    // end the batch (tell the component to write out its data)    //    gJunkmailComponent.batchUpdate = false;    // this actually sets the score on the selected messages    // so we need to call it after we call mark()    gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk                      : nsMsgViewCommandType.unjunk);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7692842a78a34b518349996c8dac37a90ae830bc/mailCommands.js/clean/mailnews/base/resources/content/mailCommands.js