1N/A * Copyright (c) 2006 Sendmail, Inc. and its suppliers. 1N/A * All rights reserved. 1N/A * By using this file, you agree to the terms and conditions set 1N/A * forth in the LICENSE file which can be found at the top level of 1N/A * the sendmail distribution. 1N/A** A trivial example filter that logs all email to a file. 1N/A** This milter also has some callbacks which it does not really use, 1N/A** but they are defined to serve as an example. 1N/A /* close the archive file */ 1N/A /* failed; we have to wait until later */ 1N/A /* add a header to the message announcing our presence */ 1N/A /* message was aborted -- delete the archive file */ 1N/A /* release private memory */ 1N/A /* allocate some private memory */ 1N/A /* can't accept this message right now */ 1N/A /* open a file to store this message */ 1N/A /* save the private data */ 1N/A /* continue processing */ 1N/A /* write the header to the log file */ 1N/A /* continue processing */ 1N/A /* output the blank line between the header and the body */ 1N/A /* continue processing */ 1N/A /* output body block to log file */ 1N/A /* continue processing */ 1N/A /* milter actions: add headers */ 1N/A /* milter protocol steps: all but connect, HELO, RCPT */ 1N/A "SampleFilter",
/* filter name */ 1N/A NULL,
/* SMTP HELO command filter */ 1N/A NULL,
/* envelope recipient filter */ 1N/A /* Process command line options */