INN commit: trunk (6 files)
INN Commit
rra at isc.org
Sat Mar 10 14:47:23 UTC 2018
Date: Saturday, March 10, 2018 @ 06:47:23
Author: iulius
Revision: 10260
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:
trunk/doc/pod/hook-perl.pod
trunk/doc/pod/hook-python.pod
trunk/innd/innd.c
trunk/innd/innd.h
trunk/samples/filter_innd.py
trunk/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-08 16:19:17 UTC (rev 10259)
+++ doc/pod/hook-perl.pod 2018-03-10 14:47:23 UTC (rev 10260)
@@ -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-08 16:19:17 UTC (rev 10259)
+++ doc/pod/hook-python.pod 2018-03-10 14:47:23 UTC (rev 10260)
@@ -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-08 16:19:17 UTC (rev 10259)
+++ innd/innd.c 2018-03-10 14:47:23 UTC (rev 10260)
@@ -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-08 16:19:17 UTC (rev 10259)
+++ innd/innd.h 2018-03-10 14:47:23 UTC (rev 10260)
@@ -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-08 16:19:17 UTC (rev 10259)
+++ samples/filter_innd.py 2018-03-10 14:47:23 UTC (rev 10260)
@@ -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-08 16:19:17 UTC (rev 10259)
+++ tests/innd/fakeinnd.c 2018-03-10 14:47:23 UTC (rev 10260)
@@ -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