git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add time, weight and backup modifiers to spamd_address list elements. Bug 670
[exim.git]
/
src
/
src
/
spam.h
diff --git
a/src/src/spam.h
b/src/src/spam.h
index e6d27a137564bd85b068f6e8463c82117580bcb3..50aed914535fd0fa5898095533c1904dd10dd5b2 100644
(file)
--- a/
src/src/spam.h
+++ b/
src/src/spam.h
@@
-17,13
+17,20
@@
/* SHUT_WR seems to be undefined on Unixware ? */
#ifndef SHUT_WR
/* SHUT_WR seems to be undefined on Unixware ? */
#ifndef SHUT_WR
-#define SHUT_WR 1
+#
define SHUT_WR 1
#endif
#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
} spamd_address_container;
#endif