Re: text/html; mutt_bgrun mozilla.sh %s; test=InXTerm
On 2005-11-03, Chris Green <chris@xxxxxxxxxxx> wrote:
> I have these lines in my .mailcap, probably from someone here:-
>
> text/html; mutt_bgrun mozilla.sh %s; test=InXTerm
> text/html; lynx -underscore -force_html -dump %s; copiousoutput
>
> OK, so this launches mozilla if I want. However when just displaying
> HTML as text using lynx I get some errors about InXTerm (it doesn't
> exist).
>
> Presumably I should have a shell script called InXTerm on my path, can
> anyone show me what it should look like please.
I did a Google search for InXTerm and found this article,
http://permalink.gmane.org/gmane.mail.mutt.user/13996, which says in
part:
> From: A. S. Budden <mutt.mail <at> totalise.co.uk>
> Subject: screen, mutt, svgalib
> Newsgroups: gmane.mail.mutt.user
> Date: 2003-09-17 08:10:18 GMT
> In my .mailcap, I have the following:
>
> image/*; mutt_bgrun /usr/bin/display %s; test=InXTerm
> image/*; /usr/bin/zgv --zoom-reduce-only --zoom -m '1024 768 24' %s;
> test=InPlainTerm
>
> Where InXTerm looks like this:
>
> #!/bin/sh
> if [ "$TERM" == "xterm" ]
> then
> exit 0;
> else
> exit 1;
> fi
>
> And InPlainTerm like this:
>
> #!/bin/sh
> if [ "$TERM" == "linux" ]
> then
> exit 0;
> elif [ "$TERM" == "screen" ]
> then
> exit 0;
HTH,
Gary
--
Gary Johnson | Agilent Technologies
garyjohn@xxxxxxxxxxxxxxx | Wireless Division
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA