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 [EMAIL PROTECTED] address. -joeyb -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David F. Skoll Sent: Friday, December 01, 2006 8:51 PM To: [email protected] Subject: Re: [Mimedefang] Question about filtering Joey Boswell wrote: > If sender = [EMAIL PROTECTED] 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 '<[EMAIL PROTECTED]>' && 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 = [EMAIL PROTECTED]". 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 [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang _______________________________________________ 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 [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

