> i've shortened it to a very rudimentary expression and just a single line 
> match - it appears to be related somehow to the -h argument:
> 
>> cat header_checks-ignored
> /^Received/   IGNORE
> 
>> postmap -q - pcre:./header_checks-ignored < test_message
> Received: from localhost (localhost [127.0.0.1])      IGNORE
> 
>> postmap -hq - pcre:./header_checks-ignored < test_message
>> 
> 
> there must be something basic i'm overlooking?

i'm a fool.

>cat test_message
>cat test_message
Delivered-To: [email protected]
Return-Path: <[email protected]>
Received: from localhost (localhost [127.0.0.1])
        by mta.example.com (Postfix) with ESMTP id 76ABF40DF1
        for <[email protected]>; Tue, 19 Apr 2011 22:50:30 -0400 (EDT)
From: "[email protected]" <[email protected]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: tuesday's meeting
Date: Thu, 21 Apr 2011 21.47.30 -0400
To: "[email protected]" <[email protected]>
Mime-Version: 1.0
X-Mailer: mail client

meeting will be today

the first line of test_message was '>cat test_message'.  i somehow broke the 
test file and wasn't allowing myself to see it.

after being corrected:

>cat header_checks-ignored
/^Received: from localhost \(localhost \[127\.0\.0\.1\]\)\s+by 
mta\.example\.com \(Postfix\) with ESMTP id/             IGNORE

>postmap -hq - pcre:./header_checks-ignored < test_message
Received: from localhost (localhost [127.0.0.1])
        by mta.example.com (Postfix) with ESMTP id 76ABF40DF1
        for <[email protected]>; Tue, 19 Apr 2011 22:50:30 -0400 (EDT)   IGNORE

this all works just as it should, when the operator does what he should.

thanks
-ben


Reply via email to