[exim] regex or list?!

Etusivu
Poista viesti
Vastaa
Lähettäjä: Marco Gaiarin
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] regex or list?!

In an ACL like:

  .ifdef LOCAL_FORBIDDEN_EXTENSIONS
  deny
    message = '$mime_filename' files are not accepted here
    !acl = acl_local_deny_exceptions
    condition = ${if match {${uc:$mime_filename}}{[.] *(LOCAL_FORBIDDEN_EXTENSIONS)\$}}
  .endif


LOCAL_FORBIDDEN_EXTENSIONS macro is an 'regexp part', so i've to wrote them
like:
    LOCAL_FORBIDDEN_EXTENSIONS = ADE|ADP|ASP|BAS|BAT|CAB|CHM|CMD|COM|CPL|CRT|EXE|HLP|HTA|INF|INS|ISP|JS|JSE|LNK|MDB|MDE|MSC|MSI|MSP|MST|PCD|PIF|REG|SCR|SCT|SHB|SHS|URL|VB|VBE|VBS|WS|WSC|WSF|WSH


or is a list, and so i've to wrote them as:

    LOCAL_FORBIDDEN_EXTENSIONS = ADE:ADP:ASP:BAS:BAT:CAB:CHM:CMD:COM:CPL:CRT:EXE:HLP:HTA:INF:INS:ISP:JS:JSE:LNK:MDB:MDE:MSC:MSI:MSP:MST:PCD:PIF:REG:SCR:SCT:SHB:SHS:URL:VB:VBE:VBS:WS:WSC:WSF:WSH



Sorry, thanks.

-- 
  Mio figlio Christian diceva che la morte doveva essere qualcosa di
  bello, visto che nessuno ritornava.        (Yolande Mukagasana)




--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/