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 this that they have a 'CR' or
several at
the start ?

-------------------------------------
From: Giulietta Gonano<[email protected]>
To:<[email protected]>
Subject:
AdboeeAndCooerelDealls-BuyWith70%DiccsounttAndStartDownloaoadingRightAway

Date: Fri, 29 Apr 2011 02:55:52 +0000
Importance: Normal
In-Reply-To:<[email protected]>
References:
<[email protected]>,<[email protected]>,<SNT128-


...snip...

[email protected]>
MIME-Version: 1.0
X-OriginalArrivalTime: 29 Apr 2011 02:55:52.0843 (UTC)
FILETIME=[F3EF4DB0:01CC0618]

=====================================

From: Cammie Plasket<[email protected]>
To:<[email protected]>
Subject:
StaitstcicsSshowThatMenDon'TLiveeAsLongAssWommenAnddAreMoreAtRiiskOfAcciidents,Injuieres.

Date: Fri, 29 Apr 2011 02:15:50 +0000
Importance: Normal
In-Reply-To:<[email protected]>


=====================================





Try
/^Subject:[[:space:]]+[^[:space:]]{40}/ REJECT no spaces in
subject


-- Noel Jones

this is safer -- it shouldn't match valid encoded subjects.

IF !/=\?[^[:space:]]+\?=([[:space:]]|$)/
/[^[:space:]]{40}/        REJECT long subject with no spaces
ENDIF


  -- Noel Jones

Reply via email to