Block .html only in .zip

Marius Gologan marius.gologan at gmail.com
Tue Jul 28 16:00:11 CEST 2015


I tested this rule and matched a tested file:

 

$banned_namepath_re = new_RE(

...

                                [ qr'(?# BLOCK HTML FILES within .zip)

                                \tM=application/(zip|x-zip-compressed)\tT=zip\tN=[^\t\n]* \. zip\n.*\tT=(asc|html?)\tN=[^\t\n]* \. html?$'xmi => 'DISCARD'],

...

);

 

 

From: amavis-users [mailto:amavis-users-bounces+marius.gologan=gmail.com at amavis.org] On Behalf Of Konstantin
Sent: Friday, July 24, 2015 7:05 PM
To: amavis-users at amavis.org
Subject: Block .html only in .zip

 

Hi 

Is it possible to set up banned_rules to block .html,.htm if they are only inside attached .zip file?

I can not block .html,.htm files because some users want to receive them.


For example:
unzip -l Downloads/resume.zip
Archive:  Downloads/resume.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
      654  2015-07-22 19:38   2101_resume.htm

Thanks.



-- 

This message was delivered using 100% recycled electrons.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20150728/64dc124f/attachment.html>


More information about the amavis-users mailing list