Article View: news.software.readers
Article #205220Re: [slrn] NNTP-Posting-Host whois lookup macro
From: Blinky the Shark
Date: Wed, 05 Sep 2007 01:50
Date: Wed, 05 Sep 2007 01:50
55 lines
2874 bytes
2874 bytes
Blinky the Shark wrote:
> Troy Piggins wrote:
>> Hi guys,
>>
>> Just threw together a quick macro[1] for slrn that extracts the
>> NNTP-Posting-Host header's IP address or hostname, runs it
>> through whois, and displays the output all within slrn.
>>
>> I find sometimes I do whois lookups to distinguish legit vs
>> imposter posts, and decided I do it enough to make writing a
>> small macro to make life easier. It's not bad.
>>
>> If you try it and can think of any improvements, let me know.
>>
>> Just save everything between the verbatim marks below to a file. I
>> called it nntp-postinghost.sl. Then add the line:
>>
>> interpret nntp-postinghost.sl
>>
>> to your .slrnrc. The definekey statement binds the macro to
>> [ESC]-H, but you can change that to whatever you want.
>>
>> Hope that all makes sense.
>>
>> [1]
>> #v+
>> define whois_postinghost () {
>>
>> variable postinghost=extract_displayed_article_header("NNTP-Posting-Host");
>> () = system ( "whois "+postinghost+" | less");
>>
>> }
>>
>> definekey ( "whois_postinghost", "\eH", "article");
>> #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).
Then I ran it on some other people's posts and got the whois.
--
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:
<slrnfds2sp.vb2.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>Show Full Headers
Complete Article Headers
Message-ID: <slrnfds2sp.vb2.no.spam@thurston.blinkynet.net> Subject: Re: [slrn] NNTP-Posting-Host whois lookup macro Date: Wed, 05 Sep 2007 01:50:32 +0000 From: Blinky the Shark <no.spam@box.invalid> References: <20070905110242@usenet.piggo.com> <slrnfds2dc.vb2.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-mail Newsgroups: news.software.readers Organization: http://blinkynet.net Lines: 55 X-Trace: individual.net CAW/8itWEptGK3yJtoV4EQ0CyIhyIIGMJLk1DddeJ+C09C+owC Cancel-Lock: sha1:uTBTECf8Smht+WDTwjWVkTK6NWI= 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)