Re: Regex in header_check is not working

2014-09-25 Thread Dr Michael Daly
Yes, now working with the 'i' flag. Thanks very much! MD On 2014.09.25 16:34:51 +1000, Dr Michael Daly wrote: > /(^Subject: [^a-z]+$)/ REJECT <--not working To give an idea: /^Subject: [^a-z]+$)/i REJECT i (default: on) Toggles the case sensitivity flag. By default, matching is case ins

Re: Regex in header_check is not working

2014-09-25 Thread Manuel Bieling
On 2014.09.25 16:34:51 +1000, Dr Michael Daly wrote: > /(^Subject: [^a-z]+$)/ REJECT <--not working To give an idea: /^Subject: [^a-z]+$)/i REJECT i (default: on) Toggles the case sensitivity flag. By default, matching is case insensitive. > Online PCRE regex checkers seem to indicate th

Regex in header_check is not working

2014-09-24 Thread Dr Michael Daly
Hi I cannot get a regex to work in postfix 2.11.1. The regex is designed to reject Subject lines that have ALL CAPITALS; /(^Subject: [^a-z]+$)/ REJECT <--not working Testing the above for '' via command line with: postmap -q 'Subject: ' regexp:/etc/postfix/header_checks shows its not