"Jem Berkes" <[EMAIL PROTECTED]> writes: > The competing technology seems to be Sendmail's milter > interface which allows developers to hook their custom > filters into various stages of SMTP transactions.
If you follow the design of httpd, then you want to create an smtp_in filter that removes any extra '.'s. Upon seeing DATA, create a request_rec and parse the headers into r->headers_in. Then add the smtp_in filter and add request filters just like ap_invoke_handler does it. Then process the rest of the input stream using AP_MODE_READBYTES, letting smtp_in translate the final ".CRLF" into an eos bucket. That should give you enough flexibility that someone else could write a mod_milter and provide most (if not all) of the milter api. -- Joe Schaefer
