rem: gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk); 
add: gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk);  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){  gDBView.doCommand(setAsJunk ? nsMsgViewCommandType.junk : nsMsgViewCommandType.unjunk);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3a4b5651551abafc1f0db11efaf32b1f7029dbf7/mailCommands.js/buggy/mailnews/base/resources/content/mailCommands.js