On Sun, 04 Jan 2015 01:10:17 +0100 Reindl Harald wrote: > > Am 04.01.2015 um 00:55 schrieb Dave Funk: > > On Sat, 3 Jan 2015, Reindl Harald wrote: > > > >> by writing some custom rules like below i found out that @ needs > >> to be esacped additionally to > >> http://php.net/manual/de/function.preg-quote.php > >> > >> are there other chars which needs special handling? > >> > >> header CUST_MANY_SPAM_TO X-Local-Envelope-To =~ > >> /^(\<h\.reindl\@thelounge\.net\>)$/i > >> score CUST_MANY_SPAM_TO -4.0 > >> describe CUST_MANY_SPAM_TO Custom Scoring > > > > Umm, SA is written in Perl, not PHP. So you should look at Perl > > regex documentation, not PHP docs > > so what - @ is not a to escape char in whatever language and hence SA > specific and it don't matter in what language SA is written if you > write a *backend* in PHP - guess what "preg" means even if you are > too lazy to click on the link -> "Perl Compatible Regular Expressions > (PCRE)" >
Escaping often happens at more than one level, whilst @ doesn't have a special meaning in perl regular expressions, it does in perl. A perl RE tutorial would have mentioned this, so it is a fair point. > so do me a favor: if you don't have a answer leave me in peace > because i am tired of answers with no content at all