aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-09-30 15:55:46 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-09-30 15:55:46 +0200
commit2e9f97299ee15034513623f55c60efa5dccbff32 (patch)
tree890fdf71263334438d550b4c2f262d37b8d8c980 /plugin.c
parent6ee873226fd4878cca1bc72bb9cca3fa1d866cb7 (diff)
downloaddovecot-antispam-2e9f97299ee15034513623f55c60efa5dccbff32.tar.gz
dovecot-antispam-2e9f97299ee15034513623f55c60efa5dccbff32.tar.xz
dovecot-antispam-2e9f97299ee15034513623f55c60efa5dccbff32.zip
grammar fix
Diffstat (limited to 'plugin.c')
-rw-r--r--plugin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin.c b/plugin.c
index 944c446..02c4a4c 100644
--- a/plugin.c
+++ b/plugin.c
@@ -43,7 +43,7 @@ static char *default_spam_folders[] = {
NULL
};
static char **spam_folders = default_spam_folders;
-#ifdef BACKEND_WANT_SIGNATURE
+#ifdef BACKEND_WANTS_SIGNATURE
static char *signature_hdr = "X-DSPAM-Signature";
#endif
@@ -109,7 +109,7 @@ static int fetch_and_copy(struct client *client,
int ret;
/* MODIFIED: new variables */
pool_t pool = pool_alloconly_create("antispam-copy-pool", 1024);
-#ifdef BACKEND_WANT_SIGNATURE
+#ifdef BACKEND_WANTS_SIGNATURE
const char *signature;
struct strlist *siglist = NULL;
#else
@@ -132,7 +132,7 @@ static int fetch_and_copy(struct client *client,
client_send_sendalive_if_needed(client);
/* MODIFIED: keep track of mail as we copy */
-#ifdef BACKEND_WANT_SIGNATURE
+#ifdef BACKEND_WANTS_SIGNATURE
signature = mail_get_first_header(mail, signature_hdr);
if (is_empty_str(signature)) {
ret = SIGNATURE_MISSING;
@@ -161,7 +161,7 @@ static int fetch_and_copy(struct client *client,
ret = -1;
/* MODIFIED: pass to backend */
-#ifdef BACKEND_WANT_SIGNATURE
+#ifdef BACKEND_WANTS_SIGNATURE
/* got all signatures now, pass them to backend if no errors */
if (ret == 0) {
ret = backend(pool, src_spam, siglist);
@@ -339,7 +339,7 @@ void antispam_init(void)
} else
debug("antispam: no spam folders\n");
-#ifdef BACKEND_WANT_SIGNATURE
+#ifdef BACKEND_WANTS_SIGNATURE
tmp = getenv("ANTISPAM_SIGNATURE");
if (tmp)
signature_hdr = tmp;