Re: [exim] Regex and Pcretest

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Silmar A. Marca
CC: exim-users
Temat: Re: [exim] Regex and Pcretest
On Mon, 28 Feb 2005, Silmar A. Marca wrote:
>
> deny condition  = ${if <{$message_size}{250k}{1}{0}}
>      mime_regex = (?ixs)["\s]?((?:http[s]?|ftp):\/\/(?:[^"=>\s]*)\/)((?:[^?"=>\s]*)[.](?:com|exe|bat))[?="\s]
>      message    = This message contains an link to unwanted file extension


> 2005-02-28 08:27:48 1D5j3y-0008Ev-7Z regex acl condition warning - error in regex '(?ixs)["s]?((?': unrecognized character after (? at offset 14, skipped.


The mime_regex is actually a colon-separated list of regexes. You can
either quote the whole regex, or double the colons, or change the list
separator to a character that isn't used in the regex (e.g. ;) by
prefixing the regex with <;

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}