• Using html2text in mailing lists

    From Tony Langdon@3:633/410 to All on Thu Feb 9 11:43:18 2017
    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.
    --- SBBSecho 2.27-Linux
    * Origin: Freeway BBS - freeway.apana.org.au (3:633/410)
  • From echicken@1:103/705 to Tony Langdon on Wed Feb 8 22:49:06 2017
    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.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Tony Langdon on Wed Feb 8 23:05:30 2017
    Re: Using html2text in mailing lists
    By: Tony Langdon to All on Thu Feb 09 2017 11:43 am

    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?

    Most HTML email is in multi-part MIME format with a plain text variant included. Synchronet can (and "should") display the plain text variant of messages when they are viewed in the Terminal Server (BBS side), automatically.

    If you're wanting to convert HTML messages that are not MIME-encoded, yeah, that can be done too, but I wanted to point out the MIME/plain-text support is already in there (in v3.17).

    digital man

    Synchronet/BBS Terminology Definition #54:
    XJS = External JavaScript
    Norco, CA WX: 59.3oF, 95.0% humidity, 0 mph SW wind, 0.02 inches rain/24hrs
    --- SBBSecho 3.00-Win32
    * Origin: Vertrauen - vert.synchro.net (1:103/705)
  • From Bill McGarrity@1:266/404 to Tony Langdon on Thu Feb 9 01:53:00 2017
    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?

    Josh Renaud (Kirkman) has a python script that may do what you want. It's called:

    mail-to-plaintext.py

    Contact him and ask. I have it here but I'm not sure if he wants it distrubuted by any one other than himself. I know he has a github account under Kirkman.


    Thanks for any assistance.

    Welcome...


    --

    Bill

    Telnet: tequilamockingbirdonline.net
    Web: bbs.tequilamockingbirdonline.net:81
    FTP: ftp.tequilamockingbirdonline.net:2121
    IRC: irc.tequilamockingbirdonline.net Ports: 6661-6670 SSL: +6697
    Radio: radio.tequilamockingbirdonline.net:8010/live


    ... Look Twice... Save a Life!!! Motorcycles are Everywhere!!!
    === MultiMail/Win32 v0.50
    --- SBBSecho 3.00-Win32
    * Origin: TequilaMockingbird Online - Toms River, NJ (1:266/404)
  • From Lord Time@1:103/705 to echicken on Wed Feb 8 22:20:14 2017
    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.

    I wish, it was the same for internet e-mail (god, do I hate when someone send a html to me when I send them a plain text one)


    ---

    Rob Starr
    Lord Time SysOp of
    Time Warp of the Future BBS
    Telnet://Time.Darktech.Org:24 or
    Telnet://Time.Synchro.Net:24 (qwk or ftn & e-mail)
    ICQ # 11868133 or # 70398519 Jabber : lordtime2000@gmail.com
    Yahoo : lordtime2000 AIM : LordTime20000 Astra : lord_time
    X-Box : Lord Time 2000 oovoo : lordtime2000 Skype : lordtime@tds.net
    ---
    * Synchronet * Time Warp of the Future BBS - Home of League 10 IBBS Games
    * Origin: Vertrauen - vert.synchro.net (1:103/705)