[Mimedefang] (more) external filter issues

Ashley M. Kirchner ashley at pcraft.com
Tue Feb 12 16:07:27 EST 2002


    Okay, this has me baffled.  Here's what I run on the command line:

    /usr/freeware/bin/wvText Amy.doc temp.txt

    And that works.  It creates a 'temp.txt' file as it should, no
errors, no complaints, no problem.  Now for MD:

    if (re_match_ext($entity, '^\.(doc)$')) {
        syslog('info', "$MessageID has attachment $fname");
        action_external_filter($entity,"/usr/freeware/bin/wvText
FILTERINPUT temp.txt");
        $entity->head->replace('Content-type', 'text/plain');
        $entity->head->replace('Content-Disposition.filename',
'temp.txt');
        $entity->head->replace('Content-Type.name', 'temp.txt');
        return action_accept();
    }

    I get this in my logs:

sendmail[26283]: g1CM20Qp026283: from=<root at badboy.yeehaw.net>,
size=46187, class=0, nrcpts=1,
msgid=<Pine.SGI.4.43.0202121401510.26289-101000 at badboy.yeehaw.net>,
proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]

badboy.yeehaw.net mimedefang.pl[26266]:
<Pine.SGI.4.43.0202121401510.26289-101000 at badboy.yeehaw.net> has
attachment Amy.doc

sendmail[26283]: g1CM20Qp026283: Milter add: header: X-Scanned-By:
MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang)

sendmail[26163]: g1CM1xa7026256: to=<ashley at yeehaw.net>,
ctladdr=<root at badboy.yeehaw.net> (0/0), delay=00:00:03, xdelay=00:00:02,
mailer=relay, pri=120276, relay=localhost [127.0.0.1], dsn=2.0.0,
stat=Sent (g1CM20Qp026283 Message accepted for delivery)


    What am I missing now (aside from my sanity).


--
W | I haven't lost my mind; it's backed up on tape somewhere.
  +--------------------------------------------------------------------
  Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     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