> 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: 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 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 <u...@example.com>; 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