Commit | Line | Data |
---|---|---|
7c41bb87 | 1 | /* $Cambridge: exim/src/src/spf.h,v 1.5 2005/06/24 08:36:48 tom Exp $ */ |
8523533c TK |
2 | |
3 | /************************************************* | |
4 | * Exim - an Internet mail transport agent * | |
5 | *************************************************/ | |
8e669ac1 | 6 | |
8523533c TK |
7 | /* Experimental SPF support. |
8 | Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004 | |
9 | License: GPL */ | |
10 | ||
11 | #ifdef EXPERIMENTAL_SPF | |
12 | ||
384152a6 TK |
13 | /* Yes, we do have ns_type. spf.h redefines it if we don't set this. Doh */ |
14 | #define HAVE_NS_TYPE | |
8523533c | 15 | #include <spf2/spf.h> |
384152a6 TK |
16 | |
17 | ||
8523533c TK |
18 | #include <spf2/spf_dns_resolv.h> |
19 | #include <spf2/spf_dns_cache.h> | |
20 | ||
384152a6 | 21 | |
8523533c TK |
22 | typedef struct spf_result_id { |
23 | uschar *name; | |
24 | int value; | |
25 | } spf_result_id; | |
26 | ||
27 | /* must be kept in numeric order */ | |
28 | static spf_result_id spf_result_id_list[] = { | |
7c41bb87 TK |
29 | { US"invalid", 0}, |
30 | { US"neutral", 1 }, | |
31 | { US"pass", 2 }, | |
32 | { US"fail", 3 }, | |
33 | { US"softfail", 4 }, | |
34 | { US"none", 5 }, | |
35 | { US"err_temp", 6 }, | |
36 | { US"err_perm", 7 } | |
8523533c TK |
37 | }; |
38 | ||
39 | static int spf_result_id_list_size = sizeof(spf_result_id_list)/sizeof(spf_result_id); | |
40 | ||
41 | /* prototypes */ | |
42 | int spf_init(uschar *,uschar *); | |
43 | int spf_process(uschar **, uschar *); | |
44 | ||
45 | #endif |