David's mail reminded me to reply to this.

conrad wrote:
 > Hi all,
 > 
 > Wondering what folk use these days to render HTML emails in a terminal
 > window?  I've an old recipe which I picked up from the list as follows:

I have a script I use when what I get from elinks -dump -force-html in
my terminal window isn't sufficient.  It invokes Thunderbird on a copy
of the message:

        #!/bin/bash
        msg=( $(mhpath "${@:-cur}") ) || exit
        if [ ${#msg[*]} != 1 ]
        then
            echo Exactly one message at a time allowed. >&2
            exit 1
        fi
        cp ${msg[0]} /tmp/$(whoami)-message.eml || exit
        echo "Starting thunderbird in the background."
        thunderbird -file /tmp/$whoami-message.eml &

(I believe that's correct -- but it's extracted from a longer script,
and I can't really test this snippet at the moment.)

Once nice feature of this is that when invoked like this, thunderbird
disables external URL links unless you click otherwise, which makes it a
little safer than a raw browser.  And it's usually sufficient let me
get the context of the message.

paul
=----------------------
paul fox, [email protected] (arlington, ma, where it's 51.3 degrees)


Reply via email to