Article View: news.software.readers
Article #205227Re: Update: [slrn] NNTP-Posting-Host whois lookup macro
From: Blinky the Shark
Date: Wed, 05 Sep 2007 05:49
Date: Wed, 05 Sep 2007 05:49
86 lines
3995 bytes
3995 bytes
Troy Piggins wrote:
> * Blinky the Shark is quoted & my replies are inline below :
>> Troy Piggins wrote:
>>> * Blinky the Shark is quoted & my replies are inline below :
>>>> Blinky the Shark wrote:
>>>> [---=| Quote block shrinked by t-prot: 33 lines snipped |=---]
>>>>>> #v-
>>>>>
>>>>> I ran it on your post and got:
>>>>>
>>>>><q>
>>>>>
>>>>> Unknown AS number or IP network. Please upgrade this program.
>>>>> lines 1-1/1 (END)
>>>>>
>>>>></q>
>>>>
>>>> Then I ran it on some of my own posts and got the slrn help page(s).
>>>
>>> You sure it's /slrn/ help pages? I got the 'whois --help'
>>> output.
>>
>> DUH! Yeah, it's from whois. Don't look a damn bit like slrn help.
>>
>> [embarrassed]
>
>:)
>
> Try this one[1] on for size. It now checks if the header even
> exists first so it throws an error message before whois can
> chuck-a-wobbly and give its help error message.
When I run it on my own posts, nothing happens. Looks like you've got
it this time. :)
>>> That would be because your posts don't seem to contain the
>>> NNTP-Posting-Host header. I should add a check for that. I
>>> should have done that first time round.
>>
>> Ah! I think we just had a discussion on that, and some of the regs here
>> have them and some don't. I didn't think of that either.
>
> Yeah, you guys using mixmaster, anonymous remailers, etc trying
> to hide your privacy ;) Hackers, all of ya!
Hey! slrn and news.individual.net. Ya don't get any more whitebread
than that, Buster. :)
> Just kidding - it's a server thing. Some force it. Some don't.
> I know motzarella doesn't have it, but my ISP does. You can't
> win 'em all.
Righto.
Gold:
> #v+
> define whois_postinghost () {
>
> variable status= is_article_visible ();
>
> if ( status & 1) {
> variable postinghost= extract_article_header ( "NNTP-Posting-Host");
>
> variable ph_exists= strlen ( postinghost);
>
> if ( ph_exists > 0) {
> () = system ( "whois "+postinghost+" | less");
> } else {
> throw InvalidParmError, "This article doesn't contain a NNTP-Posting-Host header";
> }
>
> } else {
> throw InvalidParmError, "You need to display the article to check";
> }
>
> }
>
> definekey ( "whois_postinghost", "\eH", "article");
> #v-
--
Blinky RLU 297263
Killing all posts from Google Groups
The Usenet Improvement Project:
http://improve-usenet.org <----------- New Site Aug 28
Technical Details
Message-ID:
<slrnfdsgso.4je.no.spam@thurston.blinkynet.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<20070905110242@usenet.piggo.com> <slrnfds2dc.vb2.no.spam@thurston.blinkynet.net> <slrnfds2sp.vb2.no.spam@thurston.blinkynet.net> <20070905120737@usenet.piggo.com> <slrnfds750.178.no.spam@thurston.blinkynet.net> <20070905150540@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnfdsgso.4je.no.spam@thurston.blinkynet.net> Subject: Re: Update: [slrn] NNTP-Posting-Host whois lookup macro Date: Wed, 05 Sep 2007 05:49:28 +0000 From: Blinky the Shark <no.spam@box.invalid> References: <20070905110242@usenet.piggo.com> <slrnfds2dc.vb2.no.spam@thurston.blinkynet.net> <slrnfds2sp.vb2.no.spam@thurston.blinkynet.net> <20070905120737@usenet.piggo.com> <slrnfds750.178.no.spam@thurston.blinkynet.net> <20070905150540@usenet.piggo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: http://blinkynet.net Lines: 86 X-Trace: individual.net vqbRERba9GsMjD1OtXjENwNzb0oxLURTTsouPETJf6wrnwa610 Cancel-Lock: sha1:d8oCb8n139g5DIQ5k3SvwuTbZQs= X-The-Usenet-Improvement-Project: http://blinkynet.net/comp/uip5.html X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%; )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E X-OS: Mandriva 2006 Linux; kernel 2.6.12 X-WebTV-Stationery: Standard; BGColor=black; TextColor=black User-Agent: slrn/0.9.8.1 (Linux)