INN commit: branches/2.6 (6 files)

INN Commit rra at isc.org
Sat Mar 10 14:51:53 UTC 2018


    Date: Saturday, March 10, 2018 @ 06:51:53
  Author: iulius
Revision: 10263

Add access to Jabber-ID header field (RFC 7259) within Perl and Python hooks for innd.

Also update POD documentation and the Python sample.

Modified:
  branches/2.6/doc/pod/hook-perl.pod
  branches/2.6/doc/pod/hook-python.pod
  branches/2.6/innd/innd.c
  branches/2.6/innd/innd.h
  branches/2.6/samples/filter_innd.py
  branches/2.6/tests/innd/fakeinnd.c

-------------------------+
 doc/pod/hook-perl.pod   |    2 +-
 doc/pod/hook-python.pod |    2 +-
 innd/innd.c             |    6 ++++--
 innd/innd.h             |    3 ++-
 samples/filter_innd.py  |    1 +
 tests/innd/fakeinnd.c   |    3 ++-
 6 files changed, 11 insertions(+), 6 deletions(-)

Modified: doc/pod/hook-perl.pod
===================================================================
--- doc/pod/hook-perl.pod	2018-03-10 14:49:27 UTC (rev 10262)
+++ doc/pod/hook-perl.pod	2018-03-10 14:51:53 UTC (rev 10263)
@@ -85,7 +85,7 @@
     Comments, Content-Base, Content-Disposition, Content-Transfer-Encoding,
     Content-Type, Control, Date, Date-Received, Distribution, Expires,
     Face, Followup-To, From, In-Reply-To, Injection-Date, Injection-Info,
-    Keywords, Lines, List-ID, Message-ID, MIME-Version, Newsgroups,
+    Jabber-ID, Keywords, Lines, List-ID, Message-ID, MIME-Version, Newsgroups,
     NNTP-Posting-Date, NNTP-Posting-Host, NNTP-Posting-Path,
     Organization, Original-Sender, Originator,
     Path, Posted, Posting-Version, Received, References, Relay-Version,

Modified: doc/pod/hook-python.pod
===================================================================
--- doc/pod/hook-python.pod	2018-03-10 14:49:27 UTC (rev 10262)
+++ doc/pod/hook-python.pod	2018-03-10 14:51:53 UTC (rev 10263)
@@ -76,7 +76,7 @@
     Comments, Content-Base, Content-Disposition, Content-Transfer-Encoding,
     Content-Type, Control, Date, Date-Received, Distribution, Expires,
     Face, Followup-To, From, In-Reply-To, Injection-Date, Injection-Info,
-    Keywords, Lines, List-ID, Message-ID, MIME-Version, Newsgroups,
+    Jabber-ID, Keywords, Lines, List-ID, Message-ID, MIME-Version, Newsgroups,
     NNTP-Posting-Date, NNTP-Posting-Host, NNTP-Posting-Path,
     Organization, Original-Sender, Originator,
     Path, Posted, Posting-Version, Received, References, Relay-Version,

Modified: innd/innd.c
===================================================================
--- innd/innd.c	2018-03-10 14:49:27 UTC (rev 10262)
+++ innd/innd.c	2018-03-10 14:51:53 UTC (rev 10263)
@@ -215,10 +215,12 @@
 /* #define HDR__ARCHIVED_AT                     72 */
   ARTHEADERINIT("Summary",              HTstd),
 /* #define HDR__SUMMARY                         73 */
-  ARTHEADERINIT("Comments",             HTstd)
+  ARTHEADERINIT("Comments",             HTstd),
 /* #define HDR__COMMENTS                        74 */
+  ARTHEADERINIT("Jabber-ID",            HTstd),
+/* #define HDR__JABBER_ID                       75 */
 };
-/* #define MAX_ARTHEADER                        75 */
+/* #define MAX_ARTHEADER                        76 */
 
 
 /*

Modified: innd/innd.h
===================================================================
--- innd/innd.h	2018-03-10 14:49:27 UTC (rev 10262)
+++ innd/innd.h	2018-03-10 14:51:53 UTC (rev 10263)
@@ -220,8 +220,9 @@
 #define HDR__ARCHIVED_AT        72
 #define HDR__SUMMARY            73
 #define HDR__COMMENTS           74
+#define HDR__JABBER_ID          75
 
-#define MAX_ARTHEADER           75
+#define MAX_ARTHEADER           76
 
 /*
 **  Miscellaneous data we want to keep on an article.  All the fields

Modified: samples/filter_innd.py
===================================================================
--- samples/filter_innd.py	2018-03-10 14:49:27 UTC (rev 10262)
+++ samples/filter_innd.py	2018-03-10 14:51:53 UTC (rev 10263)
@@ -54,6 +54,7 @@
 In_Reply_To = intern("In-Reply-To")
 Injection_Date = intern("Injection-Date")
 Injection_Info = intern("Injection-Info")
+Jabber_ID = intern("Jabber-ID")
 Keywords = intern("Keywords")
 Lines = intern("Lines")
 List_ID = intern("List-ID")

Modified: tests/innd/fakeinnd.c
===================================================================
--- tests/innd/fakeinnd.c	2018-03-10 14:49:27 UTC (rev 10262)
+++ tests/innd/fakeinnd.c	2018-03-10 14:51:53 UTC (rev 10263)
@@ -108,7 +108,8 @@
     ARTHEADERINIT("Archive",               HTstd),
     ARTHEADERINIT("Archived-At",           HTstd),
     ARTHEADERINIT("Summary",               HTstd),
-    ARTHEADERINIT("Comments",              HTstd)
+    ARTHEADERINIT("Comments",              HTstd),
+    ARTHEADERINIT("Jabber-ID",             HTstd),
 };
 
 /* Dummy functions that innd.c provides. */



More information about the inn-committers mailing list