On Thu, Jul 15, 2010 at 03:05:32PM +0100, Chris G wrote:
> However, obviously, the /usr/bin/firefox line in mailcap doesn't work
> because there's no Firefox on the GUI-less mail server.  What's the
> easiest way (if there is one) of feeding the HTML E-Mail from mutt
> running on the mail server into a (nearly always) running firefox on
> my desktop machine?

There isn't. You'll need to copy the file to your local machine and then
run firefox on it.

And to copy it? You'd need a reverse ssh:

        scp "$@" host:/tmp
        ssh host 'eval $(ps auxe |
                grep  firefo[x] |
                grep -Eo '(DISPLAY|XAUTHORITY)=[^[:space:]]*'
         );
        export DISPLAY XAUTHORITY;
        '"firefox /tmp/$...@##*/}"

And put that on a script and use that in the mailcap.

-- 
0/0

Reply via email to