On Mon, Apr 29, 2013 at 08:30:49AM +1000, Cameron Simpson wrote:
> On 28Apr2013 23:34, Ulrich Lauther <[email protected]> wrote:
> | I upgraded to ubuntu 12.04 which implies mutt 1.5.21
> | Now, when I do
> | mutt -f mbox
> | where mbox contains all my old, already read, messages,
> | mutt tries to open a firefox tab for each message containing html.
> | (I have
> | auto_view text/html in .muttrc
> | and
> | text/html; firefox_elinks %s; needsterminal; copiousoutput;
> | in .mailcap
> | )
> |
> | I tried to fiddle with mail_check_recent, to no avail.
> |
> | Compiling and installing 1.4.2.3 fixed the problem, but is there
> | a configuration option in 1.5.21 to avoid this strange behaviour?
>
> I would expect it to be the copiusoutput string.
>
> copiousoutput is used to choose the decoder used to render html as
> plain text for viewing in mutt's pager.
>
> The line without "copiousoutput" (not that you have one) would be
> the one to open some HTML in a broswer (for example).
>
> My html mailcap lines go:
>
> text/html; env DISPLAY= unhtml %s | less
> text/html; exec 2>&1 && env DISPLAY= unhtml %s; copiousoutput
>
> The copiousoutput one runs "unhtml", a little wrapper script I have
> here that uses w3m and a couple of other things to transcribe HTML
> as text.
>
> The non-copious output one is for viewing HTML in the "attachements"
> menu, where one might reasonably pop the text up in a browser or
> something. You can see I just render it as text and page it with
> "less".
>
> Try removing "copiousoutput" from you mailcap line and see if the
> behaviour changes.
>
> I would point it that it is not just viewing messages that will
> trigger this. And message search you do that needs to search the
> message body will fire the mailcap line as well.
>
> Cheers,
> --
> Cameron Simpson <[email protected]>
>
> Our friend Trefayne is really most intuitive; you may trust that anything he
> says is absolutely true. - Aylebourne
Removing "copiousoutput" avoids opening all messages in the browser, but
then I see NO message there.
The behaviour I need and have with 1.4.2.3 is at follows:
with mutt -f mbox
I get a view into mbox, one line per mail.
If I select one of these lines, the message is displayed.
If this message contains HTML, it is displayed in plain ascii
(via "text/html; firefox_elinks %s; needsterminal; copiousoutput; ")
where firefox_elinks contains:
elinks -dump -default-mime-type text/html $1
firefox $1
exit 0
AND it is displayed in the browser window (due to the 2nd line of the script).
How can I get the same behaviour with 1.5.21?
Kind regards,
ulrich