From 0df58f99a71268c98bb21cab0a98ddd25a5b83b2 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 9 Sep 2016 00:01:31 +0000 Subject: search: index attachment filenames And while we're at it, ensure searching inside displayable attachment bodies works. --- lib/PublicInbox/Search.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/Search.pm') diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index ceee39af..0c056772 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -69,6 +69,7 @@ my %prob_prefix = ( tcf => 'XTO XCC A', b => 'XNQ XQUOT', bs => 'XNQ XQUOT S', + n => 'XFN', # n.b.: leaving out "a:" alias for "tcf:" even though # mairix supports it. It is only mentioned in passing in mairix(1) @@ -77,7 +78,7 @@ my %prob_prefix = ( nq => 'XNQ', # default: - '' => 'XMID S A XNQ XQUOT', + '' => 'XMID S A XNQ XQUOT XFN', ); # not documenting m: and mid: for now, the using the URLs works w/o Xapian -- cgit v1.2.3-24-ge0c7