]> Sergey Matveev's repositories - public-inbox.git/commit
newswww: add /$MESSAGE_ID global redirector endpoint
authorEric Wong <e@80x24.org>
Wed, 9 Jan 2019 11:43:27 +0000 (11:43 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Feb 2019 18:21:00 +0000 (18:21 +0000)
commit98661e7894ae4b516d7b7a9d87e451ef2bfe57ba
tree5527e887258fef7cf3dd7ade8313dd78554205b6
parent0c3a1dabf7fd10ead73140d3f95b3047b144a834
newswww: add /$MESSAGE_ID global redirector endpoint

This is the fallback for the normal WWW endpoint.

Adding this to the top-level seems to be alright, since lynx and
w3m both understand nntp://<HOSTNAME>/<Message-ID> anyways.

If newsgroup and inbox names conflict, then consider it the
fault of the original sender.

Since NewsWWW is intended to support buggy linkifiers in mail clients,
they can interpret nntp:// URLs as http://<HOSTNAME>/<Message-ID>

Inbox ordering from the config file is preserved since
commit cfa8ff7c256e20f3240aed5f98d155c019788e3b
("config: each_inbox iteration preserves config order"),
so admins can rely on that to configure how scanning
works.

Requested-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
cf. https://public-inbox.org/meta/20190107190719.GE9442@pure.paranoia.local/
    nntp://news.public-inbox.org/20190107190719.GE9442@pure.paranoia.local
MANIFEST
lib/PublicInbox/NewsWWW.pm
t/psgi_scan_all.t [new file with mode: 0644]