INN commit: branches/2.5 (6 files)

INN Commit rra at isc.org
Sat Jan 16 16:07:20 UTC 2010


    Date: Saturday, January 16, 2010 @ 08:07:19
  Author: iulius
Revision: 8886

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:
  branches/2.5/doc/pod/hook-perl.pod
  branches/2.5/doc/pod/hook-python.pod
  branches/2.5/innd/innd.c
  branches/2.5/innd/innd.h
  branches/2.5/samples/filter_innd.py
  branches/2.5/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	2010-01-16 15:53:54 UTC (rev 8885)
+++ doc/pod/hook-perl.pod	2010-01-16 16:07:19 UTC (rev 8886)
@@ -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	2010-01-16 15:53:54 UTC (rev 8885)
+++ doc/pod/hook-python.pod	2010-01-16 16:07:19 UTC (rev 8886)
@@ -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	2010-01-16 15:53:54 UTC (rev 8885)
+++ innd/innd.c	2010-01-16 16:07:19 UTC (rev 8886)
@@ -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	2010-01-16 15:53:54 UTC (rev 8885)
+++ innd/innd.h	2010-01-16 16:07:19 UTC (rev 8886)
@@ -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	2010-01-16 15:53:54 UTC (rev 8885)
+++ samples/filter_innd.py	2010-01-16 16:07:19 UTC (rev 8886)
@@ -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	2010-01-16 15:53:54 UTC (rev 8885)
+++ tests/innd/fakeinnd.c	2010-01-16 16:07:19 UTC (rev 8886)
@@ -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