(1) Last-minute sieve patch (updates to latest spec).
[exim.git] / src / src / spf.h
CommitLineData
8e669ac1 1/* $Cambridge: exim/src/src/spf.h,v 1.3 2005/02/17 11:58:26 ph10 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
13#include <spf2/spf.h>
14#include <spf2/spf_dns_resolv.h>
15#include <spf2/spf_dns_cache.h>
16
17typedef struct spf_result_id {
18 uschar *name;
19 int value;
20} spf_result_id;
21
22/* must be kept in numeric order */
23static 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
33static int spf_result_id_list_size = sizeof(spf_result_id_list)/sizeof(spf_result_id);
34
35/* prototypes */
36int spf_init(uschar *,uschar *);
37int spf_process(uschar **, uschar *);
38
39#endif