rem: var parentURI = parentFolderResource.Value; if (parentURI != gCurrentFolderUri) return;  var deletedMessageHdr = item.QueryInterface(Components.interfaces.nsIMsgDBHdr); if (extractMsgKeyFromURI() == deletedMessageHdr.messageKey) 
add: if (item instanceof Components.interfaces.nsIMsgDBHdr && extractMsgKeyFromURI() == item.messageKey) 
context:   OnItemRemoved: function(parentItem, item, view) {    var parentFolderResource = parentItem.QueryInterface(Components.interfaces.nsIRDFResource);    if (!parentFolderResource)      return;    var parentURI = parentFolderResource.Value;    if (parentURI != gCurrentFolderUri)      return;    var deletedMessageHdr = item.QueryInterface(Components.interfaces.nsIMsgDBHdr);    if (extractMsgKeyFromURI() == deletedMessageHdr.messageKey)      gCurrentMessageIsDeleted = true;  },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d27a07dcd743e168a9d0f1a0209f35e43ba70a79/messageWindow.js/buggy/mailnews/base/resources/content/messageWindow.js