rem: msgHdr.folder[toggler](messages, key); 
add: var prevHdrFolder = null;      for (var i = 0; i < selectedMsgUris.length; ++i) { var msgHdr = messenger.msgHdrFromURI(selectedMsgUris[i]); if (msgHdr.label) {    msg.Clear(); msg.AppendElement(msgHdr); msgHdr.folder.addKeywordToMessages(msg, "$label" + msgHdr.label); msgHdr.label = 0; } if (prevHdrFolder != msgHdr.folder) { if (prevHdrFolder) prevHdrFolder[toggler](messages, key); messages.Clear(); prevHdrFolder = msgHdr.folder; } messages.AppendElement(msgHdr); } if (prevHdrFolder) prevHdrFolder[toggler](messages, key); 
context: function ToggleMessageTag(key, addKey){  // XXX need to do all selected messages  var msgHdr = gDBView.hdrForFirstSelectedMessage;  var messages = Components.classes["@mozilla.org/supports-array;1"]                           .createInstance(Components.interfaces.nsISupportsArray);  messages.AppendElement(msgHdr);  var toggler = addKey ? "addKeywordToMessages" : "removeKeywordFromMessages";  msgHdr.folder[toggler](messages, key);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/78b043e7d257a64e5165004c5a976561c6749b4d/mailWindowOverlay.js/clean/mailnews/base/resources/content/mailWindowOverlay.js