SF.net SVN: logwatch:[315] trunk/conf/services/sendmail.conf
[email protected] Fri, 12 Feb 2016 02:04:57 +0000
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 315
http://sourceforge.net/p/logwatch/code/315
Author: bjorn1
Date: 2016-02-12 02:04:57 +0000 (Fri, 12 Feb 2016)
Log Message:
-----------
Added scoping to declared variables in example.
Modified Paths:
--------------
trunk/conf/services/sendmail.conf
Modified: trunk/conf/services/sendmail.conf
===================================================================
--- trunk/conf/services/sendmail.conf 2016-02-11 21:57:54 UTC (rev 314)
+++ trunk/conf/services/sendmail.conf 2016-02-12 02:04:57 UTC (rev 315)
@@ -78,6 +78,9 @@
# each line (except the last one) with a \ to denote a continuation line
#$Sendmail_MatchFilter = " \
+# # first we declare a scope for later use by Sendmail_ReportFilter \
+# package MatchFilter; \
+# our %DatabaseBuild; \
# # filter and count how many times the alias database is rebuilt \
# if ( ($User) = ($ThisLine =~ /^alias database .* rebuilt by (.*)/ ) ) { \
# $DatabaseBuild{$User}++; \
@@ -93,12 +96,12 @@
# # processing of this log line by the sendmail script. \
# $ThisLine = ""; \
# }"
-
+#
#$Sendmail_ReportFilter = " \
-# if (keys %DatabaseBuild) { \
+# if (keys %MatchFilter::DatabaseBuild) { \
# print "\n\nDatabase re-built by:"; \
-# foreach $User (keys %DatabaseBuild) { \
-# print "\n $User: $DatabaseBuild{$User} Time(s)"; \
+# foreach $User (keys %MatchFilter::DatabaseBuild) { \
+# print "\n $User: $MatchFilter::DatabaseBuild{$User} Time(s)"; \
# } \
# }"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140