[Mimedefang] filename matching in filter_bad_filename

Graham Dunn gdunn at inscriber.com
Fri Jun 11 14:13:57 EDT 2004


I'm trying to do something which should be simple, and yet still escapes
me.

Why won't (in filter_bad_filename()):

    # Attachments matching this regexp will go through
    $secret = '^itc*\.zip$';

    return 0 if (re_match($entity, $secret));

return 0 on a filename of itcfoo.zip ?

The line (re_match($entity, '\.zip$') will hit.


Thanks,
Graham



More information about the MIMEDefang mailing list