add_message: Add a type:mail ("Kmail") term to all documents.

This gives us an easy way to specify "all mail messages" in a search
query. We simply look for this term.
This commit is contained in:
Carl Worth 2009-10-21 00:34:36 -07:00
parent af65f52acf
commit 6a3b68edef

View file

@ -520,6 +520,8 @@ notmuch_database_add_message (notmuch_database_t *notmuch,
try { try {
doc.set_data (filename); doc.set_data (filename);
add_term (doc, "type", "mail");
parents = g_ptr_array_new (); parents = g_ptr_array_new ();
refs = notmuch_message_file_get_header (message, "references"); refs = notmuch_message_file_get_header (message, "references");