OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: Re: Header logging, revisited
From: Michael Schwager (mikeschwager.com)
Date: Tue Apr 04 2000 - 00:13:42 CDT


> ... in terms of performance it seems to be not a good
> idea to transfer the whole message first only to cut the message text
> after.
>
> Is there any easy way to modify (patch) postfix ("always_bcc") to transfer
> the headers only?

A glance at the source seems to indicate that it won't keep writing if you
exit before receiving the entire message. I'm not sure what the
ramifications are, but it seems that it shouldn't be a performance
problem. See mail_copy.c, line 173 in the postfix-19991231-pl05 code:
   if (VSTRING_LEN(buf) && VSTREAM_FWRITE_BUF(dst, buf) !=
VSTRING_LEN(buf))
            break;

The performance hit, I believe, comes in fork()'ing and exec()'ing a pipe
command.

--
-Mike                          MikeSchwager.com