Advosys TNEF script

From: Scott Renda (
Date: Fri 13 Jun 2003 - 20:52:18 GMT

  • Next message: Derrick Webber: "(no subject)"

    Using the script for the winmail.dat files; except I don't think it working.
    When a using receives a mail from Outlook sent with a RTF format and an
    additional document, say a word doc, the result will be one winmail.dat
    containing the RTF info AND the word attachment. I thought the Advosys
    script extracted the valid attachment if it existed, then stripped the
    winmail.dat file or whatever your anomy.conf says to do with it. I don't
    ever get the valid attachment. When I try to run the tnef script manually,
    I get a compilation error. Was wondering if it shouldn't work manually, or
    if I have made a mistake somewhere.

    Error below:

    # /usr/local/anomy/
    Can't locate Anomy/ in @INC (@INC contains:
    /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
    /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
    /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /bin) at
    /usr/local/anomy/bin/ line 45.
    BEGIN failed--compilation aborted at /usr/local/anomy/bin/ line
    Anomy-FileScan-Description: Converted to MIME from the original TNEF file
    Anomy-FileScan-NewName: mime-7809
    Anomy-FileScan-NewFile: /var/spool/filter/mime-7809
    Anomy-FileScan-NewType: multipart/mixed
    Anomy-FileScan-NewEnc: binary

    Looks like a problem with the include statement, but I don't see why.

    Also, can someone shed some light on the script:

    file_list_2_policy = accept:drop:drop:drop
    file_list_2_scanner = 0:::/usr/local/bin/ %FILENAME

    Why use : instead of say 4, as referenced in the anomy readme? Are the exit
    codes anomy returns dependent on attachment type or are they universal? I
    am just confused about using colons there, shouldn't there be other exit


    Scott Renda
    High Technology Solutions, Inc.
    Phone: 858-495-0508
    Fax: 858-571-5423

    hosted by