SPDX: license tags (mostly by guesswork)
[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 /* SPDX-License-Identifier: GPL-2.0-only */
9
10 /* spam defines */
11
12 #ifdef WITH_CONTENT_SCAN
13
14 /* timeout for reading and writing spamd */
15 #define SPAMD_TIMEOUT 120
16
17 /* maximum length of the spam bar, please update the
18  * spec, the max length is mentioned there */
19 #define MAX_SPAM_BAR_CHARS 50
20
21 /* SHUT_WR seems to be undefined on Unixware ? */
22 #ifndef SHUT_WR
23 # define SHUT_WR 1
24 #endif
25
26 /* Defaults */
27 #define SPAMD_WEIGHT 1
28 #define SPAMD_PRIORITY 1
29
30 typedef struct spamd_address_container
31 {
32   uschar * hostspec;
33   int is_rspamd:1;
34   int is_failed:1;
35   unsigned int weight;
36   unsigned int timeout;
37   unsigned int retry;
38   unsigned int priority;
39 } spamd_address_container;
40
41 #endif