[Mimedefang] Question about filtering

Joey Boswell joeyb at luminexcorp.com
Sat Dec 2 10:49:45 EST 2006


 Thanks David, this is exactly what I need. I just wasn't sure if I
needed to add it to another filter or create a new one like you have
done.

Yes , your right, very simple.

The particular address im trying to filter, the .wav file on would be
the blah at blah.com address.



-joeyb

-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com] On Behalf Of David
F. Skoll
Sent: Friday, December 01, 2006 8:51 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Question about filtering

Joey Boswell wrote:

> If sender = blah at blah.com AND attached file is a .wav file
> 	drop the attachment off and continue sending the email.

sub filter {
    my($entity, $fname, $ext, $type) = @_;

    if (lc($Sender) eq '<blah at blah.com>' &&
        lc($ext)    eq '.wav') {
        return action_drop();
    }
}

Pretty simple, eh?

> I want to strip off just wav files to a particular email address.

_to_ a particular address?  Up above, you said if "sender =
blah at blah.com".
Which is it?

Regards,

David.
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list