aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-10-01 23:55:42 +0200
committerJohannes Berg <johannes@sipsolutions.net>2007-10-01 23:55:42 +0200
commit08a43776866b6679f6a1f19be5f64f6e2c5b622d (patch)
treee37a21963eaee3d13fad2cc66f14fc6e23692c09
parent94bde817c5a33a8cbfc016e0201a3f4c8664937f (diff)
downloaddovecot-antispam-08a43776866b6679f6a1f19be5f64f6e2c5b622d.tar.gz
dovecot-antispam-08a43776866b6679f6a1f19be5f64f6e2c5b622d.tar.xz
dovecot-antispam-08a43776866b6679f6a1f19be5f64f6e2c5b622d.zip
use configured signature in crm114
-rw-r--r--crm114-exec.c3
-rw-r--r--signature.c2
-rw-r--r--signature.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/crm114-exec.c b/crm114-exec.c
index 91a72e7..9e701fd 100644
--- a/crm114-exec.c
+++ b/crm114-exec.c
@@ -34,7 +34,6 @@ static char **extra_args = NULL;
static int extra_args_num = 0;
#define FIXED_ARGS_NUM 2
-#define CRM_HDR "X-CRM114-CacheID"
static int call_reaver(const char *signature, enum classification wanted)
{
@@ -69,7 +68,7 @@ static int call_reaver(const char *signature, enum classification wanted)
/*
* Reaver wants the mail but only needs the cache ID
*/
- write(pipes[1], CRM_HDR, strlen(CRM_HDR));
+ write(pipes[1], signature_hdr, strlen(signature_hdr));
write(pipes[1], ": ", 2);
write(pipes[1], signature, strlen(signature));
write(pipes[1], "\r\n\r\n", 4);
diff --git a/signature.c b/signature.c
index 3af5e34..9a632a3 100644
--- a/signature.c
+++ b/signature.c
@@ -4,7 +4,7 @@
#include "signature.h"
#include "mail-storage-private.h"
-static char *signature_hdr = "X-DSPAM-Signature";
+char *signature_hdr = "X-DSPAM-Signature";
void signature_init(void)
{
diff --git a/signature.h b/signature.h
index fb3a098..85da0ff 100644
--- a/signature.h
+++ b/signature.h
@@ -20,4 +20,6 @@ const char *signature_extract(struct mailbox_transaction_context *t,
struct mail *mail);
void signature_list_free(struct siglist **list);
+extern char *signature_hdr;
+
#endif /* _ANTISPAM_SIGNATURE_H */