OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Customize to filter attachment ?

From: Truong Tan Son (sonttfcv.fujitsu.com)
Date: Wed Jan 23 2008 - 20:52:47 CST


Dear Sir,

I make header_check to filter executable attachment:

/^content-(type|disposition):.*name[[:space:]]*=.*\.(bat|cmd|com|exe)/
                REJECT Bad attachment file name extension: $2

It take effect to REJECT all:
.com
.com.doc
.com).gif

**How do we do with attachment name :
    Document.com REJECT
    Document.com.doc ACCEPT
    Document.com(any*Character) ACCEPT

Please support.

Thanks you and best regards,
--