[Mimedefang] Question about filtering

David F. Skoll dfs at roaringpenguin.com
Fri Dec 1 21:50:50 EST 2006


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.



More information about the MIMEDefang mailing list