Re: is it possible to have two options for viewing html mail?

2020-11-22 Thread Kevin J. McCarthy

On Sun, Oct 25, 2020 at 09:41:11AM -0700, Kevin J. McCarthy wrote:

On Sun, Oct 25, 2020 at 11:39:13AM +0900, Kenichi Asai wrote:

For docx file, I think I have exactly the same thing:

application/vnd.openxmlformats-officedocument.wordprocessingml.document;open -a 
preview -n -W %s; nametemplate=%s.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document;textutil
 -stdout -cat txt %s; copiousoutput

but the file is always opened using preview, no matter I press Enter
or m.  Why?  How can I configure so that when I press Enter, textutil
is used but when I enter m, preview is used?


The attachment viewing code is a bit convoluted.  I don't believe 
there is currently a way to do what you want.


In git master, I've just added a new function,  which will 
use a copiousoutput mailcap entry, or else fall back to displaying raw 
text.


I find this behavior more helpful than , which I rarely need, 
so I've bound T to  instead, and Esc-t to .


  bind attach \et view-text
  bind attach T view-pager

I've also added a section in the manual that describes the different 
attachment viewing functions: 



--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: is it possible to have two options for viewing html mail?

2020-10-26 Thread Globe Trotter via Mutt-users


Thank you for this!This works beautifully for now, and I have made a list of my 
browsers with it: w3m, dillo, midori, firefox and chromium in that order. 





On Sunday, October 25, 2020, 7:57:09 PM CDT, raf  wrote: 





On Sun, Oct 25, 2020 at 11:38:01PM +, Globe Trotter via Mutt-users 
 wrote:

> On Sunday, October 25, 2020, 5:53:20 PM CDT, raf  wrote: 
> 
> On Sun, Oct 25, 2020 at 12:18:26AM +, Globe Trotter via Mutt-users 
>  wrote:
> 
> > On Saturday, 24 October at 22:54, Mutt Users wrote:
> > 
> > >> Lots of people send me mail in HTML format (even though I do not
> > >> like it). I have the following set up in my .mailcap:
> > >> text/html; w3m -I %{charset} -T text/html; copiousoutput
> > >> so it converts things using w3m more or less okay, however, I
> > >> am wondering is it possible to have an option for viewing using
> > >> midori/firefox for the cases where w3m is not enough?
> > 
> > > I've got this in my mailcap:
> > 
> > > text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> > > qutebrowser %s; nametemplate=%s.html
> > 
> > > To open an email in w3m press Enter, in qutebrowser p or whatever
> > > print is bound to. You can adapt this for firefox.
> > 
> > > Hope that helps.
> > > Regards Wim
> > 
> > This solution does exactly what I want. I wanted to use midori, so I
> > replaced qutebrowser with midori and it works.
> > 
> > Is it possible to have multiple options? So, in case midori did not
> > cut it, I would use firefox instead?
> > 
> > TIA!
> 
> Rather than invoking actual browsers directly, you
> could write a script that presented you with a list of
> options, and you enter your choice. That way, you could
> have more that two options. If always having to select
> a browser manually is too inefficient, you could
> continue to invoke w3m when viewing html, and invoke
> this menu-based browser chooser when "printing" html.
> 
> cheers,
> raf
> 
> Thanks, where would this option be presented? While I press "p"?

I think that would be best, so that you can decide
whether or not you want to manually select a browser.
By only invoking this script for "printing" the
attachment, you can still access the easier default
behaviour when viewing the attachment. But it probably
means you can't print the attachment, unless you add
that as one of the choices.

> Is the script in mutt or a bash/python/perl/etc script?

It would be a separate script referred to in your .mailcap
file. Here's a sample implementation:

In your ~/.mailcap (or whatever your mailcap_path is set to):

  text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
select-browser %s; nametemplate=%s.html

Attached is the command select-browser which would need
to be in your $PATH. Note that it doesn't support all
of the % expansions that mailcap(5) supports. It only
handles the %s filename place holder, but that's
probably fine for web browsers. Adding support for all
the others would make its appearance in the mailcap
file a lot uglier.


cheers,
raf


Re: is it possible to have two options for viewing html mail?

2020-10-25 Thread Greg Marks
> I have the following set up in my .mailcap:
>
>text/html; w3m -I %{charset} -T text/html; copiousoutput
>
> so it converts things using w3m more or less okay, however, I
> am wondering is it possible to have an option for viewing using
> midori/firefox for the cases where w3m is not enough?

