Discussions of development and use of the Sup email client
 help / color / mirror / Atom feed
From: Iain Parris <ipv2.lst@parris.org>
To: Robert Winkler <robert.winkler.mail@gmail.com>
Cc: The Sup email client <supmua@googlegroups.com>
Subject: Re: [sup] Inline view of HTML emails
Date: Thu, 26 Nov 2020 22:31:03 +0000	[thread overview]
Message-ID: <1606429457-sup-1721@ceres> (raw)
In-Reply-To: <316fbc8c-fb9b-47c5-946e-5f6a7b6730e5n@googlegroups.com>

Hi Robert,

Excerpts from Robert Winkler's message of 2020-11-19 08:14:45 -0800:
> many people send their mails in HTML format only.  Currently, I open them 
> in an external browser.  But seeing them inline would be nice.
>  Is there a way how to do this?

A mime-decode hook could accomplish this.

See:
<https://github.com/sup-heliotrope/sup/wiki/Viewing-Attachments#decoding-attachments>.

You would need w3m installed, and to create the file
~/.sup/hooks/mime-decode.rb containing contents as above.

Another alternative (but which wouldn't display the HTML inline) is to
create a mailcap file ~/.mailcap containing:

text/html; /usr/bin/w3m -T text/html %s; needsterminal; description=HTML Text; nametemplate=%s.html

With this alternative, pressing enter on a .html file would display it
in w3m, instead of launching a desktop GUI browser.

Kind regards,
Iain


  reply	other threads:[~2020-11-26 22:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19 16:14 Robert Winkler
2020-11-26 22:31 ` Iain Parris [this message]
2020-11-27  0:46   ` [sup] " Robert Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1606429457-sup-1721@ceres \
    --to=ipv2.lst@parris.org \
    --cc=robert.winkler.mail@gmail.com \
    --cc=supmua@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox