[Mimedefang] Regexp?
Ashley M. Kirchner
ashley at pcraft.com
Thu Dec 13 23:41:14 EST 2001
"David F. Skoll" wrote:
> > ^content-type:${ws}(multipart/(signed|encrypted))|(application/)
>
> The content-type for each part is available in the $type argument
> to filter(). So just match $type against your regexp.
>
> > ^content-disposition:${ws}attachment;${ws}.*name${ws}=${ws}${dq}.*\.${ext}(\..*)?${dq}${ws}$
>
> All the MIME headers are available by querying $entity->head; see the
> MIME::Tools man page.
Ijust realized that it doesn't matter what content-type is, if my first filter is the mother
regexp I had posted earlier. It would've stripped the attachment off already during that
routine. Correct me if I'm wrong, please.
--
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