In your .muttrc file, you could insert:

   bind attach  view-mailcap
   bind attach  view-mailcap
   macro attach "\ef" "cat > 
$HOME/Mail/mutt_attachment_temporary_file.html ; /usr/bin/firefox 
$HOME/Mail/mutt_attachment_temporary_file.html"

Then, in Mutt, when you open an e-mail, type "v" to go to the attachments
menu, and navigate to the "text/html" entry, hitting "Enter" will display
the message using w3m, whereas hitting "f" will open a copy of
the message in Firefox.  Another good option in the .mailcap file,
in place of the w3m command quoted above, is:

   text/html; /usr/bin/lynx -force-html -localhost -stdin

In my opinion, requiring a two-keystroke combination such as "f"
to open the message in Firefox is a helpful security practice, as
that makes it more difficult to accidentally click on a hyperlink in
a malicious e-mail.

For more options, you could add a similar macro "\em" to open in Midori.

> Lots of people send me mail in HTML format (even though I do not
> like it).

Hopefully, when you quote their messages in your replies to them, it
will include all the raw HTML markup so that they can enjoy it as much
as you did.

Best regards,
Greg Marks


signature.asc
Description: PGP signature


Re: is it possible to have two options for viewing html mail?

2020-10-25 Thread raf
On Sun, Oct 25, 2020 at 11:38:01PM +, Globe Trotter via Mutt-users 
 wrote:

> On Sunday, October 25, 2020, 5:53:20 PM CDT, raf  wrote: 
> 
> On Sun, Oct 25, 2020 at 12:18:26AM +, Globe Trotter via Mutt-users 
>  wrote:
> 
> > On Saturday, 24 October at 22:54, Mutt Users wrote:
> > 
> > >> Lots of people send me mail in HTML format (even though I do not
> > >> like it). I have the following set up in my .mailcap:
> > >> text/html; w3m -I %{charset} -T text/html; copiousoutput
> > >> so it converts things using w3m more or less okay, however, I
> > >> am wondering is it possible to have an option for viewing using
> > >> midori/firefox for the cases where w3m is not enough?
> > 
> > > I've got this in my mailcap:
> > 
> > > text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> > > qutebrowser %s; nametemplate=%s.html
> > 
> > > To open an email in w3m press Enter, in qutebrowser p or whatever
> > > print is bound to. You can adapt this for firefox.
> > 
> > > Hope that helps.
> > > Regards Wim
> > 
> > This solution does exactly what I want. I wanted to use midori, so I
> > replaced qutebrowser with midori and it works.
> > 
> > Is it possible to have multiple options? So, in case midori did not
> > cut it, I would use firefox instead?
> > 
> > TIA!
> 
> Rather than invoking actual browsers directly, you
> could write a script that presented you with a list of
> options, and you enter your choice. That way, you could
> have more that two options. If always having to select
> a browser manually is too inefficient, you could
> continue to invoke w3m when viewing html, and invoke
> this menu-based browser chooser when "printing" html.
> 
> cheers,
> raf
> 
> Thanks, where would this option be presented? While I press "p"?

I think that would be best, so that you can decide
whether or not you want to manually select a browser.
By only invoking this script for "printing" the
attachment, you can still access the easier default
behaviour when viewing the attachment. But it probably
means you can't print the attachment, unless you add
that as one of the choices.

> Is the script in mutt or a bash/python/perl/etc script?

It would be a separate script referred to in your .mailcap
file. Here's a sample implementation:

In your ~/.mailcap (or whatever your mailcap_path is set to):

  text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
select-browser %s; nametemplate=%s.html

Attached is the command select-browser which would need
to be in your $PATH. Note that it doesn't support all
of the % expansions that mailcap(5) supports. It only
handles the %s filename place holder, but that's
probably fine for web browsers. Adding support for all
the others would make its appearance in the mailcap
file a lot uglier.

cheers,
raf

#!/usr/bin/env perl
use warnings;
use strict;

# select-browser - Let user select a browser manually (via ~/.mailcap entry)

# The order in which browsers are presented to the user
my @order = qw(w3m qutebrowser firefox);

# Browser labels and commands
# Warning: Commands must contain the %s filename place holder.
# Warning: No other mailcap(5) expansions are supported.
# Warning: Doesn't handle filenames containing double quotes.
my %browsers = (
w3m => 'w3m -T text/html -dump "%s"',
qutebrowser => 'qutebrowser "%s"',
firefox => 'firefox "%s"'
);

