X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fspam.h;h=312dce8de86bf61cd234eeb14409017fd643c888;hb=20586bdc24045da63928cbdaace2f036e3c80bd5;hp=e6d27a137564bd85b068f6e8463c82117580bcb3;hpb=c5f280e20a8e3ecd5f016b8fb34a436588915ed2;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/spam.h b/src/src/spam.h index e6d27a137..312dce8de 100644 --- a/src/src/spam.h +++ b/src/src/spam.h @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) Tom Kistner 2003-???? */ +/* Copyright (c) Tom Kistner 2003 - 2015 */ /* License: GPL */ /* spam defines */ @@ -12,18 +12,28 @@ /* timeout for reading and writing spamd */ #define SPAMD_TIMEOUT 120 -/* maximum length of the spam bar */ +/* maximum length of the spam bar, please update the + * spec, the max length is mentioned there */ #define MAX_SPAM_BAR_CHARS 50 /* SHUT_WR seems to be undefined on Unixware ? */ #ifndef SHUT_WR -#define SHUT_WR 1 +# define SHUT_WR 1 #endif -typedef struct spamd_address_container { - uschar tcp_addr[24]; - unsigned short int tcp_port; - BOOL is_rspamd; +/* Defaults */ +#define SPAMD_WEIGHT 1 +#define SPAMD_PRIORITY 1 + +typedef struct spamd_address_container +{ + uschar * hostspec; + int is_rspamd:1; + int is_failed:1; + unsigned int weight; + unsigned int timeout; + unsigned int retry; + unsigned int priority; } spamd_address_container; #endif