INN commit: trunk (doc/pod/news.pod nnrpd/post.c nnrpd/post.h)

INN Commit rra at isc.org
Sat May 28 18:29:30 UTC 2016


    Date: Saturday, May 28, 2016 @ 11:29:30
  Author: iulius
Revision: 10036

Allow posts containing a Received: or a Posted: header field

Modified:
  trunk/doc/pod/news.pod
  trunk/nnrpd/post.c
  trunk/nnrpd/post.h

------------------+
 doc/pod/news.pod |    5 +++++
 nnrpd/post.c     |    6 ++++--
 nnrpd/post.h     |    6 +++---
 3 files changed, 12 insertions(+), 5 deletions(-)

Modified: doc/pod/news.pod
===================================================================
--- doc/pod/news.pod	2016-05-28 18:13:29 UTC (rev 10035)
+++ doc/pod/news.pod	2016-05-28 18:29:30 UTC (rev 10036)
@@ -32,6 +32,11 @@
 
 =item *
 
+If an article contains a Received: or a Posted: header field, it is no
+longer rejected by B<nnrpd>.
+
+=item *
+
 S<OpenSSL 1.1.0> support has been added to INN.
 
 =item *

Modified: nnrpd/post.c
===================================================================
--- nnrpd/post.c	2016-05-28 18:13:29 UTC (rev 10035)
+++ nnrpd/post.c	2016-05-28 18:29:30 UTC (rev 10036)
@@ -27,6 +27,10 @@
 /*
 **  Do not modify the table without also looking at post.h for potential
 **  changes in the order of the fields.
+**
+**  The table should reflect the status of the fields in the "Permanent
+**  Message Header Field Names" registry:
+**    http://www.iana.org/assignments/message-headers/
 */
 HEADER Table[] = {
     /*  Name                    CanSet  Type    Size  Value */
@@ -62,8 +66,6 @@
     {   "Keywords",             true,   HTstd,  0,    NULL,    NULL, 0 },
     {   "User-Agent",           true,   HTstd,  0,    NULL,    NULL, 0 },
     {   "Date-Received",        false,  HTobs,  0,    NULL,    NULL, 0 },
-    {   "Received",             false,  HTobs,  0,    NULL,    NULL, 0 },
-    {   "Posted",               false,  HTobs,  0,    NULL,    NULL, 0 },
     {   "Posting-Version",      false,  HTobs,  0,    NULL,    NULL, 0 },
     {   "Relay-Version",        false,  HTobs,  0,    NULL,    NULL, 0 },
     {   "Cc",                   true,   HTstd,  0,    NULL,    NULL, 0 },

Modified: nnrpd/post.h
===================================================================
--- nnrpd/post.h	2016-05-28 18:13:29 UTC (rev 10035)
+++ nnrpd/post.h	2016-05-28 18:29:30 UTC (rev 10036)
@@ -53,6 +53,6 @@
 #define HDR__MESSAGEID	     15
 #define HDR__INJECTION_DATE  26
 #define HDR__INJECTION_INFO  27
-#define HDR__CC		     36
-#define HDR__BCC	     37
-#define HDR__TO		     38
+#define HDR__CC		     34
+#define HDR__BCC	     35
+#define HDR__TO		     36



More information about the inn-committers mailing list