Re: Attach filter

From: Monique Y. Mudama (spam_at_bounceswoosh.org)
Date: 06/25/04

  • Next message: Derrick 'dman' Hudson: "Re: Aliases to file"
    To: debian-user@lists.debian.org
    Date: Fri, 25 Jun 2004 11:15:16 -0600
    
    

    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
    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Derrick 'dman' Hudson: "Re: Aliases to file"