mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
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:
parent
af65f52acf
commit
6a3b68edef
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue