Jeffery,
Only noticed now that we are on mutt-dev, so we are off-topic,
and imho this should continue on mutt-users or off-list, if
needed.
* Jeffery Small on Wednesday, January 22, 2025 at 19:51:59 -0000:
Christian Ebert <bcc@phloxic.productions> writes:
The easiest way to install atm is probably to grab tarball of the
latest commit via
https://hg.phloxic.productions/muttils/archive/tip.tar.bz2
And then install locally somewhat like so:
$ tar xf muttils-71e88612e67f.tar.bz2
$ cd muttils-71e88612e67f
$ pip3 install --user .
See below.
It pretty much works for me[tm], but I am aware that it could use some
love, updated docs etc. Right now though, lack of time is my enemy in this
regard.
I installed the latest version of muttils (1.4.86).
viewhtmlmsg is installed in /usr/local/bin while the muttils package is at
/usr/local/lib/python3.12/dist-packages/muttils-1.4+86.71e88612e67f-py3.12.egg/muttils
As per above I would avoid to install system-wide unless you have
to.
The viewhtmlmsg utility is working again. Thank you! However, every time
I execute it on an email, I'm still getting this warning message:
/usr/local/bin/viewhtmlmsg:4: \
DeprecationWarning: pkg_resources is deprecated as an API. See \
https://setuptools.pypa.io/en/latest/pkg_resources.html
__import__('pkg_resources').run_script('muttils==1.4+86.71e88612e67f', \
'viewhtmlmsg')
You are demonstrating why I gave you the pip example ;-) Do
consider using pip. In my view the big advantage is that you can
*un*install using pip as well.
The problem is that currently distutils are used:
https://docs.python.org/3.10/library/distutils.html
Until I have time to eliminate distutils from the setup.py you
can avoid the deprecation warning by using a wrapper script like:
#v+
#!/bin/sh
viewhtmlmsg "$@" 2>/dev/null
#v-
But that hack is just another argument for using pip.
In my .muttrc file I have the following macro:
macro attach a <exit><pipe-message>viewhtmlmsg\n
You are aware that you can pipe the message directly from the
pager and/or index as well? As per the README you should also let
mutt decode the message (or attachment), please have a look at
the example-muttrc in the contrib directory.
--
LAST SHIP HOME
Winner of the German Ocean Film Award 2019
--->> https://lastshiphome.de/en