Group: news.software.readers
From: Blinky the Shark
Date: Wednesday, September 05, 2007 12:49 AM
Subject: Re: Update: [slrn] NNTP-Posting-Host whois lookup macro

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:
>>>>>
>>>>>
>>>>>
>>>>> 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).
>>>
>>> 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 . 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:
<----------- New Site Aug 28