aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/spf.h
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-09-22 11:55:07 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-09-23 15:03:41 +0200
commitbaf74ba8c1f6bff834d93aaee9e6afd6b5c97aef (patch)
treed676e4da1b741f699a826782841f6fb542cacaae /src/libserver/spf.h
parentf880b3e10995c19029a61ac61f63497b96913316 (diff)
downloadrspamd-baf74ba8c1f6bff834d93aaee9e6afd6b5c97aef.tar.gz
rspamd-baf74ba8c1f6bff834d93aaee9e6afd6b5c97aef.zip
[Feature] Add R_SPF_PERMFAIL symbol
- Also yield R_SPF_DNSFAIL on bogus redirect - Also grow SPF tests
Diffstat (limited to 'src/libserver/spf.h')
-rw-r--r--src/libserver/spf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/spf.h b/src/libserver/spf.h
index 001d3775a..1e2bcfe45 100644
--- a/src/libserver/spf.h
+++ b/src/libserver/spf.h
@@ -38,6 +38,7 @@ typedef enum spf_action_e {
#define RSPAMD_SPF_FLAG_REFRENCE (1 << 6)
#define RSPAMD_SPF_FLAG_REDIRECT (1 << 7)
#define RSPAMD_SPF_FLAG_TEMPFAIL (1 << 8)
+#define RSPAMD_SPF_FLAG_NA (1 << 9)
struct spf_addr {
guchar addr6[sizeof (struct in6_addr)];
@@ -58,7 +59,8 @@ struct spf_addr {
struct spf_resolved {
gchar *domain;
guint ttl;
- gboolean failed;
+ gboolean temp_failed;
+ gboolean na;
GArray *elts; /* Flat list of struct spf_addr */
ref_entry_t ref; /* Refcounting */
};