[Mimedefang] Example needed for action_external_filter
Paul
freebsd at pksnet.com
Wed Jan 2 22:41:57 EST 2002
Well, after an evening of tinkering I still can't get it to work. MIMEDefang generates the FILTERINPUT file but html2text exits with a code 1 and does not seem to generate FILTEROUTPUT as it's supposed to. I did it manually and it worked fine, it just does not see to want to run from within /etc/mail/mimedefang-filter. Here's the relevant code,
anybody any insights?
if ($type eq "text/html") {
return action_external_filter($entity,"/usr/local/bin/html2text -o FILTEROUTPUT <FILTERINPUT");
}
And here's the logging from /var/log/maillog
Jan 2 22:37:11 dax mimedefang.pl[77524]: filter: <No-Message-Id>: external_filter=1
Jan 2 22:37:11 dax sendmail[77523]: g033b55J077523: Milter add: header: X-Scanned-By: MIMEDefang 2.2 (www dot roaringpenguin dot com slash mimedefang)
Thanks in advance
More information about the MIMEDefang
mailing list