[Mimedefang] Dropping Files
Jim McCullars
jim at info.uah.edu
Mon Oct 27 13:34:19 EST 2003
On Mon, 27 Oct 2003, schmaus wrote:
> I had this snippet of code in my filter sub routine. And
> while it matches on the 3 attachments listed in $drop_exts,
> it also drops other files, like doc and xls. Can anyone
> explain why this would be happening?
>
>
> $drop_exts = '(pif|scr|bat)';
> if (re_match($entity, $drop_exts)) {
You should probably be calling re_match_ext() rather than re_match().
It looks like you are going to discard any attachment that happens to have
the string "pif", "scr", or "bat" anywhere in the file name.
Jim
More information about the MIMEDefang
mailing list