Article View: news.software.readers
Article #205218Re: [slrn] NNTP-Posting-Host whois lookup macro
From: Blinky the Shark
Date: Wed, 05 Sep 2007 01:42
Date: Wed, 05 Sep 2007 01:42
50 lines
2628 bytes
2628 bytes
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>
--
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:
<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!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<20070905110242@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnfds2dc.vb2.no.spam@thurston.blinkynet.net> Subject: Re: [slrn] NNTP-Posting-Host whois lookup macro Date: Wed, 05 Sep 2007 01:42:20 +0000 From: Blinky the Shark <no.spam@box.invalid> References: <20070905110242@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!t-online.de!news-lei1.dfn.de!news1.uni-leipzig.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: http://blinkynet.net Lines: 50 X-Trace: individual.net X2vtariAOzHp+kE4k93rXAu9SuI4jl/R1UV2v012PQ1MLpv709 Cancel-Lock: sha1:al72x+zCV9OLq621XoznaQ16Xrs= 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)