oversight on the precedence of expunge-check
authorAndrew Sutherland <asutherland@asutherland.org>
Thu, 09 Oct 2008 00:00:46 -0700
changeset 970 2c5e2d260836f0789d3f10bb6a297694086305b4
parent 969 588eb7390fb72088e8ccb24928308ea700bce890
child 971 024bf69e79b64cbb992f1a2f9446c9171c8dc76c
child 974 06fabe695ede97f7960935c4515e2e867a3eefec
push idunknown
push userunknown
push dateunknown
oversight on the precedence of expunge-check
modules/indexer.js
--- a/modules/indexer.js
+++ b/modules/indexer.js
@@ -1159,17 +1159,17 @@ var GlodaIndexer = {
     
     for (let msgHdr in this._indexingIterator) {
       // per above, we want to periodically release control while doing all
       //  this header traversal/investigation.
       if (++aJob.offset % HEADER_CHECK_BLOCK_SIZE == 0)
         yield this.kWorkSync;
       
       if ((isLocal || msgHdr.flags&MSG_FLAG_OFFLINE) &&
-          !msgHdr.flags&MSG_FLAG_EXPUNGED) {
+          !(msgHdr.flags&MSG_FLAG_EXPUNGED)) {
         // this returns 0 when missing
         let glodaMessageId = msgHdr.getUint32Property(
                              this.GLODA_MESSAGE_ID_PROPERTY);
         
         // if it has a gloda message id, it has been indexed, but it still
         //  could be dirty.
         if (glodaMessageId != 0) {
           // (returns 0 when missing)
@@ -1209,17 +1209,17 @@ var GlodaIndexer = {
       let msgHdr;
       if (typeof item[1] == "number")
         msgHdr = this._indexingFolder.GetMessageHeader(item[1]);
       else
         // same deal as in move processing.
         // TODO fixme to not assume singular message-id's.
         msgHdr = this._indexingDatabase.getMsgHdrForMessageID(item[1]);
       
-      if (msgHdr && !msgHdr.flags&MSG_FLAG_EXPUNGED)
+      if (msgHdr && !(msgHdr.flags&MSG_FLAG_EXPUNGED))
         yield this._indexMessage(msgHdr);
       else
         yield this.kWorkSync;
     }
     yield this.kWorkDone;
   },
   
   /**