[Logcheck-devel] Bug#270208: logcheck: Same subject for all mails
Michel Verdier
mverdier at thalix.com
Mon Sep 6 07:02:11 UTC 2004
Package: logcheck
Version: 1.2.25
Severity: wishlist
Tags: patch
I prefer to read mails in a thread so I patched logcheck to always
have the same subject :
*** /usr/sbin/logcheck.orig Sat Aug 14 04:56:24 2004
--- /usr/sbin/logcheck Fri Aug 27 19:26:33 2004
***************
*** 253,258 ****
--- 253,261 ----
if [ $ADDTAG = "yes" ]; then
subject="[logcheck] $subject"
fi
+ if [ "x$SUBJECT" != "x" ]; then
+ subject="$SUBJECT"
+ fi
if [ $MAILOUT -eq 1 ]; then
debug "Sending report to STDOUT"
In /etc/logcheck/logcheck.conf I added :
SUBJECT="[logcheck] `hostname`"
--=-=-=--
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-mobius
Locale: LANG=fr_FR, LC_CTYPE=fr_FR
Versions of packages logcheck depends on:
ii adduser 3.59 Add and remove users and groups
ii cron 3.0pl1-86 management of regular background p
ii debconf [debconf 1.4.30.2 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
ii exim [mail-trans 3.36-11 An MTA (Mail Transport Agent)
ii lockfile-progs 0.1.10 Programs for locking and unlocking
ii logcheck-databas 1.2.25 A database of system log rules for
ii logtail 1.2.25 Print log file lines that have not
ii mailx 1:8.1.2-0.20040524cvs-1 A simple mail user agent
ii perl 5.8.4-2 Larry Wall's Practical Extraction
ii sysklogd [system 1.4.1-15 System Logging Daemon
-- debconf information:
* logcheck/auto_create_logfiles: false
logcheck/upgrade-note:
* logcheck/changes:
* logcheck/install-note:
* logcheck/email_address: root
More information about the Logcheck-devel
mailing list