Add time, weight and backup modifiers to spamd_address list elements. Bug 670
[exim.git] / src / src / spam.h
index e6d27a137564bd85b068f6e8463c82117580bcb3..50aed914535fd0fa5898095533c1904dd10dd5b2 100644 (file)
 
 /* 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 short int tcp_port;
-  BOOL is_rspamd;
+/* 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