Re: rejecting long subject strings with pcre header checks

2011-04-29 Thread Victor Duchovni
On Fri, Apr 29, 2011 at 09:30:32AM +0200, Ansgar Wiechers wrote: > On 2011-04-29 Troy Piggins wrote: > > Check out Victor's reply to my message. He explains the reason, but > > I was finding the same as you. This works fine so far: > > > > if /^Subject:/ > > if !/=\?\S+\?=(\s|$)/ > > /\S{60}/

Re: rejecting long subject strings with pcre header checks

2011-04-29 Thread Noel Jones
On 4/29/2011 6:17 AM, Noel Jones wrote: On 4/29/2011 12:27 AM, Voytek Eymont wrote: On Fri, April 29, 2011 4:15 pm, Voytek Eymont wrote: #grep "{40}/" header_checks /^Subject: +[^[:space:]]{40}/ REJECT no spaces in subject but I'm having a couple issues: and I'm still getting some, is t

Re: rejecting long subject strings with pcre header checks

2011-04-29 Thread Noel Jones
On 4/29/2011 12:27 AM, Voytek Eymont wrote: On Fri, April 29, 2011 4:15 pm, Voytek Eymont wrote: #grep "{40}/" header_checks /^Subject: +[^[:space:]]{40}/ REJECT no spaces in subject but I'm having a couple issues: and I'm still getting some, is this that they have a 'CR' or several at

Re: rejecting long subject strings with pcre header checks

2011-04-29 Thread Ansgar Wiechers
On 2011-04-29 Troy Piggins wrote: > Check out Victor's reply to my message. He explains the reason, but > I was finding the same as you. This works fine so far: > > if /^Subject:/ > if !/=\?\S+\?=(\s|$)/ > /\S{60}/REJECT no spaces > endif > endif For the sake of simplicity: if /^subjec

Re: rejecting long subject strings with pcre header checks

2011-04-28 Thread Troy Piggins
* Voytek Eymont wrote : > I've followed the recent advice as I'm also getting a lot of > these_long_subjects_emails_with_crap_in_them: > > -- > * Noel Jones wrote : > > On 4/27/2011 6:17 AM, Troy Piggins wrote: > > >Hi there. I'm noticing lately most of the spam that gets through m

Re: rejecting long subject strings with pcre header checks

2011-04-28 Thread Voytek Eymont
On Fri, April 29, 2011 4:15 pm, Voytek Eymont wrote: > #grep "{40}/" header_checks > /^Subject: +[^[:space:]]{40}/ REJECT no spaces in subject > > > but I'm having a couple issues: and I'm still getting some, is this that they have a 'CR' or several at the start ? ---

rejecting long subject strings with pcre header checks

2011-04-28 Thread Voytek Eymont
I've followed the recent advice as I'm also getting a lot of these_long_subjects_emails_with_crap_in_them: -- * Noel Jones wrote : > On 4/27/2011 6:17 AM, Troy Piggins wrote: > >Hi there. I'm noticing lately most of the spam that gets through my > >postgrey/postfix/amavis/spamassas

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Troy Piggins
* Victor Duchovni wrote : > On Wed, Apr 27, 2011 at 06:42:55PM +0400, Michael Tokarev wrote: > > > 27.04.2011 15:44, Noel Jones wrote: > > [] > > > regexp and pcre compatible expression: > > > > > > /^Subject: +[^[:space:]]{60}/ REJECT no spaces > > > > > > matches Subject: followed by one or m

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Troy Piggins
* Noel Jones wrote : > On 4/27/2011 7:23 AM, Troy Piggins wrote: > >* Noel Jones wrote : > >>On 4/27/2011 6:17 AM, Troy Piggins wrote: > >>regexp and pcre compatible expression: > >> > >>/^Subject: +[^[:space:]]{60}/ REJECT no spaces > > > >Thanks mate. That works beautifully. One minor improve

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Victor Duchovni
On Wed, Apr 27, 2011 at 06:42:55PM +0400, Michael Tokarev wrote: > 27.04.2011 15:44, Noel Jones wrote: > [] > > regexp and pcre compatible expression: > > > > /^Subject: +[^[:space:]]{60}/ REJECT no spaces > > > > matches Subject: followed by one or more spaces, followed by 60 or more > > non-s

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Michael Tokarev
27.04.2011 15:44, Noel Jones wrote: [] > regexp and pcre compatible expression: > > /^Subject: +[^[:space:]]{60}/ REJECT no spaces > > matches Subject: followed by one or more spaces, followed by 60 or more > non-space characters. This will reject mime-encoded quoted-printable subjects. /mjt

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Noel Jones
On 4/27/2011 7:23 AM, Troy Piggins wrote: * Noel Jones wrote : On 4/27/2011 6:17 AM, Troy Piggins wrote: Hi there. I'm noticing lately most of the spam that gets through my postgrey/postfix/amavis/spamassassin/procmail rules contains subject lines that are extremely long strings with no spaces

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Troy Piggins
* Wietse Venema wrote : > Troy Piggins: > > Hi there. I'm noticing lately most of the spam that gets through my > > postgrey/postfix/amavis/spamassassin/procmail rules contains subject > > lines that are extremely long strings with no spaces in them. eg: > > > > Subject: > > DownloadLaetstMMiic

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Troy Piggins
* Noel Jones wrote : > On 4/27/2011 6:17 AM, Troy Piggins wrote: > >Hi there. I'm noticing lately most of the spam that gets through my > >postgrey/postfix/amavis/spamassassin/procmail rules contains subject > >lines that are extremely long strings with no spaces in them. eg: > > > >Subject: > >

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Noel Jones
On 4/27/2011 6:17 AM, Troy Piggins wrote: Hi there. I'm noticing lately most of the spam that gets through my postgrey/postfix/amavis/spamassassin/procmail rules contains subject lines that are extremely long strings with no spaces in them. eg: Subject: DownloadLaetstMMiicrosoftAndAppleSotfta

Re: rejecting long subject strings with pcre header checks

2011-04-27 Thread Wietse Venema
Troy Piggins: > Hi there. I'm noticing lately most of the spam that gets through my > postgrey/postfix/amavis/spamassassin/procmail rules contains subject > lines that are extremely long strings with no spaces in them. eg: > > Subject: > DownloadLaetstMMiicrosoftAndAppleSotftawreAndSaveThouasad

rejecting long subject strings with pcre header checks

2011-04-27 Thread Troy Piggins
Hi there. I'm noticing lately most of the spam that gets through my postgrey/postfix/amavis/spamassassin/procmail rules contains subject lines that are extremely long strings with no spaces in them. eg: Subject: DownloadLaetstMMiicrosoftAndAppleSotftawreAndSaveThouasadnds.ApprvoedLicecnseddS T