[exim] content type matching acl

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Craig Jackson
Dátum:  
Címzett: exim-users
Tárgy: [exim] content type matching acl
Hi,

In the mime acl, there is a condition for catching emails with certain
content types:


match{${lc:$mime_content_type}}{\N^(?>.*)(?<=m4a|powerpoint|ppt|pps|quic
ktime|msvideo|javascript|midi|zip|wma|jpg|jpeg|gif|png|wmv|mpg|mp3|mpeg|
mpeg-2|avi|wav|bmp|mov|asf|asx|mpe)\N}

However, an email with a gif got through that had a content type as
follows:

Content-Type: image/gif;
    name="image001.gif"


Is the final quote the problem? Or is the filename located in the
content type the problem? Could this be fixed by adding "? to the regex
like this?

match{${lc:$mime_content_type}}{\N^(?>.*)(?<=m4a|powerpoint|ppt|pps|quic
ktime|msvideo|javascript|midi|zip|wma|jpg|jpeg|gif"?|png|wmv|mpg|mp3|mpe
g|mpeg-2|avi|wav|bmp|mov|asf|asx|mpe)\N}


Thanks,
Craig