about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-09-09 00:01:22 +0000
committerEric Wong <e@80x24.org>2016-09-09 00:02:16 +0000
commitc617254e00ae43414236603cf9bbcdc8cbc2b139 (patch)
treec1092f94233b4532f29d288984f11738ece400c5 /lib/PublicInbox/Search.pm
parentf9663d67d1b228b6ceaeaab8329968b0d7e445cb (diff)
downloadpublic-inbox-c617254e00ae43414236603cf9bbcdc8cbc2b139.tar.gz
Sometimes it can be useful to search based on who the
message was sent to, sent by, or Cc:-ed.  Of course,
headers can be faked, but they usually are not...

Anyways this mostly matches the behavior of mairix(1).
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 445c2d8a..aec459b3 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -51,8 +51,8 @@ my %bool_pfx_internal = (
         thread => 'G', # newsGroup (or similar entity - e.g. a web forum name)
 );
 
-# do we still need these? probably not..
 my %bool_pfx_external = (
+        # do we still need these? probably not..
         path => 'XPATH',
         mid => 'Q', # uniQue id (Message-ID)
 );
@@ -61,6 +61,14 @@ my %prob_prefix = (
         subject => 'S',
         s => 'S', # for mairix compatibility
         m => 'Q', # 'mid' is exact, 'm' can do partial
+        f => 'A', # for mairix compatibility
+        t => 'XTO', # for mairix compatibility
+        tc => 'XTC', # for mairix compatibility
+        c => 'XCC', # for mairix compatibility
+        tcf => 'XTCF', # for mairix compatibility
+        # n.b.: leaving out "a:" alias for "tcf:" even though
+        # mairix supports it.  It is only mentioned in passing in mairix(1)
+        # and the extra two letters are not significantly longer.
 );
 
 # not documenting m: and mid: for now, the using the URLs works w/o Xapian