[Mimedefang] external_filter problem
Ashley M. Kirchner
ashley at pcraft.com
Sat Feb 9 02:04:05 EST 2002
MIMEDefang 2.3
Sendmail 8.12.2
If I run the following command
/usr/freeware/bin/wvText "2002 Vacation Planner.doc" test.txt
on the command line, it works fine. However, if I put in the following in my mimedefang-filter file
if ($type eq "application/msword" && $lc_ext eq ".doc") {
return action_external_filter($entity,"/usr/freeware/bin/wvText FILTERINPUT FILTEROUTPUT");
}
or this one
if (re_match_ext($entity, '^\.doc$')) {
return action_external_filter($entity,"/usr/freeware/bin/wvText FILTERINPUT FILTEROUTPUT");
}
(or any variant of the matching: '^\.(doc)$', '^\.doc') it doesn't work. All it does is pass the message through, with the attachment intact.
From my syslog, I see this:
sendmail[1124]: g197lPFc001124: from=<ashley at pcraft.com>, size=15268, \
class=0, nrcpts=1, msgid=<3C64C56B.EDD89C6D at pcraft.com>, \
proto=ESMTP, daemon=MTA, relay=dsl217.bldr.co.csd.net \
[205.240.12.217]
badboy.yeehaw.net mimedefang.pl[1114]: filter: g197lPFc001124: \
external_filter=1
sendmail[1124]: g197lPFc001124: Milter message: body replaced
sendmail[1124]: g197lPFc001124: Milter change: header Content-Type: \
from multipart/mixed;\n \
boundary="------------A8B61B6C349D54B0469B34A0"
to multipart/mixed;
boundary="------------A8B61B6C349D54B0469B34A0"
sendmail[1124]: g197lPFc001124: Milter add: header: X-Scanned-By: \
MIMEDefang 2.3 (www dot roaringpenguin dot com slash \
mimedefang)
sendmail[1136]: g197lPFc001124: to=<ashley at yeehaw.net>, delay=00:00:03, \
xdelay=00:00:01, mailer=esmtp, pri=120577, \
relay=mx1.yeehaw.net. [206.168.220.51], dsn=2.0.0, \
stat=Sent (g196jHW20169 Message accepted: There, doesn't \
that feel better?)
--
H | "Life is the art of drawing without an eraser." - John Gardner
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
Director of Internet Operations / SysAdmin . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave, #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
More information about the MIMEDefang
mailing list