On Fri, Nov 12, 1999 at 11:56:19AM -0500, Derek Callaway wrote:
> Is there a way I can pipe the headers of each incoming message that is
> successfully delivered through a program? I wish to insert certain fields
> from the headers (From, Subject, To, etc.) into a MySQL database.
If "successfully" is an option and not a must, you can configure a
extra delivery in extra.h in the qmail source tree.
I use
#define QUEUE_EXTRA "Tlog\0"
#define QUEUE_EXTRALEN 5
wich causes a copy of *each* message to be delivered to user "log".
I have a small awk programm in ~alias/.qmail-log which does some
header processing and additional logging.
\Maex
--
SpaceNet GmbH | http://www.Space.Net/ | Yeah, yo mama dresses
Research & Development | mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | a mouse to delete files
D-80807 Muenchen | Fax: +49 (89) 32356-299 |