Re: Attach filter
On 2004-06-25, alobato@icb.usp.br penned:
>
>
> Hi,
>
> Is there some mail attachment filter based on name of the attach? I
> need a program or dev lib that get a mail file and return it without
> attachs which has their name in a blacklist. I run p3scan as pop3
> proxy and have to add this funcionality. I program in C, so, dev
> libs are welcome too.
>
You can use procmail, tmda, or any other filtering app for this. Here's
what I have in my tmda configuration:
body 'filename\=.*\.(pif|scr|exe|bat|com|vbs)' drop
body 'Content-Type:.*name=".*\.(pif|exe|scr|bat|com|vbs)"' drop
body 'Content-Type: application/x-msdownload' drop
--
monique
Reply to: