new-tracking for general indexing
authorAndrew Sutherland <asutherland@asutherland.org>
Wed, 01 Oct 2008 12:42:34 -0700
changeset 954 c47e0d5cd11b8826c3f6abfe515c02c65e618ed6
parent 953 cb76e1d36947f6d9c3ee978670d3d6568792ff18
child 955 cc31b4657f0b670eb48628fca09e523981197ea9
push idunknown
push userunknown
push dateunknown
new-tracking for general indexing
modules/gloda.js
modules/index_ab.js
--- a/modules/gloda.js
+++ b/modules/gloda.js
@@ -1335,17 +1335,17 @@ var Gloda = {
     aMessage._replaceAttributes(memAttribs);
 
     if (aIsNew)
       GlodaCollectionManager.itemsAdded(aMessage.NOUN_ID, [aMessage]);
     else
       GlodaCollectionManager.itemsModified(aMessage.NOUN_ID, [aMessage]);
   },
 
-  _processNounItem: function gloda_ns_processNounItem(aItem, aRawItem) {
+  _processNounItem: function gloda_ns_processNounItem(aItem, aRawItem, aIsNew) {
     // For now, we are ridiculously lazy and simply nuke all existing attributes
     //  before applying the new attributes.
     aItem._datastore.clearAttributes(aItem);
 
     let allAttribs = [];
 
     let attrProviders = this._attrProviderOrderByNoun[aItem.NOUN_ID];
     for (let iProvider = 0; iProvider < attrProviders.length; iProvider++) {
--- a/modules/index_ab.js
+++ b/modules/index_ab.js
@@ -90,17 +90,17 @@ var GlodaABIndexer = {
   onItemPropertyChanged: function ab_indexer_onItemPropertyChanged(aItem,
       aProperty, aOldValue, aNewValue) {
     if (aProperty == null && aItem instanceof Ci.nsIAbCard) {
       this._log.debug("Received Card Change Notification");
       let card = aItem; // instanceof already QueryInterface'd for us.
       let identity = GlodaDatastore.getIdentity("email", card.primaryEmail);
       if (identity) {
         this._log.debug("Found identity, processing card.");
-        Gloda._processNounItem(identity.contact, card);
+        Gloda._processNounItem(identity.contact, card, false);
         this._log.debug("Done processing card.");
       }
     }
   }
 };
 GlodaIndexer.registerIndexer(GlodaABIndexer);
 
 var GlodaABAttrs = {