INN commit: branches/2.4 (doc/man/news.daily.8 scripts/news.daily.in)

INN Commit Russ_Allbery at isc.org
Sun Aug 3 07:30:03 UTC 2008


    Date: Sunday, August 3, 2008 @ 00:30:03
  Author: iulius
Revision: 7944

Add a keyword to news.daily in order to supply another mail
address than the one set at configure time for Usenet daily reports.

Thanks to James Ralston for having added this nomail option.


Also fixed an inconsistency in available keywords (expirectl
is in fact expctl).

Modified:
  branches/2.4/doc/man/news.daily.8
  branches/2.4/scripts/news.daily.in

-----------------------+
 doc/man/news.daily.8  |   11 +++++++++++
 scripts/news.daily.in |    6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

Modified: doc/man/news.daily.8
===================================================================
--- doc/man/news.daily.8	2008-08-02 17:46:06 UTC (rev 7943)
+++ doc/man/news.daily.8	2008-08-03 07:30:03 UTC (rev 7944)
@@ -163,6 +163,17 @@
 redirected into a file.
 If the file is empty, no message is sent.
 .TP
+.IR mailto= address
+By default,
+.I news.daily
+mails the report to the newsmaster address specified at
+configure time.  The
+.I mailto
+keyword can specify a different address to which to mail the
+report.  (This option has no effect if the
+.I nomail
+keyword is also specified.)
+.TP
 .I expireover
 The
 .I expireover

Modified: scripts/news.daily.in
===================================================================
--- scripts/news.daily.in	2008-08-02 17:46:06 UTC (rev 7943)
+++ scripts/news.daily.in	2008-08-03 07:30:03 UTC (rev 7944)
@@ -4,9 +4,10 @@
 ##  Optional arguments:
 ##	expdir=xxx	Directory in which to build new history file
 ##	tmpdir=xxx	Working directory for `sort' and such
-##	expirectl=xxx	Use xxx as expire.ctl file
+##	expctl=xxx	Use xxx as expire.ctl file
 ##	flags=xxx	Pass xxx flags to expire
 ##	lowmark		Create and use a lowmark file
+##	mailto=xxx	E-mail address to which to send the report instead of newsmaster
 ##	noexpire	Do not expire
 ##	noexplog	Do not log expire output
 ##	nologs		Do not scan logfiles
@@ -121,6 +122,9 @@
 	LOWMARKFILE=${MOST_LOGS}/expire.lowmark
 	DORENUMBER=false
 	;;
+    Xmailto=*)
+        NEWSMASTER=`expr "${I}" : 'mailto=\(.*\)'`
+        ;;
     Xnotdaily)
         DAILY=false
 	DOLOGS=false



More information about the inn-committers mailing list