procmail
[Top] [All Lists]

^TOperl not matching on To: comp.lang.perl.moderated (was Re: Question

2001-08-17 19:58:19
On Thu, 16 Aug 2001, Professional Software Engineering wrote:

At 19:51 2001-08-16 +0100, Tris did say:

How is

:0
* ^(To|Cc):.*(comp\.lang\.)?perl
pl

different in action to

:0
* ^(To|Cc):.*perl
pl

It isn't.

Thanks, that's my condition line. Yes I thought the ^TO macro
would only work if 'perl' followed white space. In fact it
matches 'perl' following any non-alphabetic character. 

Still however, ^TOperl is failing to catch 

^To:  comp.lang.perl.moderated

at least on the first time procmail sees it:

procmail: [98144] Sat Aug 18 10:27:39 2001
procmail: No match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparent
ly(-Resent)?)-To):(.*[^a-zA-Z])?)perl"
procmail: Assigning "VERBOSE=off"
From clpm-owner(_at_)lists(_dot_)eyrie(_dot_)org Sat Aug 18 02:27:39 2001
 Subject: Stringified '0\d'
  Folder: /usr/home/lang/Mail/mbox                                         2399

Then I pipe the message back through procmail and get:

procmail: [98258] Sat Aug 18 10:31:00 2001
procmail: Match on "(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(
-Resent)?)-To):(.*[^a-zA-Z])?)perl"
procmail: Assigning "LASTFOLDER=pl"
procmail: Opening "pl"
procmail: Acquiring kernel-lock
From clpm-owner(_at_)lists(_dot_)eyrie(_dot_)org Sat Aug 18 02:27:39 2001
 Subject: Stringified '0\d'
  Folder: pl                                                               2399

The headers from the message in question are:


From clpm-owner(_at_)lists(_dot_)eyrie(_dot_)org Sat Aug 18 02:27:39 2001
Return-Path: <clpm-owner(_at_)lists(_dot_)eyrie(_dot_)org>
Delivered-To: lang(_at_)ms(_dot_)chinmin(_dot_)edu(_dot_)tw
Received: (qmail 98139 invoked from network); 18 Aug 2001 02:27:37 -0000
Received: from unknown (HELO haven.eyrie.org) (171.64.13.121)
  by ms.chinmin.edu.tw with SMTP; 18 Aug 2001 02:27:37 -0000
Received: (qmail 31786 invoked by uid 201); 18 Aug 2001 02:23:25 -0000
Delivered-To: clpm(_at_)lists(_dot_)eyrie(_dot_)org
Received: (qmail 31781 invoked from network); 18 Aug 2001 02:23:24 -0000
Received: from windlord.stanford.edu (171.64.13.23)
  by eyrie.org with SMTP; 18 Aug 2001 02:23:24 -0000
Received: (qmail 18176 invoked by uid 50); 18 Aug 2001 02:24:30 -0000
Old-To: clpm(_at_)lists(_dot_)eyrie(_dot_)org
From: sweth+perl(_at_)gwu(_dot_)edu (Sweth Chandramouli)
Newsgroups: comp.lang.perl.moderated
Subject: Stringified '0\d'
Message-ID: 
<tydf7(_dot_)1412$c81(_dot_)397567(_at_)news1(_dot_)rdc1(_dot_)md(_dot_)home(_dot_)com>
Date: Fri, 17 Aug 2001 18:40:25 GMT
X-Complaints-To: abuse(_at_)home(_dot_)net
X-Trace: news1.rdc1.md.home.com 998073625 24.7.171.135 (Fri, 17 Aug 2001 
11:40:25 PDT)
NNTP-Posting-Date: Fri, 17 Aug 2001 11:40:25 PDT
Organization: Excite(_at_)Home - The Leader in Broadband http://home.com/faster
X-Original-NNTP-Posting-Host: 24.7.171.135
Sender: clpm-owner(_at_)lists(_dot_)eyrie(_dot_)org
Precedence: bulk
To:  comp.lang.perl.moderated
Status: RO
Content-Length: 1109
Lines: 59

The recipe in question is:

VERBOSE=on
:0
# * ^TO(comp\.lang\.)?perl
* ^TOperl
pl
VERBOSE=off

I diffed the 2 copies of the message in my mbox folder and my pl
folder and there is no difference in them, after reading both in
mutt. 

-- 
Greg Matheson                    Think globally.
Chinmin College,                 Act locally.
Taiwan                           Think one thing, do another.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>