rem: var folderUri = folderResource.Value; if ((folderUri == gCurrentFolderUri) && gCurrentMessageIsDeleted) 
add: if ((folderResource.Value == gCurrentFolderUri) && gCurrentMessageIsDeleted) 
context: function HandleDeleteOrMoveMsgCompleted(folder){	var folderResource = folder.QueryInterface(Components.interfaces.nsIRDFResource);	if (!folderResource)		return;	var folderUri = folderResource.Value;	if ((folderUri == gCurrentFolderUri) && gCurrentMessageIsDeleted)	{    gDBView.onDeleteCompleted(true);    gCurrentMessageIsDeleted = false;    if (gNextMessageViewIndexAfterDelete != nsMsgViewIndex_None)     {      var nextMstKey = gDBView.getKeyAt(gNextMessageViewIndexAfterDelete);      if (nextMstKey != nsMsgKey_None) {        gDBView.loadMessageByMsgKey(nextMstKey);      }      else {        window.close();      }    }    else    {      // close the stand alone window because there are no more messages in the folder      window.close();    }	}}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5df8ac3e9a00b543f74ee01faf451d395dabbf3e/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js