[Mimedefang] Dropping email based on specific filename
David F. Skoll
dfs at roaringpenguin.com
Mon Oct 20 08:43:42 EDT 2003
On Mon, 20 Oct 2003, Stephen Loeckle wrote:
> I've done quite a bit of searching and I haven't seen a solution on this
> one yet. I've only seen file extension based dropping/rejecting. I was
> wondering if I can set something up in mimedefang that allows me to
> quietly drop emails that have a very specific filename attached.
Have you read the manual pages? :-) This is very easy -- practically
a one-liner:
sub filter {
my($entity, $fname, $ext, $type) = @_;
return action_discard() if ($fname eq 'magic-filename.bad');
}
Regards,
David.
More information about the MIMEDefang
mailing list