]> Sergey Matveev's repositories - public-inbox.git/commit
nntp: implement OVER/XOVER summary in search document
authorEric Wong <e@80x24.org>
Wed, 30 Sep 2015 21:00:25 +0000 (21:00 +0000)
committerEric Wong <e@80x24.org>
Wed, 30 Sep 2015 21:09:23 +0000 (21:09 +0000)
commit1d236e649df10515bf042fa2283eef509648d9c9
tree504b59e2c719f948b3f3224935ae212941d79a7c
parent3393117e5ff8faef209bbf4988a59743f00b2a80
nntp: implement OVER/XOVER summary in search document

The document data of a search message already contains a good chunk
of the information needed to respond to OVER/XOVER commands quickly.
Expand on that and use the document data to implement OVER/XOVER
quickly.

This adds a dependency on Xapian being available for nntpd usage,
but is probably alright since nntpd is esoteric enough that anybody
willing to run nntpd will also want search functionality offered
by Xapian.

This also speeds up XHDR/HDR with the To: and Cc: headers and
:bytes/:lines article metadata used by some clients for header
displays and marking messages as read/unread.
lib/PublicInbox/NNTP.pm
lib/PublicInbox/NewsGroup.pm
lib/PublicInbox/Search.pm
lib/PublicInbox/SearchIdx.pm
lib/PublicInbox/SearchMsg.pm
public-inbox-nntpd
t/nntpd.t
t/search.t