aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-01 14:17:23 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-10-01 14:17:23 +0200
commit74b2bd7184ad32939235be32452d3569bba67370 (patch)
tree24e2113b9599241793cb0ae38e7bc1fa2736aad4 /plugin.h
parent40c43ecda62039059360b400dde4dc44edc67c3a (diff)
downloaddovecot-antispam-74b2bd7184ad32939235be32452d3569bba67370.tar.gz
dovecot-antispam-74b2bd7184ad32939235be32452d3569bba67370.tar.xz
dovecot-antispam-74b2bd7184ad32939235be32452d3569bba67370.zip
start box plugin experiment, seems not to work
Diffstat (limited to 'plugin.h')
-rw-r--r--plugin.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/plugin.h b/plugin.h
deleted file mode 100644
index c2281ad..0000000
--- a/plugin.h
+++ /dev/null
@@ -1,40 +0,0 @@
-#ifndef _ANTISPAM_PLUGIN_H
-#define _ANTISPAM_PLUGIN_H
-
-#include <unistd.h>
-#include "lib.h"
-#include "mempool.h"
-
-struct strlist {
- struct strlist *next;
- const char *str;
-};
-
-#ifdef BACKEND_WANTS_SIGNATURE
-/*
- * Call backend giving
- * - pool: dovecot memory pool, will be freed afterwards
- * - spam: whether mail comes from spam folder or not
- * - sigs: signatures, next == NULL terminates list
- * -
- */
-bool backend(pool_t pool, bool spam, struct strlist *sigs);
-#elif CONFIG_PLUGIN_WANT_MAIL
-#error TODO: no support for pristine training yet
-#else
-#error BUILD SYSTEM ERROR
-#endif
-
-void backend_init(pool_t pool);
-void backend_exit(void);
-
-#ifdef CONFIG_DEBUG
-void debug(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
-#else
-static void debug(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
-static inline void debug(const char *fmt, ...)
-{
-}
-#endif
-
-#endif /* _ANTISPAM_PLUGIN_H */