$arg) { milter_log("\targs[$ix] = $arg"); } } /** * is called once per recipient, hence one or more times per message, * immediately after milter_envfrom */ function milter_envrcpt($args) { milter_log("milter_envrcpt(args[])"); foreach ($args as $ix => $arg) { milter_log("\targs[$ix] = $arg"); } } /** * is called zero or more times between milter_envrcpt and milter_eoh, * once per message header */ function milter_header($header, $value) { milter_log("milter_header('$header', '$value')"); } /** * is called once after all headers have been sent and processed. */ function milter_eoh() { milter_log("milter_eoh()"); } /** * is called zero or more times between milter_eoh and milter_eom. */ function milter_body($bodypart) { milter_log("milter_body('$bodypart')"); } /** * is called once after all calls to milter_body for a given message. * most of the api functions, that alter the message can only be called * within this callback. */ function milter_eom() { milter_log("milter_eom()"); /* add PHP header to the message */ smfi_addheader("X-PHP", phpversion()); } /** * may be called at any time during message processing * (i.e. between some message-oriented routine and milter_eom). */ function milter_abort() { milter_log("milter_abort()"); } /** * is always called once at the end of each connection. */ function milter_close() { milter_log("milter_close()"); } ?>