I'm running SBBS on a Pi, so I have access to a lot of GNU/Linux utilities, such as html2text. What I would like to do is be able to strip HTML from incoming email, before it's posted to the BBS. Is this possible? Is it possible to insert html2text into the mail flow of Synchronet somewhere?
I'm hosting a few and gating one mailing list using Synchronet. One of the annoyances is HTML messages, because on the BBS side, they are difficult to read.
I'm running SBBS on a Pi, so I have access to a lot of GNU/Linux utilities, such as html2text. What I would like to do is be able to strip HTML from incoming email, before it's posted to the BBS. Is this possible? Is it possible to insert html2text into the mail flow of Synchronet somewhere?
Tony Langdon wrote to All <=-
I'm hosting a few and gating one mailing list using Synchronet. One of the annoyances is HTML messages, because on the BBS side, they are difficult to read.
I'm running SBBS on a Pi, so I have access to a lot of GNU/Linux utilities, such as html2text. What I would like to do is be able to
strip HTML from incoming email, before it's posted to the BBS. Is this possible? Is it possible to insert html2text into the mail flow of Synchronet somewhere?
Thanks for any assistance.
Re: Using html2text in mailing lists
By: Tony Langdon to All on Thu Feb 09 2017 11:43:18
I'm running SBBS on a Pi, so I have access to a lot of GNU/Linux utilities, such as html2text. What I would like to do is be able to strip HTML from incoming email, before it's posted to the BBS. Is this possible? Is it possible to insert html2text into the mail flow of Synchronet somewhere?
Should be possible; take a look at 'ctrl/mailproc.ini'. I suspect you could do it by getting creative with your command line, ultimately piping to smbutil.
We do appear to have an HTML-to-plaintext utility/library available in javascript. I'll see if I can make something work without requiring an external utility.
| Sysop: | Winzlo |
|---|---|
| Location: | Minnesota, USA |
| Users: | 11 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 495935:26:06 |
| Calls: | 82 |
| Files: | 1,070 |
| D/L today: |
27 files (11,920K bytes) |
| Messages: | 286,933 |