> [email protected]: >>> 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: [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 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
