merlink01 / BitShell

A Commanline Version of Bitmessage
GNU General Public License v2.0
4 stars 1 forks source link

Render HTML content email #2

Open Jzarecta opened 11 years ago

Jzarecta commented 11 years ago

I use bitmessage.ch which is a email gateway for bitmessge and act like an email service through SMTP. However the Bitshell client reads the whole raw html content. It woudl be nice if it detects the email header and process it to standard output readable format.

Using the email module you can get the parsing properly using get_payload(1) or using html2text.py(2). 1: http://stackoverflow.com/posts/1463144/revisions 2: http://www.aaronsw.com/2002/html2text/

merlink01 commented 11 years ago

I implemented html2text but didn't test until now.

Also I moved my bitmessage fork to a newer codebase, please update it. --old, you can use latest bitshell with the original version of pybitmessage

If I should test more, please send me a html mail to: BM-2D9k99CRa75zNzmrBp4KXktxSzgzvmMwp6

Have fun testing.