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 . Then add the line:
>>
>> interpret
>>
>> 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:
>
>
>
> Unknown AS number or IP network. Please upgrade this program.
> lines 1-1/1 (END)
>
>
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:
<----------- New Site Aug 28