only process 'rawMessage's twisty
authorMark Hammond <mhammond@skippinet.com.au>
Thu, 12 Mar 2009 22:29:06 +1100
branchtwisty
changeset 83 fe8391db813f12ec730860c862b8c8411d9195d1
parent 82 5e4590a60a3f5e3b94f6161b4d6f6c908fc6cc4c
child 84 6701d42ad3823d8009b95360b229dce41d5b085f
push id1
push userroot
push dateWed, 08 Apr 2009 01:46:05 +0000
only process 'rawMessage's
schema/messages/by/views/by_storage/map.js
--- a/schema/messages/by/views/by_storage/map.js
+++ b/schema/messages/by/views/by_storage/map.js
@@ -1,5 +1,5 @@
 function(doc) {
-  if ((doc.type == 'message' || doc.type== 'rawMessage') && doc.subtype == "rfc822")
+  if (doc.type== 'rawMessage' && doc.subtype == "rfc822")
     if (doc.storage_path && doc.storage_id)
       emit([doc.account_id, doc.storage_path, doc.storage_id], null);
 }