[exim-cvs] Change strings of SPF result to conform to RFC 44…

Top Page
Delete this message
Reply to this message
Author: Exim Git Commits Mailing List
Date:  
To: exim-cvs
Subject: [exim-cvs] Change strings of SPF result to conform to RFC 4408
Gitweb: http://git.exim.org/exim.git/commitdiff/8ddef6917dd85f3da6ea2ccdb1d6734b78aee521
Commit:     8ddef6917dd85f3da6ea2ccdb1d6734b78aee521
Parent:     770747fd28008931d72a9f87be83286eaf626a95
Author:     Todd Lyons <tlyons@???>
AuthorDate: Thu Mar 6 20:55:19 2014 -0800
Committer:  Todd Lyons <tlyons@???>
CommitDate: Thu Mar 6 20:56:00 2014 -0800


    Change strings of SPF result to conform to RFC 4408


    Introduces a small backwards incompatible change to two results,
      err_temp to temperror and err_perm to permerror.
---
 doc/doc-txt/ChangeLog             |  4 ++++
 doc/doc-txt/experimental-spec.txt | 14 ++++++++------
 src/src/spf.c                     |  4 ++--
 3 files changed, 14 insertions(+), 8 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index 889d6a4..1ca558e 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -41,6 +41,10 @@ TL/04 Add verify = header_names_ascii check to reject email with non-ASCII
       characters in header names, implemented as a verify condition.
       Contributed by Michael Fischer v. Mollard.


+TL/05 Rename SPF condition results err_perm and err_temp to standardized
+      results permerror and temperror. Is a backward incompatibility if
+      the ACL tests for either of these two results. Patch contributed by
+      user bes-internal on the mailing list.


 Exim version 4.82
 -----------------
diff --git a/doc/doc-txt/experimental-spec.txt b/doc/doc-txt/experimental-spec.txt
index b80e02b..2395267 100644
--- a/doc/doc-txt/experimental-spec.txt
+++ b/doc/doc-txt/experimental-spec.txt
@@ -452,12 +452,14 @@ which the spf condition should succeed. Valid strings are:
               This means the queried domain has published
               a SPF record, but wants to allow outside
               servers to send mail under its domain as well.
-  o err_perm  This indicates a syntax error in the SPF
-              record of the queried domain. This should be
-              treated like "none".
-  o err_temp  This indicates a temporary error during all
+              This should be treated like "none".
+  o permerror This indicates a syntax error in the SPF
+              record of the queried domain. You may deny
+              messages when this occurs. (Changed in 4.83)
+  o temperror This indicates a temporary error during all
               processing, including Exim's SPF processing.
               You may defer messages when this occurs.
+              (Changed in 4.83)


You can prefix each string with an exclamation mark to invert
is meaning, for example "!fail" will match all results but
@@ -510,8 +512,8 @@ variables.

$spf_result
This contains the outcome of the SPF check in string form,
- one of pass, fail, softfail, none, neutral, err_perm or
- err_temp.
+ one of pass, fail, softfail, none, neutral, permerror or
+ temperror.

$spf_smtp_comment
This contains a string that can be used in a SMTP response
diff --git a/src/src/spf.c b/src/src/spf.c
index 4bbabbf..4f0094f 100644
--- a/src/src/spf.c
+++ b/src/src/spf.c
@@ -19,8 +19,8 @@ static spf_result_id spf_result_id_list[] = {
{ US"fail", 3 },
{ US"softfail", 4 },
{ US"none", 5 },
- { US"err_temp", 6 },
- { US"err_perm", 7 }
+ { US"temperror", 6 },
+ { US"permerror", 7 }
};

 SPF_server_t    *spf_server = NULL;