trying to drop all attachments

From: Robert Forsman (
Date: Mán 24 Júl 2000 - 23:08:44 UTC

  I'm trying to configure anomy v1.21 to drop ALL attachments.

  I want it to dump anything that is not text/plain (and maybe I'll let
text/html through) but I'm not sure exactly how to configure that.

Consider the following anomy conf file:

file_name_tpl = /var/quarantine/att-$F.$$$

file_list_rules = 1
file_default_policy = drop

file_list_1 = .$
file_list_1_policy = drop
file_list_1_scanner = 0

invoke anomy like so:

 aztec:20 $ perl -I ~/src/anomy/bin/ ~thoth/src/anomy/bin/ ~/src/anomy/noattachments < ~/Mail/incanta/65 > /dev/null; echo $?

This message has been 'sanitized'. This means that potentially
dangerous content has been rewritten or removed. The following
log describes which actions were taken.

13683 Enforced policy: drop (attachment Herndon Sterling Customer Guide4.doc)
13683 Rewrote filename:
>>Herndon Sterling Customer Guide4.doc<<
as >>Herndon_Sterling_Customer_Guide4.doc<<


where message 65 looks like this (and I've cut out giant chunks):

MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)
Content-Type: multipart/mixed;

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

Content-Type: text/plain;

Hello everyone!

 <<Herndon Sterling Customer Guide4.doc>>

Content-Type: application/msword;
        name="Herndon Sterling Customer Guide4.doc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
        filename="Herndon Sterling Customer Guide4.doc"



  unfortunately, stdout still includes these documents that were allegedly

  What glaringly obvious thing have I overlooked?

This mailing list's home page is:
There you can find subscription instructions and possibly an archive. is a free Icelandic mailing list service.

hosted by