Add time, weight and backup modifiers to spamd_address list elements. Bug 670
[exim.git] / src / src / spam.h
index b1c8313c31288e39c448b05bb576f4501b639e92..50aed914535fd0fa5898095533c1904dd10dd5b2 100644 (file)
@@ -1,5 +1,3 @@
-/* $Cambridge: exim/src/src/spam.h,v 1.3 2005/04/27 10:00:18 ph10 Exp $ */
-
 /*************************************************
 *     Exim - an Internet mail transport agent    *
 *************************************************/
 
 /* 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;
+/* default weight */
+#define SPAMD_WEIGHT 1
+
+typedef struct spamd_address_container
+{
+  uschar * hostname;
+  unsigned short tcp_port;
+  int is_rspamd:1;
+  int is_failed:1;
+  int is_backup:1;
+  unsigned int weight;
 } spamd_address_container;
 
 #endif