diff src/sm-archive.h @ 0:616666e2f34c

initial version
author carl
date Fri, 10 Mar 2006 10:30:08 -0800
parents
children 32b57406b656
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/sm-archive.h	Fri Mar 10 10:30:08 2006 -0800
@@ -0,0 +1,27 @@
+#ifndef dnsbl_include
+#define dnsbl_include
+
+#include "context.h"
+
+extern int debug_syslog;
+
+////////////////////////////////////////////////
+// mail filter private data, held for us by sendmail
+//
+struct mlfiPriv
+{
+	// connection specific data
+	CONFIG	*pc;			// global filtering configuration
+	// message specific data
+	char	*mailaddr;		// envelope from value
+	char	*queueid;		// sendmail queue id
+	bool	processed_from; // looked at env_from address
+	mlfiPriv();
+	~mlfiPriv();
+	void reset(bool final = false); // for a new message
+};
+
+void my_syslog(mlfiPriv *priv, char *text);
+void my_syslog(char *text);
+
+#endif