]> git.notmuchmail.org Git - notmuch/blobdiff - lib/database-private.h
lib: cache user prefixes in database object
[notmuch] / lib / database-private.h
index 293f2db42a31ff2cd0dbc73ff9775c53d8de85d5..9d1dabf109625896363b21e9c417dafd7d5d95e6 100644 (file)
@@ -221,6 +221,11 @@ struct _notmuch_database {
     Xapian::ValueRangeProcessor *value_range_processor;
     Xapian::ValueRangeProcessor *date_range_processor;
     Xapian::ValueRangeProcessor *last_mod_range_processor;
+
+    /* XXX it's slightly gross to use two parallel string->string maps
+     * here, but at least they are small */
+    notmuch_string_map_t *user_prefix;
+    notmuch_string_map_t *user_header;
 };
 
 /* Prior to database version 3, features were implied by the database