From: Tomi Ollila <tomi.ollila@iki.fi>
To: Wenlong Dai <whudwl@gmail.com>, notmuch@notmuchmail.org
Subject: Re: question: how to change file extension generated by (notmuch-show-view-part)
Date: Mon, 23 Nov 2020 13:29:24 +0200 [thread overview]
Message-ID: <m236109uqz.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <CADmxP+PhD8533VL-WyLwBAfc+r-MXL4MTSAEVOt4mRYX87m9bw@mail.gmail.com>
On Mon, Nov 23 2020, Wenlong Dai wrote:
> I've been trying to use links2 to view html part of messages.
> The problem I'm encountering is that, the part would be saved as
> /tmp/xxx/xxx.shtml and
> passed on to links2, and it seems links2 doesn't recognise the .shtml
> extension.
>
> netsurf works well with .shtml though.
>
> But being stubborn as I am, I would like to know if I can make notmuch
> output .html file instead?
> I did a bit of research on shtml, seems it's completely unnecessary in this
> case? why would notmuch choose this extension anyway?
I could not find any reference to .shtml in notmuch emacs mua sources
... nor could I find such in the "message" sources
(zgrep ... in /usr/share/emacs/{version}/lisp/gnus/*.gz)
notmuch emacs mua is using doing many of the things.
How did you configure emacs to use links2/netsurf to view html parts ?
(/usr/share/emacs/{version}/lisp/gnus/mm-view.elc.gz defines these
to be known and how those are executed:
--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--
(defvar mm-text-html-renderer-alist
'((shr . mm-shr)
(w3m . mm-inline-text-html-render-with-w3m)
(w3m-standalone . mm-inline-text-html-render-with-w3m-standalone)
(gnus-w3m . gnus-article-html)
(links mm-inline-render-with-file
mm-links-remove-leading-blank
"links" "-dump" file)
(lynx mm-inline-render-with-stdin nil
"lynx" "-dump" "-force_html" "-stdin" "-nolist")
(html2text mm-inline-render-with-function html2text))
"The attributes of renderer types for text/html.")
-->8---->8---->8---->8---->8---->8---->8---->8---->8---->8--
Tomi
next prev parent reply other threads:[~2020-11-23 11:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-23 7:53 question: how to change file extension generated by (notmuch-show-view-part) Wenlong Dai
2020-11-23 10:43 ` David Bremner
2020-11-23 10:56 ` Wenlong Dai
2020-11-23 11:29 ` Tomi Ollila [this message]
2020-11-23 11:37 ` Wenlong Dai
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
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m236109uqz.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=notmuch@notmuchmail.org \
--cc=whudwl@gmail.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.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).