> I've tried settings -> apps -> mailto -> shellscript
> 
> Shellscript:
> 
> #!/bin/sh
> exec xterm -e mutt "$@"
> 
> The xterm only pops up for 1 second.

That's very close to the script that is working for me (using
Iceweasel 3.0.6 on Lenny):

        #!/bin/sh

        prefixWords=

        if [ -t 0 -a -t 1 ]
        then
                prefixWords=
        else
                prefixWords="xterm -e"
        fi

        set -x
        $prefixWords mutt -- "$@"


I don't think your "exec" should cause a problem, but it may be worth
trying without it.

You may need the -- in case any of the arguments begins with '-'. 
I can't think off-hand if that is likely.

By the way, the "if" tests whether you're running from a terminal
already, and opens mutt there if you are. Otherwise it fires up an
xterm.


You might get some more information by temporarily changing your xterm
line to

exec xterm -e bash -c "set -x; mutt $*; read -p 'Press enter to exit '"


-- 
Cheers,
Clive


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to