[PATCH 0/10] search: more mairix prefix compatibility

2016-09-08 Thread Eric Wong
This brings us closer to the behavior of mairix(1) for search by supporting n:, t:, c:, f:, tc:, tcf:, n:, b:, and bs: prefixes as documented in the mairix(1) manpage. We also introduce the use of q: and nq: prefixes for quoted and non-quoted text, respectively. There is a schema version change

[PATCH 02/10] search: drop longer subject: prefix for search

2016-09-08 Thread Eric Wong
We only document the "s:" anyways. While the long name is more descriptive, the ambiguity makes agnostic caching (by Varnish or similar) slightly harder and longer URLs are more likely to be accidentally truncated when shared. --- lib/PublicInbox/Search.pm | 1 - t/search.t| 14

[PATCH] doc: document PERL_INLINE_DIRECTORY usage

2016-09-08 Thread Eric Wong
For now, we will document this since it allows better performance without the burden of extensions. Perhaps one day far in the future Perl can natively support vfork(2) AND that version of Perl will be widely available, but I suspect that day is at least a decade away, if not two:

[PATCH] import: hoist out _check_path function

2016-09-08 Thread Eric Wong
This reduces duplication, slightly. We may be using it yet again in a to-be-introduced function (or we may not introduce it). --- lib/PublicInbox/Import.pm | 37 ++--- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/lib/PublicInbox/Import.pm

[PATCH] view: handle missing Content-Type in message

2016-09-08 Thread Eric Wong
Email::MIME internally assumes "text/plain" for messages missing a Content-Type, but does not expose that in the Email::MIME::content_type API method. We must assume it ourselves to avoid uninitialized value warnings for the rare (nowadays) MUAs which do not set it. --- lib/PublicInbox/View.pm |