[Mimedefang] Regexp?

Ashley M. Kirchner ashley at pcraft.com
Thu Dec 13 20:51:09 EST 2001

    Can MDefang understand a regexp like this:  (sorry for wrapping, if
    ext =

    What about matching like this:



    $ name${ws}=${ws}${dq}.*\.${ext}(\..*)?${dq}${ws}$
    $ begin${ws}[0-9]+${ws}.*\.${ext}(\..*)?${ws}$

    ...where ws = '[  ]*($[     ]+)*'  (those spaces are a TAB+space)
         and dq = '"'

    And last, how about scanning the BODY of the message:




    I'm trying to stop using a Quarantine script, by converting
everything to MDefang.  Quarantine scans emails using the above pieces
to determine whether to block, or pass a message.  And MDefang works for
me because I can strip attachments, but I don't know how to make it work
with a) the above (LONG) regexp, and b) have it scan the body of the
message like the above matches are setup.  Ideas anyone?

W | I haven't lost my mind; it's backed up on tape somewhere.
  Ashley M. Kirchner <mailto:ashley at pcraft.com>   .   303.442.6410 x130
  IT Director / SysAdmin / WebSmith             .     800.441.3873 x130
  Photo Craft Laboratories, Inc.            .     3550 Arapahoe Ave. #6
  http://www.pcraft.com ..... .  .    .       Boulder, CO 80303, U.S.A.

More information about the MIMEDefang mailing list