projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af65f52
)
add_message: Add a type:mail ("Kmail") term to all documents.
author
Carl Worth
<cworth@cworth.org>
Wed, 21 Oct 2009 07:34:36 +0000
(
00:34
-0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 21 Oct 2009 07:34:36 +0000
(
00:34
-0700)
This gives us an easy way to specify "all mail messages" in a search
query. We simply look for this term.
database.cc
patch
|
blob
|
history
diff --git
a/database.cc
b/database.cc
index 5ee07059cda75569fe7e7bbfd6ffca6b23a4c823..1c1e590b351603f5b0e3d02e0dac6dbb2eea54af 100644
(file)
--- a/
database.cc
+++ b/
database.cc
@@
-520,6
+520,8
@@
notmuch_database_add_message (notmuch_database_t *notmuch,
try {
doc.set_data (filename);
+ add_term (doc, "type", "mail");
+
parents = g_ptr_array_new ();
refs = notmuch_message_file_get_header (message, "references");