de7b741fdca78b7a4b5559c516e234b307d0fe39
[exim.git] / src / src / spf.h
1 /* $Cambridge: exim/src/src/spf.h,v 1.2 2004/12/16 15:11:47 tom Exp $ */
2
3 /*************************************************
4 *     Exim - an Internet mail transport agent    *
5 *************************************************/
6  
7 /* Experimental SPF support.
8    Copyright (c) Tom Kistner <tom@duncanthrax.net> 2004
9    License: GPL */
10
11 #ifdef EXPERIMENTAL_SPF
12
13 #include <spf2/spf.h>
14 #include <spf2/spf_dns_resolv.h>
15 #include <spf2/spf_dns_cache.h>
16
17 typedef struct spf_result_id {
18   uschar *name;
19   int    value;
20 } spf_result_id;
21
22 /* must be kept in numeric order */
23 static spf_result_id spf_result_id_list[] = {
24   { US"pass", 0 },
25   { US"fail", 1 },
26   { US"softfail", 2 },
27   { US"neutral", 3 },
28   { US"err_perm", 4 },
29   { US"err_temp", 5 },
30   { US"none", 6 }
31 };
32
33 static int spf_result_id_list_size = sizeof(spf_result_id_list)/sizeof(spf_result_id);
34
35 /* prototypes */
36 int spf_init(uschar *,uschar *);
37 int spf_process(uschar **, uschar *);
38
39 #endif