Re: [exim] Regex and Pcretest

Góra strony
Delete this message
Reply to this message
Autor: Silmar A. Marca
Data:  
Dla: Tony Finch
CC: exim-users
Temat: Re: [exim] Regex and Pcretest
In exim.conf

-----------------
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



-----------------

In main.log:
-----------------
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.
2005-02-28 08:27:48 1D5j3y-0008Ev-7Z regex acl condition warning - error in
regex 'http[s]?|ftp)': unmatched parentheses at offset 12, skipped.
2005-02-28 08:27:48 1D5j3y-0008Ev-7Z regex acl condition warning - error in
regex '//(?': unrecognized character after (? at offset 4, skipped.
2005-02-28 08:27:48 1D5j3y-0008Ev-7Z regex acl condition warning - error in
regex '[^"=>s]*)/)((?': unrecognized character after (? at offset 14, skipped.
2005-02-28 08:27:48 1D5j3y-0008Ev-7Z regex acl condition warning - error in
regex '[^?"=>s]*)[.](?': unrecognized character after (? at offset 15, skipped.
2005-02-28 08:27:48 1D5j3y-0008Ev-7Z regex acl condition warning - error in
regex 'com|exe|bat))[?="s]': unmatched parentheses at offset 11, skipped.
-----------------

Cordialmente, Silmar A. Marca
GrupoGSN - Desenvolvimento, Implantação e Verificação de Servidores
Profissionais baseados em Linux/Novell
http://www.grupogsn.com.br/~marca/
------------------------------------------------------------
Se algo não lhe faz mal (fisico, moral ou psicologicamente),
experimente! O máximo e você perder tempo! E tempo, e
o que você tem a vida toda pra perder.....
Mais vale um instante de prazer que uma eternidade fútil!
------------------------------------------------------------




Citando Tony Finch <dot@???>:

> On Sat, 26 Feb 2005, Silmar A. Marca wrote:
> >
> > In pcre test the expression is OK, but in regex this not run.
>
> Perhaps you could give us the details of what does not work. Telling us
> what does work is no use at all. What is the relevant part of your Exim
> configuration? What does Exim say in its logs about the error?
>
> 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}}
>