[Mimedefang] Example needed for action_external_filter

Miller Michael Contractor USTC michael.miller at hq.transcom.mil
Wed Jan 2 12:55:45 EST 2002

Paul and any others
I just read up on HTML2text as I could have used this idea myself. We
receive a fair amount of HTML based email(Office2000(Word 10)/Outlook 2000
generated)which is a big pain.
Anyhow, HTML2text has a bug report about Word 10 parsing problems. Seems
HTML2text can not handle it at all.


-----Original Message-----
From: Paul [mailto:freebsd at pksnet.com]
Sent: Wednesday, January 02, 2002 12:37 PM
To: mimedefang at lists.roaringpenguin.com
Subject: [Mimedefang] Example needed for action_external_filter
Importance: High


I'm trying to set up MIMEDefang with Sendmail 8.12.1 on a FreeBSD 4.3
system. My intention if to filter all incoming mail and convert HTML email
to text using the HTML2text tool
(http://userpage.fu-berlin.de/~mbayer/tools/html2text.html). I'm trying to
set it up as an external filter (action_external_filter) but am unable to
figure out how to do it. Yes, MIMEdefang newbie here. 

My current code snippet (based on what I found in the examples) for it is:

if ($type eq "text/html") {
       return action_external_filter($entity,"/usr/local/bin/html2text

But this generates a whole load of errors and when the filter is running
sendmail won't accept incoming mail stating "please try later".
Anybody willing to help me out here? Thanks in advance!


MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com

More information about the MIMEDefang mailing list