Just a few additional bits added

On Sat, Dec 28, 2024 at 10:23:09AM +0000, Chris Green wrote:
> hobie of RMN <ho...@rumormillnews.com> wrote:
> > For 20 years I've enjoyed Mutt as my primary mail reader.  I used its
> > 'bounce' feature to deal with HTML mails, sending them to a webmail
> > program on a different server.  But now the jellyfish anti-spam daemon
> > won't allow me to do that; it rejects my bounced emails because "From:"
> > and "(envelope-from)" are not the same.
> > 
> > What's the best way to handle this?  Switch to Thunderbird or claws-mail?
> > 
> I simply use lynx to view 99% of HTML E-Mail and the odd one that
> doesn't view well by that means I feed into my web browser.  All on
> the same machine.
>
To get most HTML displayed inside mutt you could add this to your .muttrc:

# for html mails
alternative_order text/plain text/html
unauto_view *
auto_view text/html
macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract 
URLs out of a message"
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract 
URLs out of a message"

The bottom two lines are for urlscan. The output is not really pretty, but
you will see the real url . These then will open with whatever xdg-open is
set to. 

> In ~/.mailcap I have:-
> 
>     text/html; lynx -dont_wrap_pre -dump %s; copiousoutput; 
> nametemplate=%s.html
> 

As some pointed out the other option w3m;
This is what is in my .mailcap:

text/html; w3m -dump -o display_link_number=true -I %{charset} -T text/html 
'%s'; copiousoutput; description=HTML Text; %nametemplate=%s.html; 
needsterminal; priority=1


> That does the work of viewing most HTML E-Mail as text.  Then, when
> that doesn't work I use 'v' in mutt to view the parts of the E-Mail
> and feed the text/html bit to my browser with 'm' (view-mailcap).
[...]



-H

-- 
Henning Follmann           | hfollm...@itcfollmann.com

Reply via email to