OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Matthias Andree (madt.e-technik.uni-dortmund.de)
Date: Mon Jun 03 2002 - 20:41:10 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Martin Pala <martin.palahq.iol.cz> writes:

    > The problem is, that huge of my clients (one domain) have special needs
    > - they have SetTopBoxes, that support only plaintext messages. Is there
    > a functional content filter for converting HTML to plaintext, or maybe
    > what way could be used to reach this.

    I support Wietse's suggestion. (The alternative would be to bounce such
    mail with procmail/formail or maildrop/reformail and tell the sender to
    retry in plain text, but some users will be unable to configure their
    ?utl??k properly and will be unable to send mail to your settop box
    user, which is probably not desirable).

    I tried several different HTML->txt converters, and about the only one
    that was robust enough, and did not annoy with misfeatures (one does not
    do line wrapping unless with ncurses output, the next cannot be forced
    to parse a document with empty line before <!DOCTYPE> as HTML, the third
    does not filter...), filter turned out to be lynx. lynx can be
    restricted, and it can approximate the original characters in your local
    character set.

    -- 
    Matthias Andree
    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users