anomy-bugs

trying to drop all attachments

From: Robert Forsman (00524@xyz.molar.is)
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/sanitizer.pl ~/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<<

0

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;
        boundary="----_=_NextPart_000_01BF7F09.7F060C50"

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.

------_=_NextPart_000_01BF7F09.7F060C50
Content-Type: text/plain;
        charset="iso-8859-1"

Hello everyone!

http://www.exodus.net

 <<Herndon Sterling Customer Guide4.doc>>

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

0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAADAAAACQEAAAAAAAAA
EAAACwEAAAEAAAD+////AAAAAAYBAAAHAQAACAEAAP//////////////////////////////////
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAA

------_=_NextPart_000_01BF7F09.7F060C50--

  unfortunately, stdout still includes these documents that were allegedly
dropped.

  What glaringly obvious thing have I overlooked?

-- 
This mailing list's home page is: http://mailtools.anomy.net/archives/anomy-bugs/
There you can find subscription instructions and possibly an archive.
Molar.is is a free Icelandic mailing list service.



hosted by molar.is