summaryrefslogtreecommitdiff
path: root/src/src/spam.h
blob: 0e3acfc25a396fc3ce044fdf5d3844a1965aef1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*************************************************
*     Exim - an Internet mail transport agent    *
*************************************************/

/* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2003-???? */
/* License: GPL */

/* spam defines */

#ifdef WITH_CONTENT_SCAN

/* timeout for reading and writing spamd */
#define SPAMD_TIMEOUT 120

/* maximum length of the spam bar */
#define MAX_SPAM_BAR_CHARS 50

/* SHUT_WR seems to be undefined on Unixware ? */
#ifndef SHUT_WR
# define SHUT_WR 1
#endif

/* default weight */
#define SPAMD_WEIGHT 1

typedef struct spamd_address_container
{
  uschar * hostspec;
  int is_rspamd:1;
  int is_failed:1;
  int is_backup:1;
  unsigned int weight;
  unsigned int timeout;
  unsigned int retry;
} spamd_address_container;

#endif