#115 Proper newsgroups links support

open
nobody
None
5
2014-08-16
2002-07-09
No

Currently the referrer info for newsgroups links only
tells you how many such links have been followed. It
would be nice if a link to the actual messages was
available.

For example, my log file contains:

195.159.141.48 - - [02/Jul/2002:19:42:14 +0200] "GET /
HTTP/1.0" 200 14394
"news://news.powertech.no/Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de"
"Mozilla/4.79 [en] (X11; U; Linux 2.4.17 i586)"

This should be turned into a link to:

news:Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de

The displayed link name could be the actual Message-ID,
with %40 converted to @, and < and > added.

Note that the server info was removed. Clicking on the
link will take you directly to the message (on your
default newsserver) in correctly functioning
browsers/newsreaders. Also note that messages with the
same Message-ID but different servers should be
combined. E.g.:

news://news.powertech.no/Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de
news://news.tiscali.no/Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de

both refers to the same message, and only one link for
it should be displayed (though the number of followed
links should of course be incremente).

As not all people have a newsreader installed, so it
would also be nice if a link to the Google Groups
archive of the message was provided. This link should
go to http://groups.google.com/groups?selm=MID (where
MID is the Message-Id). For this example, it would be:

http://groups.google.com/groups?selm=Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de

Summary:

195.159.141.48 - - [02/Jul/2002:19:42:14 +0200] "GET /
HTTP/1.0" 200 14394
"news://news.powertech.no/Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de"
"Mozilla/4.79 [en] (X11; U; Linux 2.4.17 i586)"

should be converted to the following piece of HTML:

<a
href="news:Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de">&lt;Xns923FB03EBBA00huftis@ID-99504.news.dfncis.de&gt;</a>
(<a
href="http://groups.google.com/groups?selm=Xns923FB03EBBA00huftis%40ID-99504.news.dfncis.de">Google</a>)

which will be displayed in browsers like this:

<Xns923FB03EBBA00huftis@ID-99504.news.dfncis.de> (Google)

Discussion