Dave Sherohman
2004-Nov-17 15:43 UTC
[Logcheck-devel] Bug#281747: logcheck: Add config option to turn off 'This mail is sent by logcheck...' test
Package: logcheck Version: 1.1.1-13.1woody2 Severity: wishlist Please add an option in a separate config file to disable the "This mail is sent by logcheck..." message at the start of each report. I installed the package specifically so that it would send me these messages and it seems rather condescending for it to treat me as if I might not know where they're coming from after a few years and many installations of it. (My reaction to it is basically the same as to those versions of Windows which scold you for not shutting the system down properly while checking the filesystem after they crashed without giving the opportunity to shut down cleanly.) As it stands now, this message is hardcoded into the main script. While it is easy to go in and comment the relevant lines out, this means that I must do so after every upgrade of the package - and this seems to be one of the packages to most frequently receive security updates, so I would greatly appreciate not having to re-edit the logcheck script after every one of them. Granting this wishlist item should be simple... An additional SUPPRESSHEADER value in logcheck.conf and a test for it around the relevant section in the main script: # Add an identification line at the beginning of the sent mail # (text by Rainer Dorsch) # SUPPRESSHEADER is set in /etc/logcheck/logcheck.conf if [ $SUPPRESSHEADER -ne 1 ]; then echo "This mail is sent by logcheck. If you do not want to receive it any more," \ >> $TMPDIR/checkreport.$$ echo "please modify the configuration files in /etc/logcheck or deinstall logcheck." \ >> $TMPDIR/checkreport.$$ fi should be sufficient. Adding an option for it in the install script isn't even necessary, as anyone who tries to comment it out in the main script can be informed by a comment there of the proper procedure for disabling the header without taking any chance that a new user might accidentally turn it off and then wonder why he's getting those messages. (Although mentioning it in the installer text and/or /usr/share/doc/logcheck would be good to inform the experienced user of the option's existence, even if it still has to be enabled manually...) -- System Information Debian Release: 3.0 Kernel Version: Linux genma 2.2.19 #4 Tue Feb 19 20:52:40 CST 2002 i686 GNU/Linux Versions of the packages logcheck depends on: ii cron 3.0pl1-72 management of regular background processing ii debconf 1.0.32 Debian configuration management system ii exim 3.35-1woody3 An MTA (Mail Transport Agent) ii logcheck-datab 1.1.1-13.1wood A database of system log rules for the use o ii logtail 1.1.1-13.1wood Returns parts of logfiles that have not alre ii mailx 8.1.2-0.200204 A simple mail user agent. ii sysklogd 1.4.1-10 System Logging Daemon ii exim 3.35-1woody3 An MTA (Mail Transport Agent) ^^^ (Provides virtual package mail-transport-agent) ii sysklogd 1.4.1-10 System Logging Daemon ^^^ (Provides virtual package system-log-daemon) --- Begin /etc/logcheck/logcheck.logfiles (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.logfiles --- Begin /etc/logcheck/logcheck.conf (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.conf --- Begin /etc/logcheck/logcheck.logfiles (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.logfiles --- Begin /etc/logcheck/logcheck.conf (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.conf
maks attems
2004-Nov-18 03:46 UTC
Bug#281747: [Logcheck-devel] Bug#281747: logcheck: Add config option to turn off 'This mail is sent by logcheck...' test
On Wed, 17 Nov 2004, Dave Sherohman wrote:> Package: logcheck > Version: 1.1.1-13.1woody2 > Severity: wishlist > > Please add an option in a separate config file to disable the "This > mail is sent by logcheck..." message at the start of each report. I > installed the package specifically so that it would send me these > messages and it seems rather condescending for it to treat me as if I > might not know where they're coming from after a few years and many > installations of it. (My reaction to it is basically the same as to > those versions of Windows which scold you for not shutting the system > down properly while checking the filesystem after they crashed > without giving the opportunity to shut down cleanly.)i'm not very familiar with woody's logcheck command, in sarge you edit /etc/logcheck/header.txt and your done. sorry we can't implement such features for the woody version.> As it stands now, this message is hardcoded into the main script. > While it is easy to go in and comment the relevant lines out, this > means that I must do so after every upgrade of the package - and this > seems to be one of the packages to most frequently receive security > updates, so I would greatly appreciate not having to re-edit the > logcheck script after every one of them.i agree that this bad, that's why it got changed upstream. new version confirms to your wish. :) -- maks
Debian Bug Tracking System
2004-Nov-19 15:03 UTC
[Logcheck-devel] Bug#281747: marked as done (logcheck: Add config option to turn off 'This mail is sent by logcheck...' test)
Your message dated Fri, 19 Nov 2004 15:54:06 +0100 with message-id <2004-11-19_15.54.00 at alfie.ist.org> and subject line [Logcheck-devel] Bug#281747: logcheck: Add config option to turn off 'This mail is sent by logcheck...' test has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 17 Nov 2004 15:43:06 +0000>From esper at sherohman.org Wed Nov 17 07:43:06 2004Return-path: <esper at sherohman.org> Received: from dhadley-host13.applisaurus.com (genma.sherohman.org) [208.42.71.13] (mail) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CURxZ-00068t-00; Wed, 17 Nov 2004 07:43:05 -0800 Received: from esper by genma.sherohman.org with local (Exim 3.35 #1 (Debian)) id 1CURxY-0001gG-00; Wed, 17 Nov 2004 09:43:04 -0600 From: Dave Sherohman <esper at genma.sherohman.org> Subject: logcheck: Add config option to turn off 'This mail is sent by logcheck...' test To: submit at bugs.debian.org X-Mailer: bug 3.3.10.1 Message-Id: <E1CURxY-0001gG-00 at genma.sherohman.org> Date: Wed, 17 Nov 2004 09:43:04 -0600 Delivered-To: submit at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: Package: logcheck Version: 1.1.1-13.1woody2 Severity: wishlist Please add an option in a separate config file to disable the "This mail is sent by logcheck..." message at the start of each report. I installed the package specifically so that it would send me these messages and it seems rather condescending for it to treat me as if I might not know where they're coming from after a few years and many installations of it. (My reaction to it is basically the same as to those versions of Windows which scold you for not shutting the system down properly while checking the filesystem after they crashed without giving the opportunity to shut down cleanly.) As it stands now, this message is hardcoded into the main script. While it is easy to go in and comment the relevant lines out, this means that I must do so after every upgrade of the package - and this seems to be one of the packages to most frequently receive security updates, so I would greatly appreciate not having to re-edit the logcheck script after every one of them. Granting this wishlist item should be simple... An additional SUPPRESSHEADER value in logcheck.conf and a test for it around the relevant section in the main script: # Add an identification line at the beginning of the sent mail # (text by Rainer Dorsch) # SUPPRESSHEADER is set in /etc/logcheck/logcheck.conf if [ $SUPPRESSHEADER -ne 1 ]; then echo "This mail is sent by logcheck. If you do not want to receive it any more," \ >> $TMPDIR/checkreport.$$ echo "please modify the configuration files in /etc/logcheck or deinstall logcheck." \ >> $TMPDIR/checkreport.$$ fi should be sufficient. Adding an option for it in the install script isn't even necessary, as anyone who tries to comment it out in the main script can be informed by a comment there of the proper procedure for disabling the header without taking any chance that a new user might accidentally turn it off and then wonder why he's getting those messages. (Although mentioning it in the installer text and/or /usr/share/doc/logcheck would be good to inform the experienced user of the option's existence, even if it still has to be enabled manually...) -- System Information Debian Release: 3.0 Kernel Version: Linux genma 2.2.19 #4 Tue Feb 19 20:52:40 CST 2002 i686 GNU/Linux Versions of the packages logcheck depends on: ii cron 3.0pl1-72 management of regular background processing ii debconf 1.0.32 Debian configuration management system ii exim 3.35-1woody3 An MTA (Mail Transport Agent) ii logcheck-datab 1.1.1-13.1wood A database of system log rules for the use o ii logtail 1.1.1-13.1wood Returns parts of logfiles that have not alre ii mailx 8.1.2-0.200204 A simple mail user agent. ii sysklogd 1.4.1-10 System Logging Daemon ii exim 3.35-1woody3 An MTA (Mail Transport Agent) ^^^ (Provides virtual package mail-transport-agent) ii sysklogd 1.4.1-10 System Logging Daemon ^^^ (Provides virtual package system-log-daemon) --- Begin /etc/logcheck/logcheck.logfiles (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.logfiles --- Begin /etc/logcheck/logcheck.conf (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.conf --- Begin /etc/logcheck/logcheck.logfiles (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.logfiles --- Begin /etc/logcheck/logcheck.conf (modified conffile) Config file not present or no permissions for access --- End /etc/logcheck/logcheck.conf --------------------------------------- Received: (at 281747-done) by bugs.debian.org; 19 Nov 2004 14:54:08 +0000>From alfie at ist.org Fri Nov 19 06:54:07 2004Return-path: <alfie at ist.org> Received: from biedermanns.com (mail.biedermanns.com) [213.133.98.83] (mail) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1CVA9H-0001Se-00; Fri, 19 Nov 2004 06:54:07 -0800 Received: from lmlo.sil.at ([213.235.212.193] helo=tausendmorgenwald) by mail.biedermanns.com with asmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.35 #1 (Debian)) id 1CVA6r-0000Vq-00; Fri, 19 Nov 2004 15:51:37 +0100 Received: from alfie by tausendmorgenwald with local (Exim 3.35 #1 (Debian)) id 1CVA9H-0005Zb-00; Fri, 19 Nov 2004 15:54:07 +0100 Date: Fri, 19 Nov 2004 15:54:06 +0100 From: Gerfried Fuchs <alfie at ist.org> To: Dave Sherohman <esper at genma.sherohman.org>, 281747-done at bugs.debian.org Subject: Re: [Logcheck-devel] Bug#281747: logcheck: Add config option to turn off 'This mail is sent by logcheck...' test Message-ID: <2004-11-19_15.54.00 at alfie.ist.org> References: <E1CURxY-0001gG-00 at genma.sherohman.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n1iI6MeELQa9IOaF" Content-Disposition: inline In-Reply-To: <E1CURxY-0001gG-00 at genma.sherohman.org> Mail-Copies-To: nobody X-Editor: Vi Improved <http://www.vim.org/> X-Signature-Color: cyan X-Signature-Prg: sigd/0.10.4 (Perl) <http://alfie.ist.org/projects/sigd/> X-Face: "`Q5\Ix+YG'{KDq<>5mcZL8Sp7$[L|%#^MSk'{Qpp"J8.<RP*P9<{{6$8%_~*:6c{)<;e:s !:C2%IH-5:GT<,Sf3Xx}di,JDbDRH/;-eb{n`VSi*}-R2,\IfUUY*hqPGSo%8WnAh7_6P at Clt8^Vy` {3w}E7d}+GN<|v=gDc;.c(xiy{Og_=2cy)T1J"Lu}y6Onsr User-Agent: Mutt/1.5.6+20040722i Sender: Gerfried Fuchs <alfie at ist.org> Delivered-To: 281747-done at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: --n1iI6MeELQa9IOaF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Dave Sherohman <esper at genma.sherohman.org> [2004-11-17 09:43]:> Please add an option in a separate config file to disable the "This > mail is sent by logcheck..." message at the start of each report.Like maks said, this is fixed in the current version that will be released with Sarge. As there is no chance for us to get this change into woody due to the policy for the stable releases I close this bug. If you disagree it would be nice if you could on reopening the bug tag it with "woody fixed-upstream wontfix" so it is clear what this is about. So long, Alfie --=20 linux: because a PC is a terrible thing to waste (ksh at cis.ufl.edu put this on Tshirts in '93) --n1iI6MeELQa9IOaF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBngkOMU96lewVKUIRAirlAJsGp99q8YhjKwhc72Bq/cVToi2UyQCfUD4O DNTE2SSqrIt5n171bHgV9Ks=t79w -----END PGP SIGNATURE----- --n1iI6MeELQa9IOaF--