I needed the following patch to get one of my modules to build:
--- /usr/local/asf/include/mod_smtpd.h.orig Mon Aug 29 16:03:40 2005
+++ /usr/local/asf/include/mod_smtpd.h Mon Aug 29 16:03:55 2005
@@ -20,6 +20,7 @@
#include "apr_pools.h"
#include "apr_hash.h"
#include "apr_file_io.h"
+#include "util_filter.h"
#include "httpd.h"
#ifdef __cplusplus
Otherwise I get an error like this:
In file included from mod_smtpd_load.c:23:
/usr/local/asf/include/mod_smtpd.h:110: error: parse error before
"ap_filter_t"
/usr/local/asf/include/mod_smtpd.h:110: warning: no semicolon at end of
struct or union
Brian
On Aug 29, 2005, at 1:17 PM, Rian A Hunter wrote:
I just checked in support for input filters and header parsing in
mod_smtpd.
This currently means little since there is no documentation on how to
use
mod_smtpd or many example plugins. In the next few days (once I
receive power)
I will have a couple of example plugins checked in (regular expression
vrfy,
postfix queuer) and some minor documentation (maybe a tutorial +
tutorial
plugin).
mod_smtpd now also depends on libapreq2 for rfc822 header parsing
(configure
does not yet check if this is installed, patches welcome!!).
This mostly means that mod_smtpd is very close to completion. I expect
some
bug-fixes and I plan on adding a one-recipient/one-transaction feature
and a
message body reading abstraction, but other than that it seems to be
in its
final working state. Features include:
- Hooks on every important SMTP event, with pre-done logic to handle
denies and
disconnections.
- DATA command input filter support per transaction.
- RFC822 Header parsing via libapreq2
- Exported IO functions.
Have Fun!
-rian