Re: URL Handler documentation?
- From: Sean Middleditch <sean middleditch iname com>
- To: "Robert A . Knop Jr ." <rknop pobox com>
- Cc: gnome-list gnome org
- Subject: Re: URL Handler documentation?
- Date: Mon, 29 Jan 2001 20:36:15 -0500
I made a shell script for that. sed rocks. ~,^
make a file in your ~/bin/ directory called mailto-pine.sh or something.
In it, put
#!/bin/sh
pine "`echo \"$1\" | sed \"s/^mailto:\(.*\)$/\1/g p\"`"
#EOF
Then make it executable. That *should* work. Those ` are back-ticks, btw,
not single quotes. Then, just put the command
xterm -e mailto-pine.sh "%s"
And it should work fine. Did for me, anyways...
And if there's a simpler way that you find out about, please tell me? ~,^
On 2001.01.25 13:56:23 -0500 Robert A. Knop Jr. wrote:
> Is there any more documentation on how to define URL Handlers than is
> available in what comes up in the Gnome Help Browser?
>
> My problem is that I'm trying to define a mailto: handler. What I did
> was
> create a new handler with protocol "mailto" and command
>
> xterm -e pine "%s"
>
> It mostly works. When I click in Galeon on a mailto link, an xterm opens
> up with a pine session running. However, instead of just the E-mail
> address in the "To" field, I get something like:
>
> mailto: gnome-list gnome org;
>
> Ideally, I'd like the "mailto:" *not* to show up in Pine.
>
> Is there a way to do this? Are there other variable substitution
> thingies
> besides %s that one can put in there? I haven't been able to find
> documentation on this anywhere.
>
> -Rob
>
>
>
> _______________________________________________
> gnome-list mailing list
> gnome-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-list
>
--
Sean Middleditch
of
AwesomePlay Productions, Inc.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]