Article View: news.software.readers
Article #181152Re: [slrn] macro to search message-id
From: Whiskers
Date: Wed, 01 Mar 2006 23:40
Date: Wed, 01 Mar 2006 23:40
71 lines
3729 bytes
3729 bytes
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 %%%%%
>
> 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
'-----
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.
--
-- ^^^^^^^^^^
-- Whiskers
-- ~~~~~~~~~~
Technical Details
Message-ID:
<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!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<20060301162322@usenet.piggo.com>Show Full Headers
Complete Article Headers
Message-ID: <c0ohd3-mrj.ln1@ID-107770.user.individual.net> Subject: Re: [slrn] macro to search message-id Date: Wed, 1 Mar 2006 23:40:28 +0000 From: Whiskers <catwheezel@operamail.com> References: <20060301162322@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!novia!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 71 X-Trace: individual.net RCErEBf/A2V+ic1GPKawGQ3xEH1dSX09166tqfc6DKcmcKDwGQ X-Orig-Path: ID-107770.user.individual.net!news X-Face: (8UIp\C%,7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_"Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@p& g^8<z5>HA User-Agent: slrn/0.9.8.1 (Linux)