On 09/09/2008 04:11:59 PM, Kenneth Kalmer wrote:
Hi all

I've spent a couple of hours Googling the topic before posting, and
couldn't
find anything really useful yet.

I need a way to save copies of email headers for later analysis, not
the
entire message. Is this possible out the box, with an addon, a
separate
piece of software, or would I have to roll my own?

To get started try using the content filter I just posted to the list
Subject:Race in simplest after-queue content filter?
but replace the awk part with tee in the fashion of:

{ tee -a /var/tmp/headers.log ; echo ; echo } \
 | nc -q $DELAY $host $port

(Double \n added per Victor Duchovni's recommendation.)

To eliminate concurrency problems you might want to be sure
that master.cf runs only 1 of these at any one time.

Of course YMMV, my script might be terrible.  It works
for me but I hope to make it better with assistance from
this list.

In the long run you might do better than a shell script.

Karl <[EMAIL PROTECTED]>
Free Software:  "You don't pay back, you pay forward."
                 -- Robert A. Heinlein

Reply via email to