Banned files match, example question

Gregory Sloop gregs at sloop.net
Fri Jun 13 03:41:04 CEST 2014


I'm looking at these two banned files defs/matches. [From the Ubuntu default configs]

---
  qr'.\.(exe|vbs|pif|scr|bat|cmd|com|cpl)$'i, # banned extension - basic

# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
#        inf|ins|isp|js|jse|lnk|mda|mdb|mde|mdw|mdt|mdz|msc|msi|msp|mst|
#        ops|pcd|pif|prg|reg|scr|sct|shb|shs|vb|vbe|vbs|
#        wmf|wsc|wsf|wsh)$'ix,  # banned ext - long

---

But I'm confused. Why does the first match use:
$'i
vs
$'ix for the second?

It's matching to i in the first, but ix in the second?

Why?

Sorry if I'm missing something obvious, but I just don't get it.

-Greg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20140612/35a5fe2f/attachment.html>


More information about the amavis-users mailing list