Article View: news.software.nntp
Article #82266Re: Determining which Cycbuff has an article
From: John F. Morse
Date: Tue, 01 Dec 2009 00:55
Date: Tue, 01 Dec 2009 00:55
45 lines
2664 bytes
2664 bytes
Szymon Sokรณล wrote:
> On Mon, 30 Nov 2009 13:26:18 +0000 (UTC), Hauke Lampe wrote:
>
>> John F. Morse schrieb:
>>
>>> I can't find the command to determine which Cycbuff contains a specific
>>> article.
>>>
>> The cycbuff name is encoded in the message token:
>>
>> vindalf:~# grephistory "<37bea827-72e4-4f30-b2de-6b1e12b27342@u20g2000vbq.googlegroups.com>"
>> @03054F544845523133000004A58100000001@
>> ^^^^^^^^^^^^^^
>> O T H E R 1 3
>>
>> I don't know any tools shipped with INN that would decode this easily, though.
>>
>
> This oneliner should do the trick (there are three regexp substitutions -
> the first one cuts the relevant part of the token, the second one converts
> it from hex to ASCII, and the third one removes trailing NULs):
>
> grephistory "<37bea827-72e4-4f30-b2de-6b1e12b27342@u20g2000vbq.googlegroups.com>" |
> perl -ple 's/^\@.{4}(.{16}).{16}\@$/$1/ && s/(..)/chr hex $1/eg && s/\0*$//'
>
news@optima5:/usr/lib/news/bin$ grephistory
"d5v7h59hs39unhrd8e3d65netr07v8vck0@4ax.com" | perl -ple
's/^\@.{4}(.{16}).{16}\@$/$1/ && s/(..)/chr hex $1/eg && s/\0*$//'
002
^^^
That does show buffer 002 which is correct for this particular Message-ID.
The token is: @030230303200000000000001E1AD0000000C@
^^^^^^
0 0 2
Thanks for this information, Szymon.
--
John
Technical Details
Message-ID:
<hf1pi8$k0n$2@optima5.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mailReferences:
<hf03er$3pu$1@optima5.xanadu-bbs.net> <hf0h5q$dcp$1@einschein.formularfetischisten.de> <1s0lchgni4odh.dlg@falcon.sloth.hell.pl>Show Full Headers
Complete Article Headers
Message-ID: <hf1pi8$k0n$2@optima5.xanadu-bbs.net> Subject: Re: Determining which Cycbuff has an article Date: Mon, 30 Nov 2009 18:55:36 -0600 From: "John F. Morse" <john@example.invalid> References: <hf03er$3pu$1@optima5.xanadu-bbs.net> <hf0h5q$dcp$1@einschein.formularfetischisten.de> <1s0lchgni4odh.dlg@falcon.sloth.hell.pl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!news.glorb.com!news2.glorb.com!optima2.xanadu-bbs.net!optima5.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 45 Reply-To: dont.bother Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: optima5.xanadu-bbs.net 1259628936 20503 192.168.89.210 (1 Dec 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Tue, 1 Dec 2009 00:55:36 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (X11/20090817) In-Reply-To: <1s0lchgni4odh.dlg@falcon.sloth.hell.pl> X-Enigmail-Version: 0.96.0