Re: pager: avoid line breaks in URLs
- To: mutt-users@xxxxxxxx
- Subject: Re: pager: avoid line breaks in URLs
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Sat, 15 Nov 2008 21:53:23 -0600
- 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 :content-transfer-encoding:in-reply-to; s=default; bh=2vmO31fkbX wi0VkBPJiRPuBUxBQ=; b=M8m+fmWEs5DTjO1cyJQBn2iQm85COl2LNBo4F2oaw4 B2hJz7ww/yALr5vMNJvua0S9CTLAWbpaY5R0ITZ10II/zQC0rvXLRgXgb+DJFIYS 3EPPy4CaHNw1z63gY7/81HsYxLRsSvkJANMaoZ2zabeMZOYXYxNNDzcf7/vD+Ak0 E=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=UBmJ1NXAPztkl2OXtyhAnQp665zCDHOTpynivLPOsKr91VvgF5tEQLah026ed2S3rz9UuBsvYn3f20NknxjZ5u+0AhHa0ZBley7t1hjMl/BAXU39srwBXNtcOM9MZYYo/jo+1HrYzyDW6Wn9HU1iC9i2QZHYy8cv82mGNxlVo6o=; h=Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:Content-Transfer-Encoding:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20081115191319.GB28118@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- 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: <20081115102724.GA8327@xxxxxxxxxxxxxxxxxxxxxxxxxx> <20081115184125.GD4800@xxxxxxxxxxxxx> <20081115191319.GB28118@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.13 (2006-08-11)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday, November 15 at 08:13 PM, quoth martin f krafft:
> I don't want an external pager.
I don't blame you...
> And as long as urlview cannot deal with X (I read mail on my
> mailserver, which has no X, and want to open URLs locally), it's of
> little use...
Eh? What's X got to do with it? urlview just runs whatever program you
want. It can run firefox if you want it to, and if your DISPLAY
setting is correct, firefox will display on your local system (even
though it's running on the remote system). That's not the issue, the
issue is sending the url from the remote system to firefox running on
your local system, and that's got *nothing* to do with X or with
urlview.
Of course, that doesn't really *help* you much, just gives you a
better idea of where the problem is. What you really want is a little
program that would work with, say, an ssh tunnel to pass information
from your server back to a url launcher on the local side.
Personally, that's why I use mutt locally, reading email via IMAP. But
it shouldn't be too hard to set up a simple little URL launcher that
you could tunnel over ssh. The local side would be something really
simple, like this:
#!/bin/bash
while read url ; do
firefox -a firefox -remote "openurl($url)"
done
The real trick to it would be setting up ssh to do the tunnel,
launching the local script, and ensuring that the remote side sends
the URL to the right place.
~Kyle
- --
No man goes so high as he who knows not where he is going.
-- Cromwell
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFJH5kzBkIOoMqOI14RAoG0AJsHqlADULnXD5E0RwAJYP2lYMPYcACgqKPj
jf/vRiOfIRXkKtffQTU01Eo=
=AmdI
-----END PGP SIGNATURE-----