Article View: news.software.readers
Article #181210Re: [slrn] macro to search message-id
From: Troy Piggins
Date: Fri, 03 Mar 2006 01:40
Date: Fri, 03 Mar 2006 01:40
47 lines
2656 bytes
2656 bytes
* SINNER wrote:
> * Troy Piggins wrote in news.software.readers:
>> 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));
>> }
>
> Cool. I have a request. Can you make it use the value from
>
> set non_Xbrowser
> set Xbrowser
>
> instead of hard coding to a browser?
I just surprised myself by getting it to work so quickly - I am getting
cocky now ;-)
I didn't look at Xbrowser because I would never use a Xbrowser from
slrn.
define mid_search ()
{
variable browser_url = sprintf ( get_variable_value ( "non_Xbrowser"),
"http://groups.google.com/groups?as_umsgid=");
variable mid = read_mini ( "Enter Message-ID : ", "", "");
() = system (sprintf (browser_url+"%s", mid));
}
definekey ("mid_search", "L", "article");
--
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:
<20060303113807@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-mailReferences:
<20060301162322@usenet.piggo.com> <7gfkd3xdoi.ln2@news.gates-of-hell.com>Show Full Headers
Complete Article Headers
Message-ID: <20060303113807@usenet.piggo.com> Subject: Re: [slrn] macro to search message-id Date: Fri, 03 Mar 2006 01:40:44 +0000 From: Troy Piggins <usenet-0603@piggo.com> References: <20060301162322@usenet.piggo.com> <7gfkd3xdoi.ln2@news.gates-of-hell.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 Newsgroups: news.software.readers Reply-To: usenet-0603@piggo.com User-Agent: slrn/0.9.8.1/rt (Linux) Lines: 47 NNTP-Posting-Host: 203.206.74.180 X-Trace: 1141350044 per-qv1-newsreader-01.iinet.net.au 21874 203.206.74.180