> b...@bitrate.net:
>>> postmap -q - regexp:./header_checks-ignored < test_message
> 
> You need to tell postmap that the file contains an email message.

ugh.  i knew this too, and was even doing it last night when originally 
testing.  thanks.  so - given that oversight, and also switching to pcre [at 
least for the moment] given noel's comments, let me try this again:

>cat test_message 
Delivered-To: f...@example.com
Return-Path: <b...@example.net>
Received: from localhost (localhost [127.0.0.1])
        by mta.example.com (Postfix) with ESMTP id 76ABF40DF1
        for <u...@example.com>; Tue, 19 Apr 2011 22:50:30 -0400 (EDT)
From: "b...@example.net" <b...@example.net>
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: "f...@example.com" <f...@example.com>
Mime-Version: 1.0
X-Mailer: mail client

today's meeting will be today

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

>postmap -hq - pcre:./header_checks-ignored < test_message
>

-ben

Reply via email to