Hmmm, yep, that does make it a bit more difficult.  I think the following
header checks should work, however:

    /^Subject: *$/                                    DUNNO
    /^Subject: *\[.+\]*$/                          DUNNO
    /^Subject:[ a-zA-Z0-9,;:.?\(\)-]*$/     DUNNO
    /[^[:print:]]+/                                     DUNNO
    /./                                                      550 I don't
like your subject

Ran the subjects below through these header-checks:

    postmap -q - regexp:regexp-test < subject-test

and got the following results:
=====
subject: re: req. 02-2015  secure site ssl certificates - verisign
products.htm DUNNO
subject: [sniffer] uptick in false positives    DUNNO
subject: cancellation - diagnostic imaging of southern nevada   DUNNO
subject:        DUNNO
subject: fw: unable to deliver mail (re:  re:  3160.08 encrypt if regex
string in body) DUNNO
subject: subject: =?iso-8859-1?b?4nzbifrlc3q=?=" is "subject: ��� test
DUNNO
subject: -"m`y gir'lfrien"ds ar.e over the m'oon...    fltgmtdqafuqnb   550
I don't like your subject
subject: _`,gi-ve her s'ome th^ing to pr-ais:e you f:o.r! mmeynpbbfafucd
550 I don't like your subject
subject: gu.ara^nteed _p.enl,le gr:owth'        550 I don't like your
subject
subject: *.`^-bo:0s:t" d:ick" s.i,z:e-:    nfpequbd     550 I don't like
your subject
subject: re: [imgate] re: blocking on carets    DUNNO
subject: rte payer conversion status week of 10/24/2003 DUNNO
subject: re: [members] wow technologies (as 23033) would like to peer with
your network.        DUNNO
subject: re: pcn 35-1 - environ: qa dept: secure messaging what: sigabanet
2.1.24 template changes DUNNO
subject: return - *** important - new employee notification *** 550 I don't
like your subject
=====

They may still need a bit of tweaking, but I think they should be pretty
close to what you want, including the passing of non-printable characters.

Bill
----- Original Message ----- 
From: "Cybertime Hostmaster" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 6:19 PM
Subject: [IMGate] Re: Blocking on carets



> This will allow you to define and accept whatever you feel is customary
> punctuation for the subject line, unless of course you want to exclude
all
> punctuation from the subject line.

The goal is to stop this junk:

Subject: -"m`y gir'lfrien"ds ar.e over the m'oon...    fltgmtdqafuqnb
Subject: _`,Gi-ve her s'ome th^ing to pr-ais:e you f:o.r!
mmeynpbbfafucd
Subject: Gu.ara^nteed _P.ENl,LE GR:OWTH'
Subject: *.`^-BO:0S:T" D:ICK" S.I,Z:E-:    nfpequbd

--Eric




Reply via email to