[Logcheck-commits] CVS logcheck/src
CVS User maks-guest
logcheck-devel@lists.alioth.debian.org
Thu, 13 May 2004 06:36:02 -0600
Update of /cvsroot/logcheck/logcheck/src
In directory haydn:/tmp/cvs-serv11936/src
Modified Files:
logcheck
Log Message:
wishlist discussed on #debian.de, add subject taggs to logcheck prefixes.
--- /cvsroot/logcheck/logcheck/src/logcheck 2004/05/12 07:37:24 1.17
+++ /cvsroot/logcheck/logcheck/src/logcheck 2004/05/13 12:36:02 1.18
@@ -22,7 +22,7 @@
# along with Logcheck; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-# $Id: logcheck,v 1.17 2004/05/12 07:37:24 maks-guest Exp $
+# $Id: logcheck,v 1.18 2004/05/13 12:36:02 maks-guest Exp $
# Set the umask
@@ -57,6 +57,7 @@
ATTACKSUBJECT="Security Alerts"
SECURITYSUBJECT="Security Events"
EVENTSSUBJECT="System Events"
+ADDTAG="no"
# Set the default paths
RULEDIR="/etc/logcheck"
@@ -227,6 +228,9 @@
else
subject="$HOSTNAME $DATE $*"
fi
+ if [ $ADDTAG = "yes" ]; then
+ subject=SUBJECT="[logcheck] $SUBJECT"
+ fi
if [ $MAILOUT -eq 1 ]; then
debug "Sending report to STDOUT"