Re: viewing URLs (muttils or lynx?)
- To: mutt-users@xxxxxxxx
- Subject: Re: viewing URLs (muttils or lynx?)
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 26 Mar 2008 08:39:04 -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=CStJR3uEpJHcos6Ac7AnDTfQ+G I=; b=CZERP39++VSYW1FG1bInUhecF+BLHuaNXA5SQKr+l7Jv+NBMrkcYNBNEU0 YPT7QGkUQKNBQbmmYbTVdtSgzRVhFYR+wVXzBkErbnDly7fBlOmiYYbhXJflW2L4 41RHanqPSvVZQUNZo8BTJ6Affto6fv2aC4M+gmLUrG2YDv6lc=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=UWMzfbCFWc4eIm19ZqEhmSe29F+FDEzgm+S0KJiKoZWsSAo3OFicpaN5dmBH3u8vumVsMI/WYos2IjDfP4EQYDDBTvry+45+vaxIlRVuAdj/hbvwiqG71TQMgJm6vUySGr1D63yiNB/U06kEFjx5hEqft5UGF+rjGxS1b69OQ5U=; 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: <20080326085940.GA6466@xxxxxxxxxxxxxxxx>
- 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: <20080216225208.GA443@xxxxxxxxxxxxxxxxxxx> <20080314215005.GC4973@xxxxxxxxxxxxxxxx> <20080326063705.GD21847@xxxxxxxxxxxxx> <20080326085940.GA6466@xxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.17 (2008-02-27)
On Wednesday, March 26 at 09:59 AM, quoth Robert Svoboda:
* Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx> [2008-03-26 07:40]:
On the thought that just parsing <a> links would be
sufficient, I whipped up a little perl script based on what
I've done for extract_url.pl. I call this little script
"tagurl.pl". I'm not completely satisfied with it yet, but
it's a start. What do you think?
I tried to write it myself (bash) but I'm not good at it so it
takes its time. Your code seems to do much better job than
mine.
Well, that's perl for you: blazing fast at text manipulation. I'm a
bit of a bash wizard m'self, but getting great performance out of bash
at that sort of thing requires using bash's built-in functions, which
are somewhat limited (e.g. ${variable//search/replace}).
BTW, there is semicolon missing at the end of line 56.
Ah, right! Good catch. :)
I also noticed that my getopts call was missing an 's' at the end, so
argument handling was completely broken. Attached is a fixed version.
OR as a $display_filter that extracts/tags links from plaintext.
I can confirm that this works. Great work Kyle. Thanks a lot
for sharing it.
Excellent! :)
~Kyle
--
Some people are afraid of heights. Not me, I'm afraid of widths.
-- Steven Wright
Attachment:
tagurl.pl
Description: Perl program
Attachment:
pgpaeahkvfMOR.pgp
Description: PGP signature