Copyright updates:
[exim.git] / src / src / spam.h
1 /*************************************************
2 *     Exim - an Internet mail transport agent    *
3 *************************************************/
4
5 /* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2003 - 2015 */
6 /* Copyright (c) The Exim Maintainers 2021 */
7 /* License: GPL */
8
9 /* spam defines */
10
11 #ifdef WITH_CONTENT_SCAN
12
13 /* timeout for reading and writing spamd */
14 #define SPAMD_TIMEOUT 120
15
16 /* maximum length of the spam bar, please update the
17  * spec, the max length is mentioned there */
18 #define MAX_SPAM_BAR_CHARS 50
19
20 /* SHUT_WR seems to be undefined on Unixware ? */
21 #ifndef SHUT_WR
22 # define SHUT_WR 1
23 #endif
24
25 /* Defaults */
26 #define SPAMD_WEIGHT 1
27 #define SPAMD_PRIORITY 1
28
29 typedef struct spamd_address_container
30 {
31   uschar * hostspec;
32   int is_rspamd:1;
33   int is_failed:1;
34   unsigned int weight;
35   unsigned int timeout;
36   unsigned int retry;
37   unsigned int priority;
38 } spamd_address_container;
39
40 #endif