🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #181158

Re: [slrn] macro to search message-id

#181158
From: Troy Piggins
Date: Thu, 02 Mar 2006 03:23
89 lines
4436 bytes
* Whiskers wrote:
> On 2006-03-01, Troy Piggins <usenet-0603@piggo.com> wrote:
>> Don't know if there is a better way to do this, but some may find this
>> useful:
>>
>> I read from a local spool (provided by slrnpull) that only has limited
>> messages/posts on it.  Occassionally I see a Message-ID referred to in a
>> post that is not in my spool.  Rather than copying and pasting this M-ID
>> into a browser and searching google groups or http://message-id.net I
>> wrote this little macro to do it all from within slrn using elinks.
>>
>> %%%%% macro - copy into a file and interpret that file in .slrnrc %%%%%
>> define mid_search ()
>> {
>>   variable mid = read_mini ( "Enter Message-ID : ", "", "");
>>   () = system (sprintf ("elinks http://message-id.net/%s", mid));
>> }
>>
>> definekey ("mid_search", "L", "article");
>> %%%%% end code %%%%%

I changed the system call line to this:

() = system (sprintf ("elinks http://groups.google.com/groups?as_umsgid=%s", mid));

It seems to play better with lynx if you use that as a browser.

>> So in article I press 'L', enter the M-ID at the prompt and hit enter,
>> and elinks opens the message.
>>
>> I guess you could do the same if you only had lynx, just change the
>> appropriate command, although lynx doesn't do frames so you'll need to
>> follow the 'noframes' link.
>
> This is one to be added to my 'must try' stock of slrn goodies  :))
>
> It seems to be doing something similar to the second one on this page 
><http://strcat.neessen.net/dotfiles/slrn/my_macros.sl>, beginning 
>
> .-----
>| % msg_id search macro for google modified from:
>| % de_spy v0.5 [by Tomasz 'tsca' Sienicki, <tsca@edb.dk>      ]
>| %             [<http://www.geocities.com/tsca.geo/slang.html>]
>| % Modified by Keith Wyatt n6jpa_spam@attbi.com 
> '-----

Had a bit of a look - not sure exactly just by reading the code, but it
looks like it extracts the Message-ID from the current article.  Why
would you want to do that?

Mine you actually enter the msg_id - like if someone quotes one in a
post and it's not on your spool.

> Note that the Message ID, with <>, should be enclosed in "" thus:
>
>     links http://message-id.net/"<20060301162322@usenet.piggo.com>"
>
> to avoid the /<...> combination being interpreted as a 'newline' by the 
> OS; but cutting out the middle-man and the <>, works without the "":
>
>     links http://groups.google.com/groups?as_umsgid=20060301162322@usenet.piggo.com
>
> (Note also that slrn can be told which browser to use via the 'set
> Xbrowser' and 'set non_Xbrowser' lines in your ~/.slrnrc).  
>
> Lynx doesn't work for me with Google; I get 
>
> .-----[ error from Google using Lynx ]
>|                                                                400 Bad 
>| Request
>|    Google                                                                  
>|     
>|             Error
>| 
>|                                   Bad Request
>|                                              
>|     Your client has issued a malformed or illegal request.
> '-----
>
> but Links does work.
>

It works with my script/macro ;-)

-- 
Troy Piggins
Ubuntu 5.10  pkgs : kernel 2.6.12-9-386, postfix 2.2.4, procmail 3.22
Compiled from src : slrn 0.9.8.1/rt (score_color patch), mutt 1.5.11i
                      vim 6.4
Technical Details
Message-ID: <20060302131957@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!border2.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.uwa.edu.au!nntp.waia.asn.au!203.59.27.186.MISMATCH!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
References: <20060301162322@usenet.piggo.com> <c0ohd3-mrj.ln1@ID-107770.user.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <20060302131957@usenet.piggo.com>
Subject: Re: [slrn] macro to search message-id
Date: Thu, 02 Mar 2006 03:23:47 +0000
From: Troy Piggins <usenet-0603@piggo.com>
References: <20060301162322@usenet.piggo.com> <c0ohd3-mrj.ln1@ID-107770.user.individual.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!border2.nntp.dca.giganews.com!nntp.giganews.com!news1.optus.net.au!optus!news.uwa.edu.au!nntp.waia.asn.au!203.59.27.186.MISMATCH!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-0603@piggo.com
User-Agent: slrn/0.9.8.1/rt (Linux)
Lines: 89
NNTP-Posting-Host: 203.206.74.180
X-Trace: 1141269827 per-qv1-newsreader-01.iinet.net.au 21877 203.206.74.180