Re: setting firefox about:config to invoke or start mutt when
- To: mutt-users@xxxxxxxx
- Subject: Re: setting firefox about:config to invoke or start mutt when
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Tue, 21 Apr 2009 14:48:51 -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; s=default; bh=JILF0BEBkTlh9t6mLN0yaUPVeu8=; b=fSc7 WD/uH41qHOVM5nISPYqeiDp8RQMUjzNo6S2SybCqp0rCB173BJXDco0iijsdRGO8 I0bQsBiwhuqdMclKQiV/ilbzPNKHxjNRiOmNtlBNlW9Vb/HGq5irpYn+aAQec2Fi GJByBfRYaK+4hVgwyjdu8xBTy6sdCNLyQaZADvc=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=NrS/UsBprYjYp6GfFUOukz6mN+EYTrvWpYDBdIY9QRwsqKtddTWcBU3Kq+XBk4BQ1yjZX2yQLh8TAYSRTdovlHelwf7eYImiza8MpR4kcllM+NS1rP2oWuKNozg7fBtL6vClarZddlGI+Yc3+mNn+4dLdywFd0+7b7eDGtdeF6o=; 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: <20090421192135.GB6705@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: <20090421192135.GB6705@xxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-04-17)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tuesday, April 21 at 03:21 PM, quoth jkinz@xxxxxxxx:
>The script is a little slow. It has 14 or so spawned processes
>which could be replaced by internal Bash parameter
>expansions.
Lemme see if I can help with that. :)
>Here is script I found on the web; modified to invoke mutt under the
>KDE konsole terminal app:
>
>#!/bin/bash
>MAILTO_URL="$1"
>
>#Strip off the protocol
>MAIL_DATA=$(echo "$MAILTO_URL" | /bin/sed -s 's/^mailto://')
MAIL_DATA=${MAILTO_URL#mailto:}
>#Get Recipient and strip it off
>RECIPIENT=$(echo "$MAIL_DATA" | cut -d? -f1 -)
RECIPIENT=${MAIL_DATA%%\?*}
>MAIL_DATA=$(echo "$MAIL_DATA" | /bin/sed -s s/^$RECIPIENT//)
MAIL_DATA=${MAIL_DATA#$RECIPIENT}
>#Get Subject,BCC, and CC
>SUBJECT=$(echo "$MAIL_DATA" | /bin/sed -s 's/.*?subject=//' \
>| /bin/sed -s 's/?.*//')
SUBJECT=${MAIL_DATA#*\?subject=}
SUBJECT=${SUBJECT%%\?*}
>BCC=$(echo "$MAIL_DATA" | /bin/sed -s 's/.*?bcc=//' | /bin/sed -s 's/?.*//')
BCC=${MAIL_DATA#*\?bcc=}
BCC=${BCC%%\?*}
>CC=$(echo "$MAIL_DATA" | /bin/sed -s 's/.*?cc=//' | /bin/sed -s 's/?.*//')
CC=${MAIL_DATA#*\?cc=}
CC=${CC%%\?*}
>It's very slow to pop up the mutt window, so I'm sure I'll eventually
>upgrade those $( echo blah | sed ) transforms to PE expressions, unless
>I come across a better solution in the meantime.
Hope I could help!
>The first goal was just to get "something" working so I could
>respond to ads on craigslist with a single click... :)
Careful! I hear that thing is full of killers! ;)
~Kyle
- --
The past isn't dead and buried. In fact, it isn't even past.
-- William Faulkner
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAknuIyIACgkQBkIOoMqOI14YTQCfSNddVCJFGWHZOykRS35MPq7e
mOYAoMdvifmdZdq9/VNvSYO7M4G8A6rR
=/gsh
-----END PGP SIGNATURE-----