Re: header_checks rule that doesn't work

2012-05-05 Thread Vincent Lefevre
On 2012-05-05 12:41:35 +0200, mouss wrote: > with pcre, you can use \s+ > > /Received:\s*from\s+\S+\s+\(\S+\s+\[\S+\]\)\s+by\+\S+/ ^^ \s+ > > that looks a bit cryptic, doesn't it? :) I wish pcre had a flag so that a space means \s+. That would pa

Re: header_checks rule that doesn't work

2012-05-05 Thread Vincent Lefevre
On 2012-05-04 22:47:15 -0500, /dev/rob0 wrote: > The OP showed that on two lines, but if it is, there would be leading > whitespace. You want to match a whole logical header, not only a > continued line. Ah, OK, thanks, I hadn't seen this part of the doc. I think I was confused by http://www.pos

Re: header_checks rule that doesn't work

2012-05-05 Thread mouss
Le 05/05/2012 05:47, /dev/rob0 a écrit : > On Fri, May 04, 2012 at 10:03:35PM -0400, Wietse Venema wrote: >> Vincent Lefevre: >>> I've received a mail having: >>> >>> From: >>> =?GB2312?B?tfXBoyy2/rrP0ru19cGjLMj9us/Su7X1waMsy8S6z9K7tfXBoyy3/srOtfXB?= >>> >>> I wanted to reject such mail with >>> >

Re: header_checks rule that doesn't work

2012-05-04 Thread /dev/rob0
On Fri, May 04, 2012 at 10:03:35PM -0400, Wietse Venema wrote: > Vincent Lefevre: > > I've received a mail having: > > > > From: > > =?GB2312?B?tfXBoyy2/rrP0ru19cGjLMj9us/Su7X1waMsy8S6z9K7tfXBoyy3/srOtfXB?= > > > > I wanted to reject such mail with > > > > /^.=\?GB2312\?B\?/ REJECT GB2312 in

Re: header_checks rule that doesn't work

2012-05-04 Thread Wietse Venema
Vincent Lefevre: > I've received a mail having: > > From: > =?GB2312?B?tfXBoyy2/rrP0ru19cGjLMj9us/Su7X1waMsy8S6z9K7tfXBoyy3/srOtfXB?= > > I wanted to reject such mail with > > /^.=\?GB2312\?B\?/ > REJECT GB2312 in headers > > in header_checks.pcre, but this didn't work. I don't understand be

header_checks rule that doesn't work

2012-05-04 Thread Vincent Lefevre
I've received a mail having: From: =?GB2312?B?tfXBoyy2/rrP0ru19cGjLMj9us/Su7X1waMsy8S6z9K7tfXBoyy3/srOtfXB?= I wanted to reject such mail with /^.=\?GB2312\?B\?/ REJECT GB2312 in headers in header_checks.pcre, but this didn't work. I don't understand because postmap -q - pcre:/etc/postfix