jonathan@ramona:~ $ sqlite3 ~/.thunderbird/4ckb7o7v.default/global-messages-db.sqlite
SQLite version 3.7.6.3
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> select count(*) from messageAttributes;
930757
read, fromMe, toMe, to, cc, bcc, isEncrypted, attachmentInfos, repliedTo, forwarded.
I use gloda in my (currently very experimental) attachment tab add-on.
My query looks like:
let query = Gloda.newQuery(Gloda.NOUN_MESSAGE);
if (type)
query.attachmentTypesCategory(MimeCategory(type));
else
query.attachmentTypes();
if (name)
query.attachmentNamesMatch(name);
though I imagine it will get more complicated as I add more features.
I'm not sure I'd use any of the to-be-removed attributes; maybe
attachmentInfos, if I could figure out how it's supposed to work (a lot
of the attachment querying seems strange).
Would it be possible to make all the current attributes searchable, but
just make the uncommon ones slower (i.e. not indexed)? That would ensure
that it's relatively easy to build queries while still making the
database smaller.
- Jim
_______________________________________________
tb-planning mailing list
tb-pl...@mozilla.org
https://mail.mozilla.org/listinfo/tb-planning
If one would like to facet-search on the attachment sizes, for
instances, it would then be easy to add back an attribute (say,
attachmentSizes just like attachmentTypes) that is query-able, and add
special-code to allow queries on ranges (just like for .dateRanges). I
don't know how the search code works, but if anyone feels the need for
extra attributes, these are easily addable.
jonathan