X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fsrc%2Fspam.h;h=0362e49ddb21bf0e4a7ca0325f861c877b1deedb;hb=refs%2Fheads%2Ffix_isis_typos;hp=b1c8313c31288e39c448b05bb576f4501b639e92;hpb=cfe75fc353d701560110e26fe3b1a6bab8cae2b4;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/spam.h b/src/src/spam.h index b1c8313c3..0362e49dd 100644 --- a/src/src/spam.h +++ b/src/src/spam.h @@ -1,11 +1,11 @@ -/* $Cambridge: exim/src/src/spam.h,v 1.3 2005/04/27 10:00:18 ph10 Exp $ */ - /************************************************* * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) Tom Kistner 2003-???? */ +/* Copyright (c) Tom Kistner 2003 - 2015 */ +/* Copyright (c) The Exim Maintainers 2021 */ /* License: GPL */ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* spam defines */ @@ -14,17 +14,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 int tcp_port; +/* 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