Thread View: news.software.nntp
2 messages
2 total messages
Started by Aioe
Sun, 16 Dec 2007 20:37
User-Agent and filter_innd.pl
Author: Aioe
Date: Sun, 16 Dec 2007 20:37
Date: Sun, 16 Dec 2007 20:37
21 lines
1554 bytes
1554 bytes
>From perl hook:
----------------
filter_art() has access to a global hash named %hdr, which contains all of
the standard headers present in the article and their values. The standard
headers are:
Approved, Control, Date, Distribution, Expires, From, Lines,
Message-ID, Newsgroups, Path, Reply-To, Sender, Subject,
Supersedes, Bytes, Also-Control, References, Keywords, X-Trace,
NNTP-Posting-Host, Followup-To, Organization, Content-Type,
Content-Base, Content-Disposition, X-Newsreader, X-Mailer,
X-Cancelled-By, X-Canceled-By, Cancel-Key
---------------
'User-Agent' header is missing. Since many newsreaders use it, it could be
useful here.
Re: User-Agent and filter_innd.pl
Author: Julien ÉLIE
Date: Sun, 16 Dec 2007 20:45
Date: Sun, 16 Dec 2007 20:45
70 lines
2989 bytes
2989 bytes
Hi Aioe, > From perl hook: > > 'User-Agent' header is missing. Since many newsreaders use it, it could be > useful here. Yes this header is missing in the documentation. *But*, it exists. It is something I posted to inn-bugs@ ml on May, 2nd 2007 but I have not had the time to do something for it since that day. ----- Message d'origine ----- Objet : Adding other headers in %hdr > Hi, > > First of all, there is a discrepancy between the actual > headers in %hdr and what is mentioned in hook-perl/python.pod; > indeed, these fields are missing in hook-perl.pod while > there are in innd.c: > > Xref > Date-Received > Posted > Posting-Version > Received > Relay-Version > X-Newsposter > User-Agent > X-Original-Message-ID > > > I believe they should be added to hook-perl.pod. Then > hook-perl.py should be updated accordingly. > > > By the way, can new headers be added? > Here is an interesting list: > > X-Complaints-To > NNTP-Posting-Date > In-Reply-To > X-No-Archive > X-Face > Mime-Version > Content-Transfer-Encoding > Cancel-Lock > Cancel-Key > > > Do you know other useful headers which could be appended > to that list? > > When a good list is set, there is only these fields to > add in innd.c, hook-perl/python.pod, tests\innd\fakeinnd.c > and samples\filter_innd.py (easy to do I believe but > I do not provide a patch because I do not know the exact > headers list you wish to add). We also have to take into account what USEFOR does regarding these headers. -- Julien ÉLIE « On ne peut jamais être neutre. Le silence est une opinion. » (Henri Moret)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads