Exim filter - convert html message body to plain text?

Posted on 2004-11-07
Last Modified: 2013-12-15
At work we use exim on redhat to forward mail sent to certain addresses on to a helpdesk database for logging customer requests sent by form submission or regular email.  This system works fine unless someone sends in an email in html.  As our office girls do not understand html it is very difficult for them to read such incoming requests and forward them to the relevant department.

Is there a way of converting all incoming mail to these addresses into plain text.  We have the messages being forwarded using the exim .forward file.

Any help would be appreciated.
Question by:phreak7t7

    Author Comment

    I have downloaded a program called 'unhtml' which takes html as input and outputs plain text to std output.  I probably need to somehow filter all email through here before forwarding them on.  Should this be done using a transport  section in exim or is there a better approach?  Or am I going about this in completely the wrong way?
    LVL 38

    Accepted Solution


       You might want to set up procmail on the mail server to forward the emails to "unhtml" and let unhtml process the emails
    before going to user's mail box.


    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now