Great Circle Associates Majordomo-Workers
(December 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: taboo_headers question...
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Thu, 5 Dec 1996 16:12:48 -0600 (CST)
To: remaus @ great-lakes . net (Ron Emaus)
Cc: jduche @ creighton . edu, majordomo-users @ greatcircle . com, majordomo-workers @ greatcircle . com (Majordomo developer's mailing list)
In-reply-to: <Pine.SUN.3.91.961205164045.15791D-100000@cedar.cic.net> from "Ron Emaus" at Dec 5, 96 04:49:33 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Ron Emaus writes: ]
> 
> The sample.cf file comes with the following lines already in the 
> $global_taboo_header section:
> 
> /^subject:\s*RCPT:\b/i
> /^subject:\s*Receipt Confirmation\b/i
> 
> 
> I sent a message to a a new 1.94 list I'm testing with each of these 
> strings in the subject line. The first doesn't work but the second does. 
[...]
> Can someone explain why my testing of the RCPT: header didn't BOUNCE?

Because the ":\b" is nonsense. Unless the colon is immediately followed
by a "word" character (\w), "\b" can't possibly match since the colon
is a "non-word" character (\W) and thus there is no transition, i.e.
no "(\w\W||W\w)". To say it another way, "\b" is only meaningful at
the boundary between "word" and "non-word" characters. The first regex
should be written as:

    /^subject:\s*RCPT:/i

Here's the sample.cf patch (output line numbers assume 1.94.1 patches):

--- sample.cf.orig	Thu Nov  7 11:28:21 1996
+++ sample.cf	Thu Dec  5 16:09:35 1996
@@ -243,7 +244,7 @@
 #
 $global_taboo_headers = <<'END';
 /^subject: ndn: /i
-/^subject:\s*RCPT:\b/i
+/^subject:\s*RCPT:/i
 /^subject:\s*Delivery Confirmation\b/i
 /^subject:\s*NON-DELIVERY of:/i
 /^subject:\s*Undeliverable Message\b/i

-- 
 Dave Wolfe

Indexed By Date Previous: Re: : MAJORDOMO ABORT (fwd)
From: Dave Barr <barr@math.psu.edu>
Next: Re: : MAJORDOMO ABORT (fwd)
From: Dave Barr <barr@math.psu.edu>
Indexed By Thread Previous: Re: 1.9.4#4 digest doesn't require "majordomo.pl"
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Re: owner-listname (was: MAJORDOMO ABORT (fwd) )
From: "Alan Millar" <amillar@bolis.com>

Google
 
Search Internet Search www.greatcircle.com