[Mimedefang] Example needed for action_external_filter

David F. Skoll dfs at roaringpenguin.com
Thu Jan 3 00:05:49 EST 2002


On Wed, 2 Jan 2002, Paul wrote:

>     if ($type eq "text/html") {
>        return action_external_filter($entity,"/usr/local/bin/html2text -o FILTEROUTPUT <FILTERINPUT");
>     }

Perhaps you cannot use shell I/O redirection.  Try writing a little
script called myhtml2text which contains the following two lines:

#!/bin/sh
exec /usr/local/bin/html2text -o FILTEROUTPUT < FILTERINPUT

and changing the Perl code to:

... return action_external_filter($entity, "/usr/local/bin/myhtml2text");

--
David.




More information about the MIMEDefang mailing list