From a0acd80571373595838617034540e1503f744737 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 2 May 2016 04:22:40 +0000 Subject: nntp: append Archived-At and List-Archive headers For readers using NNTP, we should do our best to advertise the clonable HTTP/HTTPS URLs and the message permalink URL for ease-of-referencing messages, since we don't want the NNTP server and it's sequential article numbers to be relied on. --- lib/PublicInbox/NNTPD.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/PublicInbox/NNTPD.pm') diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index 85109ea7..2c84fb30 100644 --- a/lib/PublicInbox/NNTPD.pm +++ b/lib/PublicInbox/NNTPD.pm @@ -30,11 +30,12 @@ sub refresh_groups () { my $git_dir = $pi_config->{$k}; my $addr = $pi_config->{"publicinbox.$g.address"}; my $ngname = $pi_config->{"publicinbox.$g.newsgroup"}; + my $url = $pi_config->{"publicinbox.$g.url"}; if (defined $ngname) { next if ($ngname eq ''); # disabled $g = $ngname; } - my $ng = PublicInbox::NewsGroup->new($g, $git_dir, $addr); + my $ng = PublicInbox::NewsGroup->new($g, $git_dir, $addr, $url); my $old_ng = $self->{groups}->{$g}; # Reuse the old one if possible since it can hold -- cgit v1.2.3-24-ge0c7