Article View: news.software.readers
Article #20607Re: whose is `perl5newspkg'?
From: ccrlphr
Date: Mon, 15 Apr 1996 00:00
Date: Mon, 15 Apr 1996 00:00
46 lines
2450 bytes
2450 bytes
In article <960414.233720.8g2.rnr.w164w@locutus.ofB.ORG>,
Russell Schulz <Russell_Schulz@locutus.ofB.ORG> wrote:
><garbage-headers> writes:
>
>> From: ian
>> Newsgroups: comp.lang.perl.misc
>> Date: 10 Apr 1996 22:38:36 GMT
>> Message-ID: <4khd9c$jq7@soap.news.pipex.net>
>> X-Newsreader: perl5newspkg
>
>whose is this? (there's nothing called `newspkg' in the module list,
>although it might be part of the NNTPclient).
>
>it should have never allowed that From: header. I'm not sure if this
>`ian' is intending to post anonymously, but he certainly is doing it.
I guess this message was send with the inews replacement I put into my perl
written news sucker package. because anybody is free to use the "From:" header
he likes (news is not more secure than mail - don't blame any software who
merely uses this protocol) I've put the following into the inews code:
> $from=$ENV{NNTP_FROM};
> $from="$ENV{LOGNAME}@".`hostname` unless ($from);
> ...
> $path=$ENV{NNTP_HOSTNAME};
> $path=`hostname 2>/dev/null` unless ($path);
> ...
> print F "From: $from\n";
> print F "Path: $path\n";
> print F "X-Newsreader: perl5newspkg\n" unless ($message=~/X-Newsreader/sg);
like you see I've tried my best. UNIX machines which are only get an IP
once the dial up to the internet don't have a usable hostname and most times
have silly login names which has nothing to do with the real e-mail address
of the user. That's why I've put NNTP_FROM first, same with NNTP_HOSTNAME.
Used right this behavior should reduce the number of people posting as "root"
like you see much to often.
And - NNTP has the same weakness as SMTP, so don't blame the client programs
but blame the protocol which allows this.
--
+++ Steffen Ullrich +++ ccrlphr@xensei.com +++ http://www.xensei.com/users/ccrlphr/ +++
Technical Details
Message-ID:
<4ku2jh$ko9@xensei3.xensei.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<960414.233720.8g2.rnr.w164w@locutus.ofB.ORG>Show Full Headers
Complete Article Headers
Message-ID: <4ku2jh$ko9@xensei3.xensei.com> Subject: Re: whose is `perl5newspkg'? Date: Mon, 15 Apr 1996 00:00:00 +0000 From: ccrlphr@xensei.com References: <960414.233720.8g2.rnr.w164w@locutus.ofB.ORG> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 147628238 Organization: none Newsgroups: comp.lang.perl.misc,news.software.readers