[ingo] escaped strings in _year (_month, _day) Check functions (sieve.php)

Jan Schneider jan at horde.org
Sat Dec 12 23:03:15 UTC 2009


Zitat von Serge Chernyavsky <serg.remote at gmail.com>:

> Hi All,
>
> I use latest webmail groupware edition and dbmail-timsieved.
> After saving vacation script I had regex strings looked like:
> --
> if header :regex "Received" "^.*(2009) (\\(.*\\) )?..:..:..  
> (\\(.*\\) )?(\\+|\\-)....( \\(.*\\))?$"
> --
> in my sieve database which obviously doesn't work.

What's obvious about that?

> It's returned by _yearCheck and similar functions which have 4  
> backslashes in a row in return strings which causes this. Not sure  
> if it's required for correct behavior with other sieve  
> implementations but with dbmail it only works if I replace '\\\\'  
> with '\\' in above functions.

Then dbmail is broken.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the ingo mailing list