From 08a43776866b6679f6a1f19be5f64f6e2c5b622d Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Mon, 1 Oct 2007 23:55:42 +0200 Subject: use configured signature in crm114 --- crm114-exec.c | 3 +-- signature.c | 2 +- signature.h | 2 ++ 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 */ -- cgit v1.2.3