rem: if (folderNode) {   
add: if (folderResource) {   
context: function IsSendUnsentMsgsEnabled(folderNode){  var identity;  try {    if (folderNode) {      // if folderNode is non-null, it is      // is the XULElement for the "Unsent Messages" folder      // we're here because we've done a right click on the "Unsent Messages"      // folder (context menu)      var folder = GetMsgFolderFromNode(folderNode);      return (folder.getTotalMessages(false) > 0);    }    else {      var folders = GetSelectedMsgFolders();      if (folders.length > 0) {        identity = getIdentityForServer(folders[0].server);      }    }  }  catch (ex) {    dump("ex = " + ex + "\n");    identity = null;  }  try {    if (!identity) {      var am = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);      identity = am.defaultAccount.defaultIdentity;    }    var msgSendlater = Components.classes["@mozilla.org/messengercompose/sendlater;1"].getService(Components.interfaces.nsIMsgSendLater);    var unsentMsgsFolder = msgSendlater.getUnsentMessagesFolder(identity);    return (unsentMsgsFolder.getTotalMessages(false) > 0);  }  catch (ex) {    dump("ex = " + ex + "\n");  }  return false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/938770831965cde1ef5c4ce945b768186518efae/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js