Re: extract_url.pl: A Better URL Viewer
* On Thu, Mar 27, 2008 at 09:25:38AM -0500, Kyle Wheeler wrote:
> On Thursday, March 27 at 02:22 PM, quoth Steffen Weise:
> > Just a minor flaw: when I return to index menu the status bar says
> > "Usage: set variable=yes|no". It only happens if I've called your
> > script. Any ideas about this?
>
> That's a problem that occurred with the original macro that I had on
> the page, because there was a typo in it. I've updated the webpage to
> be more correct. Here's the issue: in the macro definition, you need
> to put a backslash in front of the $'s, so that they're evaluated when
> the macro is evaluated, rather than when the macro is defined. For
> example:
>
> macro index,pager \cb "<enter-command> set my_pdsave=\$pipe_decode<enter>\
> <enter-command> unset pipe_decode<enter>\
> <pipe-message>extract_url.pl<enter>\
> <enter-command> set pipe_decode=\$my_pdsave<enter>" "get URLs"
>
> Note the \$ parts? That fixes that "set variable" problem.
Unfortunately this script does not work for me at all :-/
If I invoke it inside mutt with the ^b macro from your website (the
latest version) it throws out the list of URLs and freezes ... I have to
kill extract_url.pl to be able to continue with mutt. The same happens
if I cat a message to extract_url in the commandline ...
Not sure how I can find out what's going wrong exactly ... can you give
me a little hint?
Greetz
Stefan