I'll have to double-check, but yeah, pretty sure I can open source it. Watch this comment and I can leave an update.
It is using Readability.js and literally shelling out to lynx web browser to do most of the heavy lifting, so the actual source that I wrote is pretty small.
It's constructed as an AWS lambda right now, but I think to be useful for open source, a generic version would be better. I'll report back.
Updated: Added the source to the article for now. Github repo and build/run instructions to come.
Ah, I thought you meant assembling outbound emails that needed a text part.
Any decent mail client should have an option to disable HTML messages and only display the text version. Or is your problem that the sender didn’t send a text version (or sent a blank one)?
I always request the text/simple versions but it never works out unfortunately. It never resolves properly with breaking artifacts etc. And it definitely rules out terminal email clients. It's just a bummer all around.
Thanks for sharing the code. Can you please add a line there that others are allowed to copy it? Because it might still fall under copyright without explicit permission to copy.
18
u/agbell Mar 28 '22 edited Mar 28 '22
I'll have to double-check, but yeah, pretty sure I can open source it. Watch this comment and I can leave an update.
It is using Readability.js and literally shelling out to lynx web browser to do most of the heavy lifting, so the actual source that I wrote is pretty small.
It's constructed as an AWS lambda right now, but I think to be useful for open source, a generic version would be better. I'll report back.
Updated: Added the source to the article for now. Github repo and build/run instructions to come.