rem: if ( ( lower <= messageDate ) && ( messageDate < upper ) ) headers.AppendElement( header ); 
add: if ( ( lower <= messageDate ) && ( messageDate < upper ) ) headers.AppendElement( header ); } 
context: function markInDatabase( lower, upper ){  var messageFolder;  var messageDatabase;  // extract the database  if ( window.arguments && window.arguments[0] )  {    messageFolder = window.arguments[0];    messageDatabase = messageFolder.getMsgDatabase( null );  }  if ( !messageDatabase )  {    dump( "markByDate::markInDatabase: there /is/ no database to operate on!\n" );    return;  }  // the headers which are going to be marked  var headers = Components.classes["@mozilla.org/supports-array;1"].createInstance( Components.interfaces.nsISupportsArray );  // create an enumerator for all messages in the database  var enumerator = messageDatabase.EnumerateMessages();  if ( enumerator )  {    while ( enumerator.hasMoreElements() )    {      var header = enumerator.getNext();      if ( ( header instanceof Components.interfaces.nsIMsgDBHdr )         && !header.isRead ) // don't do anything until really necessary      {        var messageDate = header.date;        if ( ( lower <= messageDate ) && ( messageDate < upper ) )          headers.AppendElement( header );      }      else        dump("markByDate::markInDatabase: unexpected: the database gave us a header which is no nsIMsgDBHdr!\n" );    }  }  if ( headers.Count() )    messageFolder.markMessagesRead( headers, true );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/756a525501f0704be541533738df857060252cd2/markByDate.js/buggy/mailnews/base/resources/content/markByDate.js