Hey Peng,

Peng Yu <pengyu...@gmail.com> [2021-02-07 16:34 -0600]:

I just want to generate the HTML mine message. The instruction
requires the set up of mutt, which I want to avoid. Is
`bin/plain2html` for generating HTML mime message from a plain text?

Yes, this is the tool. You can either pipe a message to it

  $ cat message.eml | plain2html

or call it as

  $ plain2html -m message.eml

Can you make the plain2html module installable so that the following
command will work? Thanks.

$ bin/plain2html
Traceback (most recent call last):
 File "bin/plain2html", line 36, in <module>
   from plain2html import settings
ModuleNotFoundError: No module named 'plain2html'

Unfortunately I might not have time for that right now, but you can
easily solve this problem by setting your PYTHONPATH to include the
parent directory of the 'bin' and 'plain2html' directories.

Also please note that you need to have Python docutils installed. Last
thing, currently the only parser used for processing text is for
reStructuredText (but adding others, for example for markdown, should
be pretty simple).

Best,

Amit


Reply via email to