Re: UTF8 character in [] doesn't match

2018-12-24 Thread John Hardin
On Sun, 23 Dec 2018, Matus UHLAR - fantomas wrote: While it doesn't directly answer your question about normalize-charset, this might work a little better: ifplugin Mail::SpamAssassin::Plugin::ReplaceTags body LOCAL_JANO /\bjno?\b/i replace_rules LOCAL_JANO endif body

Re: UTF8 character in [] doesn't match

2018-12-24 Thread Henrik K
On Mon, Dec 24, 2018 at 06:48:51PM +, RW wrote: > On Mon, 24 Dec 2018 10:16:58 +0200 > Henrik K wrote: > > > On Sun, Dec 23, 2018 at 11:11:39PM +, RW wrote: > > > On Sun, 23 Dec 2018 20:04:28 +0100 > > > Matus UHLAR - fantomas wrote: > > > > > > > Hello, > > > > > > > > I have tried to

Re: UTF8 character in [] doesn't match

2018-12-24 Thread RW
On Mon, 24 Dec 2018 10:16:58 +0200 Henrik K wrote: > On Sun, Dec 23, 2018 at 11:11:39PM +, RW wrote: > > On Sun, 23 Dec 2018 20:04:28 +0100 > > Matus UHLAR - fantomas wrote: > > > > > Hello, > > > > > > I have tried to create rule that will match names "ján" and > > > "jano" (john and john

Re: UTF8 character in [] doesn't match

2018-12-24 Thread Matus UHLAR - fantomas
> On Sun, 23 Dec 2018 20:04:28 +0100 > Matus UHLAR - fantomas wrote: > > I have tried to create rule that will match names "ján" and > > "jano" (john and johnny in slovak languages). > > > > I have created rule: > > > > body LOCAL_JANO /\bJ[aá]no\b/i > > > > however, it does not match. >

Re: UTF8 character in [] doesn't match

2018-12-24 Thread Pedro David Marco
On Monday, December 24, 2018, 9:49:11 AM GMT+1, Henrik K wrote: >... so for general file portability this would be even better: > >(?:[a\xe1]|\xc3\xa1) I fully agree with Henrik, but would add a small detail... in some cases i have found problems using BODY to locate special chars  (most li

Re: UTF8 character in [] doesn't match

2018-12-24 Thread Henrik K
On Mon, Dec 24, 2018 at 10:18:31AM +0200, Henrik K wrote: > On Mon, Dec 24, 2018 at 10:16:58AM +0200, Henrik K wrote: > > On Sun, Dec 23, 2018 at 11:11:39PM +, RW wrote: > > > On Sun, 23 Dec 2018 20:04:28 +0100 > > > Matus UHLAR - fantomas wrote: > > > > > > > Hello, > > > > > > > > I have tr

Re: UTF8 character in [] doesn't match

2018-12-24 Thread Henrik K
On Mon, Dec 24, 2018 at 10:16:58AM +0200, Henrik K wrote: > On Sun, Dec 23, 2018 at 11:11:39PM +, RW wrote: > > On Sun, 23 Dec 2018 20:04:28 +0100 > > Matus UHLAR - fantomas wrote: > > > > > Hello, > > > > > > I have tried to create rule that will match names "ján" and > > > "jano" (john and

Re: UTF8 character in [] doesn't match

2018-12-24 Thread Henrik K
On Sun, Dec 23, 2018 at 11:11:39PM +, RW wrote: > On Sun, 23 Dec 2018 20:04:28 +0100 > Matus UHLAR - fantomas wrote: > > > Hello, > > > > I have tried to create rule that will match names "ján" and > > "jano" (john and johnny in slovak languages). > > > > I have created rule: > > > > body

Re: UTF8 character in [] doesn't match

2018-12-23 Thread RW
On Sun, 23 Dec 2018 20:04:28 +0100 Matus UHLAR - fantomas wrote: > Hello, > > I have tried to create rule that will match names "ján" and > "jano" (john and johnny in slovak languages). > > I have created rule: > > body LOCAL_JANO /\bJ[aá]no\b/i > > however, it does not match. > > Ap

Re: UTF8 character in [] doesn't match

2018-12-23 Thread Matus UHLAR - fantomas
On Sun, 23 Dec 2018, Matus UHLAR - fantomas wrote: I have tried to create rule that will match names "ján" and "jano" (john and johnny in slovak languages). I have created rule: body LOCAL_JANO /\bJ[aá]no\b/i fixed: bodyLOCAL_JANO /\bJ[aá]no?\b/i however, it does

Re: UTF8 character in [] doesn't match

2018-12-23 Thread John Hardin
On Sun, 23 Dec 2018, Matus UHLAR - fantomas wrote: Hello, I have tried to create rule that will match names "ján" and "jano" (john and johnny in slovak languages). I have created rule: body LOCAL_JANO /\bJ[aá]no\b/i however, it does not match. The "o" is not optional in that RE, s

UTF8 character in [] doesn't match

2018-12-23 Thread Matus UHLAR - fantomas
Hello, I have tried to create rule that will match names "ján" and "jano" (john and johnny in slovak languages). I have created rule: body LOCAL_JANO /\bJ[aá]no\b/i however, it does not match. Apparently the [á] does not match even when normalize_charset is set to '1'. any idea what