Re: extract_url.pl: A Better URL Viewer
- To: mutt-users@xxxxxxxx
- Subject: Re: extract_url.pl: A Better URL Viewer
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 09:25:38 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date: from:to:subject:message-id:references:mime-version:content-type: in-reply-to; q=dns/txt; s=default; bh=fZ4Zw6KIq2NE3g3t0M+TE/GHYy g=; b=MbcHosL25NLb9+ARlC/TtPCXi/31ZyBHFjK9LqX2mCUc5vMxLxKfSoqXI3 gr7NrHkOlzCfdR9bVBURcAwX83QwLhItyLmJyC2LsB8C8JVITp6eEgLi0+25sNLZ nRsvp9ytwsGOcWHwzPHlAOkVfNO+E+gVACMJzjI4DSWFGR9qI=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=m8qsZNum97hDOzHDy/vfKHK0edHwaO5olJDc5PiAyUgGldxf5b8GxP4mRCqwY8Fjs6NPoBGaMBlbL8b0GH2iFvHwqd7x8IxHGfaEhzl2b6TLpBJx330umDL5aDiQXgBkofpPJ6PWpr+/BX7Y+WVZqKsiRfHZQQkGA4oO6VCr40g=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20080327132249.GA6768@clavius>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20080322051559.GI23641@xxxxxxxxxxxxx> <20080327132249.GA6768@clavius>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-02-27)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday, March 27 at 02:22 PM, quoth Steffen Weise:
> Hello Kyle,
>
> On Sat, Mar 22, 2008 at 12:15:59AM -0500, Kyle Wheeler wrote:
>> After a bit of work, I've gotten a perl script that I think rivals
>> URLView. I call it "extract_url.pl", and it's here:
>> http://www.memoryhole.net/~kyle/extract_url/
>
> thanks for this script. I decided to go the Curses::UI way to get
> rid of urlview and for me it works pretty fine.
You're welcome! :)
> 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.
~Kyle
- --
If you make people think they're thinking, they'll love you; but if
you really make them think, they'll hate you.
-- Don Marquis
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkfrrmIACgkQBkIOoMqOI17tZgCgkAoNAQP4iK38u/gRoN1hC37t
2jwAoJyFHSBKwA4legVRgmRP97RwrPLp
=7GoL
-----END PGP SIGNATURE-----