rem: if (folderResource) { var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder); enableMenuItem = enableMenuItem && msgFolder && msgFolder.canDeleteMessages; } 
add: var enableMenuItem = (numSelected > 0) && msgFolder && msgFolder.canDeleteMessages; 
context: function SetupMoveMenuItem(menuID, numSelected, isNewsgroup, forceHide){  ShowMenuItem(menuID, !isNewsgroup && !forceHide);  var folderResource = GetSelectedFolderResource();  var enableMenuItem = numSelected > 0;  // disable move if we can't delete message(s) from this folder  if (folderResource)  {    var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);    enableMenuItem = enableMenuItem && msgFolder && msgFolder.canDeleteMessages;    }  EnableMenuItem(menuID, enableMenuItem);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3e8138e69985a2f82a468bf1ab4d6e743838c557/mailContextMenus.js/clean/mailnews/base/resources/content/mailContextMenus.js