projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
653ff26
)
Index the filename of any attachment.
author
Carl Worth
<cworth@cworth.org>
Wed, 14 Oct 2009 23:28:07 +0000
(16:28 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 14 Oct 2009 23:28:07 +0000
(16:28 -0700)
notmuch-index-message.cc
patch
|
blob
|
history
diff --git
a/notmuch-index-message.cc
b/notmuch-index-message.cc
index 6795430b8c72aa8d8e8e34c6027c561851366a92..636757a165ac68e47a56af69817c25496afa1123 100644
(file)
--- a/
notmuch-index-message.cc
+++ b/
notmuch-index-message.cc
@@
-439,11
+439,13
@@
gen_terms_part (Xapian::TermGenerator term_gen,
return;
}
- disposition = g_mime_object_get_content_disposition (
GMIME_OBJECT (part)
);
+ disposition = g_mime_object_get_content_disposition (
part
);
if (disposition &&
strcmp (disposition->disposition, GMIME_DISPOSITION_ATTACHMENT) == 0)
{
add_term (term_gen.get_document (), "label", "attachment");
+ gen_terms (term_gen, "attachment",
+ g_mime_part_get_filename (GMIME_PART (part)));
return;
}