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<<
where message 65 looks like this (and I've cut out giant chunks):
X-Mailer: Internet Mail Service (5.5.2650.21)
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.
<<Herndon Sterling Customer Guide4.doc>>
name="Herndon Sterling Customer Guide4.doc"
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: 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.