INN commit: trunk (6 files)
INN Commit
rra at isc.org
Tue Dec 22 19:18:21 UTC 2009
Date: Tuesday, December 22, 2009 @ 11:18:21
Author: iulius
Revision: 8853
Add access to the new header field Comments: within Perl and Python
hooks for innd.
Also update the 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 2009-12-21 10:00:55 UTC (rev 8852)
+++ doc/pod/hook-perl.pod 2009-12-22 19:18:21 UTC (rev 8853)
@@ -82,7 +82,7 @@
standard headers are:
Also-Control, Approved, Archive, Archived-At, Bytes, Cancel-Key, Cancel-Lock,
- Content-Base, Content-Disposition, Content-Transfer-Encoding,
+ 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,
Modified: doc/pod/hook-python.pod
===================================================================
--- doc/pod/hook-python.pod 2009-12-21 10:00:55 UTC (rev 8852)
+++ doc/pod/hook-python.pod 2009-12-22 19:18:21 UTC (rev 8853)
@@ -71,7 +71,7 @@
defined:
Also-Control, Approved, Archive, Archived-At, Bytes, Cancel-Key, Cancel-Lock,
- Content-Base, Content-Disposition, Content-Transfer-Encoding,
+ 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,
Modified: innd/innd.c
===================================================================
--- innd/innd.c 2009-12-21 10:00:55 UTC (rev 8852)
+++ innd/innd.c 2009-12-22 19:18:21 UTC (rev 8853)
@@ -209,10 +209,12 @@
/* #define HDR__ARCHIVE 71 */
ARTHEADERINIT("Archived-At", HTstd),
/* #define HDR__ARCHIVED_AT 72 */
- ARTHEADERINIT("Summary", HTstd)
+ ARTHEADERINIT("Summary", HTstd),
/* #define HDR__SUMMARY 73 */
+ ARTHEADERINIT("Comments", HTstd)
+/* #define HDR__COMMENTS 74 */
};
-/* #define MAX_ARTHEADER 74 */
+/* #define MAX_ARTHEADER 75 */
/*
Modified: innd/innd.h
===================================================================
--- innd/innd.h 2009-12-21 10:00:55 UTC (rev 8852)
+++ innd/innd.h 2009-12-22 19:18:21 UTC (rev 8853)
@@ -213,8 +213,9 @@
#define HDR__ARCHIVE 71
#define HDR__ARCHIVED_AT 72
#define HDR__SUMMARY 73
+#define HDR__COMMENTS 74
-#define MAX_ARTHEADER 74
+#define MAX_ARTHEADER 75
/*
** Miscellaneous data we want to keep on an article. All the fields
Modified: samples/filter_innd.py
===================================================================
--- samples/filter_innd.py 2009-12-21 10:00:55 UTC (rev 8852)
+++ samples/filter_innd.py 2009-12-22 19:18:21 UTC (rev 8853)
@@ -38,6 +38,7 @@
Bytes = intern("Bytes")
Cancel_Key = intern("Cancel-Key")
Cancel_Lock = intern("Cancel-Lock")
+Comments = intern("Comments")
Content_Base = intern("Content-Base")
Content_Disposition = intern("Content-Disposition")
Content_Transfer_Encoding = intern("Content-Transfer-Encoding")
Modified: tests/innd/fakeinnd.c
===================================================================
--- tests/innd/fakeinnd.c 2009-12-21 10:00:55 UTC (rev 8852)
+++ tests/innd/fakeinnd.c 2009-12-22 19:18:21 UTC (rev 8853)
@@ -105,7 +105,8 @@
ARTHEADERINIT("NNTP-Posting-Path", HTstd),
ARTHEADERINIT("Archive", HTstd),
ARTHEADERINIT("Archived-At", HTstd),
- ARTHEADERINIT("Summary", HTstd)
+ ARTHEADERINIT("Summary", HTstd),
+ ARTHEADERINIT("Comments", HTstd)
};
/* Dummy functions that innd.c provides. */
More information about the inn-committers
mailing list