# Check command line
die "usage: $0 filename.html\n" unless @ARGV;
my $filename = $ARGV[0];

# Prompt the user
$| = 1;
print("Browsers:\n");
printf("  %s: %s\n", $_ + 1, $order[$_]) for (0..$#order);
print("Enter selection: ");
chomp(my $response = );
die("$0: Invalid selection: $response (Must be between 1 and @{[scalar 
@order]})\n")
unless $response =~ /^\d+$/ && $response >= 1 && $response <= @order;

# Execute the selected browser
exec sprintf $browsers{$order[$response - 1]}, $filename;

# vi:set ts=4 sw=4:


Re: is it possible to have two options for viewing html mail?

2020-10-25 Thread Globe Trotter via Mutt-users








On Sunday, October 25, 2020, 5:53:20 PM CDT, raf  wrote: 





On Sun, Oct 25, 2020 at 12:18:26AM +, Globe Trotter via Mutt-users 
 wrote:


> On Saturday, 24 October at 22:54, Mutt Users wrote:
> 
> >> Lots of people send me mail in HTML format (even though I do not like it). 
> >> I have the following set up in my .mailcap:
> >> text/html; w3m -I %{charset} -T text/html; copiousoutput
> >> so it converts things using w3m more or less okay, however, I am wondering 
> >> is it possible to have an option for viewing using midori/firefox for the 
> >> cases where w3m is not enough?
> 
> 
> > I've got this in my mailcap:
> 
> 
> > text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> > qutebrowser %s; nametemplate=%s.html
> 
> > To open an email in w3m press Enter, in qutebrowser p or whatever print is 
> > bound to. You can adapt this for firefox.
> 
> > Hope that helps.
> > Regards Wim
> 
> --
>       |\      _,,,---,,_
> ZZZzz /,`.-'`'    -.  ;-;;,_
>     |,4-  ) )-,_. ,\ (  `'-'
> 
>     '---''(_/--'  `-'\_)
> 
> 
> This solution does exactly what I want. I wanted to use midori, so I replaced 
> qutebrowser with midori and it works. 
> 
> Is it possible to have multiple options? So, in case midori did not cut it, I 
> would use firefox instead?
> 
> TIA!


Rather than invoking actual browsers directly, you
could write a script that presented you with a list of
options, and you enter your choice. That way, you could
have more that two options. If always having to select
a browser manually is too inefficient, you could
continue to invoke w3m when viewing html, and invoke
this menu-based browser chooser when "printing" html.

cheers,
raf




Thanks, where would this option be presented? While I press "p"? Is the script 
in mutt or a bash/python/perl/etc script?


Re: is it possible to have two options for viewing html mail?

2020-10-25 Thread raf
On Sun, Oct 25, 2020 at 12:18:26AM +, Globe Trotter via Mutt-users 
 wrote:

> On Saturday, 24 October at 22:54, Mutt Users wrote:
> 
> >> Lots of people send me mail in HTML format (even though I do not like it). 
> >> I have the following set up in my .mailcap:
> >> text/html; w3m -I %{charset} -T text/html; copiousoutput
> >> so it converts things using w3m more or less okay, however, I am wondering 
> >> is it possible to have an option for viewing using midori/firefox for the 
> >> cases where w3m is not enough?
> 
> 
> > I've got this in my mailcap:
> 
> 
> > text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> > qutebrowser %s; nametemplate=%s.html
> 
> > To open an email in w3m press Enter, in qutebrowser p or whatever print is 
> > bound to. You can adapt this for firefox.
> 
> > Hope that helps.
> > Regards Wim
> 
> --
>       |\      _,,,---,,_
> ZZZzz /,`.-'`'    -.  ;-;;,_
>     |,4-  ) )-,_. ,\ (  `'-'
> 
>     '---''(_/--'  `-'\_)
> 
> 
> This solution does exactly what I want. I wanted to use midori, so I replaced 
> qutebrowser with midori and it works. 
> 
> Is it possible to have multiple options? So, in case midori did not cut it, I 
> would use firefox instead?
> 
> TIA!

Rather than invoking actual browsers directly, you
could write a script that presented you with a list of
options, and you enter your choice. That way, you could
have more that two options. If always having to select
a browser manually is too inefficient, you could
continue to invoke w3m when viewing html, and invoke
this menu-based browser chooser when "printing" html.

cheers,
raf



Re: is it possible to have two options for viewing html mail?

2020-10-25 Thread Kevin J. McCarthy

On Sun, Oct 25, 2020 at 11:39:13AM +0900, Kenichi Asai wrote:

For docx file, I think I have exactly the same thing:

application/vnd.openxmlformats-officedocument.wordprocessingml.document;open -a 
preview -n -W %s; nametemplate=%s.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document;textutil
 -stdout -cat txt %s; copiousoutput

but the file is always opened using preview, no matter I press Enter
or m.  Why?  How can I configure so that when I press Enter, textutil
is used but when I enter m, preview is used?


The attachment viewing code is a bit convoluted.  I don't believe there 
is currently a way to do what you want.


text/* is treated specially.  Mutt considers it pager-renderable and 
won't directly use the mailcap file unless invoked via . 
Otherwise it renders the content as if it were auto_view'ed inside the 
message.  (The rendering code in turn uses the copiousoutput flag 
mailcap entries.)


The application/* always uses mailcap whether invoked via  
or .  This will find the first entry and invoke it 
interactively.  The only way to view it in the pager is using auto_view.


--
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread Kenichi Asai
> text/html;  mutt_bgrun /usr/bin/firefox %s >/dev/null 2>&1; needsterminal
> text/html; elinks -dump ; copiousoutput

This is almost what I am doing.  However, it works for text/html but
not for docx file, apparently.  For text/html, I have:

text/html; open -a safari -n -W %s; nametemplate=%s.html
text/html; w3m -dump -T %t %s; copiousoutput

in .mailcap and it goes beautifully: when I press Enter in the list of
attachments, w3m is used, and when I press m, safari is used.  (As a
related question, why do I obtain this behavior by the above two
lines?  What happens when I press Enter and what happens when I press
m?  I don't quite understand the fine details of mailcap.)

For docx file, I think I have exactly the same thing:

application/vnd.openxmlformats-officedocument.wordprocessingml.document;open -a 
preview -n -W %s; nametemplate=%s.docx
application/vnd.openxmlformats-officedocument.wordprocessingml.document;textutil
 -stdout -cat txt %s; copiousoutput

but the file is always opened using preview, no matter I press Enter
or m.  Why?  How can I configure so that when I press Enter, textutil
is used but when I enter m, preview is used?

# I am using Mutt 1.13.3 (2020-01-12) from homebrew on MacOS 10.12.6.

Sincerely,

-- 
Kenichi Asai


Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread Globe Trotter via Mutt-users
On Saturday, 24 October at 22:54, Mutt Users wrote:

>> Lots of people send me mail in HTML format (even though I do not like it). I 
>> have the following set up in my .mailcap:
>> text/html; w3m -I %{charset} -T text/html; copiousoutput
>> so it converts things using w3m more or less okay, however, I am wondering 
>> is it possible to have an option for viewing using midori/firefox for the 
>> cases where w3m is not enough?


> I've got this in my mailcap:


> text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
> qutebrowser %s; nametemplate=%s.html

> To open an email in w3m press Enter, in qutebrowser p or whatever print is 
> bound to. You can adapt this for firefox.

> Hope that helps.
> Regards Wim

--
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
    |,4-  ) )-,_. ,\ (  `'-'

    '---''(_/--'  `-'\_)


This solution does exactly what I want. I wanted to use midori, so I replaced 
qutebrowser with midori and it works. 

Is it possible to have multiple options? So, in case midori did not cut it, I 
would use firefox instead?

TIA!


Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread Wim
Hi,

On Saturday, 24 October at 22:54, Mutt Users wrote:

> Lots of people send me mail in HTML format (even though I do not like it). I 
> have the following set up in my .mailcap:
>
> text/html; w3m -I %{charset} -T text/html; copiousoutput
>
> so it converts things using w3m more or less okay, however, I am wondering is 
> it possible to have an option for viewing using midori/firefox for the cases 
> where w3m is not enough?
>
> My thanks in advance!
>

I've got this in my mailcap:


text/html; w3m -I %{charset} -T text/html -dump; copiousoutput; print = 
qutebrowser %s; nametemplate=%s.html

To open an email in w3m press Enter, in qutebrowser p or whatever print
is bound to. You can adapt this for firefox.

Hope that helps.
Regards Wim

--
  |\  _,,,---,,_
ZZZzz /,`.-'`'-.  ;-;;,_
 |,4-  ) )-,_. ,\ (  `'-'
'---''(_/--'  `-'\_)


Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread Cameron Simpson
On 24Oct2020 20:54, Globe Trotter via Mutt-users  wrote:
>Lots of people send me mail in HTML format (even though I do not like it). I 
>have the following set up in my .mailcap:
>
>text/html; w3m -I %{charset} -T text/html; copiousoutput
>
>so it converts things using w3m more or less okay, however, I am wondering is 
>it possible to have an option for viewing using midori/firefox for the cases 
>where w3m is not enough?

Certainly. You have a few choices (not mutually exclusive).

First up, you could bind a keystroke to feed the current message 
to firefox (or whatever browser).

This page on viewing attachments includes a mailcap entry for using 
mozilla if the $DISPLAY environment variable is set:

https://gitlab.com/muttmua/mutt/-/wikis/MuttFaq/Attachment

You could easily adapt that test to something more manual/on-demand. It 
is written for attachments, so the "%s" in it assumes a filename 
(the attachment).  So does the mailcap entry for displaying messages.

My mailcap entry reads like this:

text/html; exec 2>&1 && env DISPLAY= unhtml %s; copiousoutput

The primary thing in that line is the display command itself: "unhtml". 
That is a personal script which converts the HTML to text. Write your 
own, however trivial - start (of course) with the line from your 
mailcap.

Importantly, my "unhtml" consults some flags to decide how to do the 
render - you could have yours decide to feed the file to firefox instead 
of (or as well as) w3m. Here's my code:

https://hg.sr.ht/~cameron-simpson/css/browse/bin/unhtml?rev=tip

It consults some flags to decide what to run - you can see it will use 
w3m or lynx depending on my mood. You could use a similar approach to 
display via firefox depedning on your mood.

As an example, I have:

set display_filter="mutt-display_filter"

and I use that for rot13 decoding on demand (the on demand being akin to 
your "firefox on demand" wish). So the script is here:


https://hg.sr.ht/~cameron-simpson/css/browse/bin-cs/mutt-display_filter?rev=tip

and if the MUTT_ROT13 flag is set, it passes the text through tr do 
decode it. Associated with are the following mutt lines:

set my_toggle_rot13="$my_push_wait_key=noflag !  
MUTT_ROT13 -e flag MUTT_ROT13$my_pop_wait_key"
macro index \Cx "$my_toggle_rot13" 'toggle MUTT_ROT13'
macro pager \Cx "$my_toggle_rot13" 'toggle 
MUTT_ROT13'

So the ^X keystroke toggles the rot13 mode, which issues a shell command 
to toggle my MUTT_ROT13 flag. If I'm displaying a message (the "pager" 
macro) it exits the pager, toggles the flag, ad reenters the pager.

That might be a starting point.

Cheers,
Cameron Simpson 


Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread Patrick Shanahan
* mutt users list  [10-24-20 16:54]:
> Lots of people send me mail in HTML format (even though I do not like
> it).  I have the following set up in my .mailcap:
> 
> text/html; w3m -I %{charset} -T text/html; copiousoutput
> 
> so it converts things using w3m more or less okay, however, I am
> wondering is it possible to have an option for viewing using
> midori/firefox for the cases where w3m is not enough?

using mutt, copy the html portion to an xternal file and open that ile
with 

I copy to: mutt.html

macro  attach  ,x  "|rm -f /mnt/ExT4/mutt.html"":unset \
wait_key\n;/mnt/ExT4/mutt.html""|chmod a+r \
/mnt/ExT4/mutt.html"

-- 
(paka)Patrick Shanahan   Plainfield, Indiana, USA  @ptilopteri
http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri
Photos: http://wahoo.no-ip.org/piwigo   paka @ IRCnet freenode


Re: is it possible to have two options for viewing html mail?

2020-10-24 Thread José María Mateos

On Sat, Oct 24, 2020 at 08:54:18PM +, Globe Trotter via Mutt-users wrote:

Lots of people send me mail in HTML format (even though I do not like it). I 
have the following set up in my .mailcap:

text/html; w3m -I %{charset} -T text/html; copiousoutput

so it converts things using w3m more or less okay, however, I am wondering is 
it possible to have an option for viewing using midori/firefox for the cases 
where w3m is not enough?


Yes. In .muttrc:

bind attach  view-mailcap # if you want to see html content using 
Return.

Then in your .mailcap:

text/html;  mutt_bgrun /usr/bin/firefox %s >/dev/null 2>&1; needsterminal
text/html; elinks -dump ; copiousoutput

The second link is the equivalent to your w3m (I use elinks). The second 
one is a script I found some time ago. You can get a copy here, for 
example https://github.com/RichiH/mutt_bgrun. It saves the html file in 
a temp folder, runs firefox and deletes the file.


Then, to use this, just go to the list of attachments in the message, 
select the HTML file, press Enter and you should have the message in a 
new firefox tab.


Cheers,

--
José María (Chema) Mateos || https://rinzewind.org


is it possible to have two options for viewing html mail?

2020-10-24 Thread Globe Trotter via Mutt-users
Lots of people send me mail in HTML format (even though I do not like it). I 
have the following set up in my .mailcap:

text/html; w3m -I %{charset} -T text/html; copiousoutput

so it converts things using w3m more or less okay, however, I am wondering is 
it possible to have an option for viewing using midori/firefox for the cases 
where w3m is not enough?

My thanks in advance!




viewing html mail

2001-06-05 Thread Bostjan Muller

Hi!

Is there a way to make mutt view html formated e-mail in some web browser.. for
instance it would display normal text extracted from html in pager, but if you
would press H it would display it in netscape/konq/opera... ? is there a way to
do this?

THX in advance!

Bostjan
-- 
Botjan Mller [NEONATUS], [EMAIL PROTECTED], http://neonatus.net/~neonatus
For my PGP key finger: [EMAIL PROTECTED], RSA id: 0x90178DBD, ICQ #:7506644
Celular: +386(0)41243189, Powered by Debian GNU/LiNUX , Student of VFUL
"Its not a bug...just think of it as a new undocumented feature" - M$ TechSupport



Re: viewing html mail

2001-06-05 Thread Bostjan Muller

* On 05-06-01 at 20:17 Ralf Hildebrandt ([EMAIL PROTECTED]) wrote:
+Here quoted text begins+
 On Tue, Jun 05, 2001 at 07:56:13PM +0200, Bostjan Muller wrote:
 
  Is there a way to make mutt view html formated e-mail in some web browser.. for
  instance it would display normal text extracted from html in pager, but if you
  would press H it would display it in netscape/konq/opera... ? is there a way to
  do this?
 
 auto_view text/html, image/gif, image/jpeg
 alternative_order text/plain# I like plaintext more than html.
 
 Be sure to have your mime.types and mailcap set correctly...
 -- 
 [EMAIL PROTECTED]innominate AG
 Technical Consultant   Don't be afraid of what you see -
 Diplom-Informatiker be afraid of what you don't see!
 tel: +49.(0)7000.POSTFIXfax: +49.(0)30.308806-77
 


+and here the quote ends+
That's not what I asked for ;) I can view HTML formated email, but I would like
do view some of the email apart from ordinary plaintext style (withing mutt's
pager) also in outside application...
For instance I would use auto_view to display html as plain text, but if I
would pres for instance key H the same e-mail would be displayed in an web
browser.


THX in advance!

Bostjan
-- 
Botjan Mller [NEONATUS], [EMAIL PROTECTED], http://neonatus.net/~neonatus
For my PGP key finger: [EMAIL PROTECTED], RSA id: 0x90178DBD, ICQ #:7506644
Celular: +386(0)41243189, Powered by Debian GNU/LiNUX , Student of VFUL
  Loose bits sink chips.

 PGP signature


Re: viewing html mail

2001-06-05 Thread Gary Johnson

On Tue, Jun 05, 2001 at 08:33:16PM +0200, Bostjan Muller wrote:

 That's not what I asked for ;) I can view HTML formated email, but I would like
 do view some of the email apart from ordinary plaintext style (withing mutt's
 pager) also in outside application...
 For instance I would use auto_view to display html as plain text, but if I
 would pres for instance key H the same e-mail would be displayed in an web
 browser.

From the mutt manual, put this in your mailcap ahead of the line already
there for lynx or whatever you use to convert HTML to text:

text/html; netscape -remote 'openURL(%s)' ; test=RunningX

You could also try this, pieced together from my mailcap file and a
script I have, but untested in this form:

text/html; netscape -remote 'openURL(file:%s, new-window)' || netscape %s; 
test=RunningX

To display an HTML attachment using Netscape, open the attachment from
mutt's attachment menu.

HTH,
Gary

-- 
Gary Johnson   | Agilent Technologies
[EMAIL PROTECTED]   | RF Communications PGU
http://www.spocom.com/users/gjohnson/mutt/ | Spokane, Washington, USA