Article View: news.software.readers
Article #205251Re: Update: [slrn] NNTP-Posting-Host whois lookup macro
From: Troy Piggins
Date: Wed, 05 Sep 2007 21:12
Date: Wed, 05 Sep 2007 21:12
64 lines
3719 bytes
3719 bytes
* Peter J Ross is quoted & my replies are inline below :
> In news.software.readers on Wed, 05 Sep 2007 21:37:37 +1000, Troy
> Piggins <usenet-0709@piggo.com> wrote:
>
>> * FACE is quoted & my replies are inline below :
>>> On Wed, 05 Sep 2007 15:12:45 +1000, in news.software.readers Troy Piggins
>>> <usenet-0709@piggo.com>, wrote:
>>>
>>>>If anyone knows of other headers that may contain useful
>>>>IP/hostname information, let me know and I can add it.
>>>
>>> I believe that X-Trace does, but good luck in reading it. (If anyone knows
>>> how that line is encrypted, and how to decrypt it, please share.)
>>
>> Thanks for that. I had a quick browse for it, but it seems to be
>> newsreader specific, so doubt it can be easily added to my macro.
>
> X-Trace is (or at least should be) added by the server, not the
> newsreader. It *may* contain an unencrypted IP address.
Thanks for the clarification.
> Another header that may contain an IP address is Injection-Info.
I'll look into adding it. Thanks.
> In both cases you'd have to extract anything that seemed to be an IP
> address from the header.
>
> S-Lang regex:
> \<\d\{1,3\}\.\d\{1,3\}\.\d\{1,3\}\.\d\{1,3\}\>
That'd be the one I need to look for, I think.
> PCRE regex:
> \b(\d{1,3}\.){3}\d{1,3}\b
>
> POSIX.2 regex (for "grep -e" etc.):
> \b\([0-9]\{1,3\}\.\)\{3\}[0-9]\{1,3\}\b
> (This is the only one I've tested.)
>
> LISP regex:
> probably a mixture of the above with about twenty extra
> backslashes ;-)
LOL.
> In fact, you could parse all headers for IP addresses, but you'd have
> to exclude at least Path: and Message-ID, which may contain IP
> addresses that identify a news server, not a poster.
I don't think I want to go that far.
> Anyway, your macro looks useful enough already, without a huge amount
> of elaboration being needed. Thanks.
No worries. I figure if I find something useful, others are sure
to.
--
Troy Piggins | http://piggo.com/~troy
** NEW whois.sl MACRO 5/9/07 ** ___ | __ __ ,-O (o- O
slrn macros and howto: |___ | |/ |/ | O ) //\ O
http://piggo.com/~troy/slrn ___| | | | | `-O V_/_ OOO
Technical Details
Message-ID:
<20070906071036@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!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!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> <6d2td3loe2armjvd255ic60kqm5sjs7dp9@4ax.com> <20070905213330@usenet.piggo.com> <slrnfdtjus.3bm.pjr@pjr.gotdns.org>Show Full Headers
Complete Article Headers
Message-ID: <20070906071036@usenet.piggo.com> Subject: Re: Update: [slrn] NNTP-Posting-Host whois lookup macro Date: Thu, 06 Sep 2007 07:12:48 +1000 From: Troy Piggins <usenet-0709@piggo.com> 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> <6d2td3loe2armjvd255ic60kqm5sjs7dp9@4ax.com> <20070905213330@usenet.piggo.com> <slrnfdtjus.3bm.pjr@pjr.gotdns.org> 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!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail Newsgroups: news.software.readers Reply-To: usenet-0709@piggo.com X-NNTP-Proxy: Leafnode-2 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/) User-Agent: slrn/0.9.8.1pl2.1/rt (Linux) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 64 NNTP-Posting-Host: 124.171.193.207 X-Trace: 1189026902 per-qv1-newsreader-01.iinet.net.au 28509 124.171.193.207