Michel Verdier
2004-Sep-06 07:02 UTC
[Logcheck-devel] Bug#270208: logcheck: Same subject for all mails
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
Debian Bug Tracking System
2004-Sep-18 22:18 UTC
[Logcheck-devel] Bug#270208: marked as done (logcheck: Same subject for all mails)
Your message dated Sun, 19 Sep 2004 00:06:19 +0200 with message-id <20040918220619.GF9492 at stro.at> and subject line [Logcheck-devel] Bug#270208: logcheck: Same subject for all mails 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; 6 Sep 2004 07:04:36 +0000>From mverdier at thalix.com Mon Sep 06 00:04:36 2004Return-path: <mverdier at thalix.com> Received: from postfix3-2.free.fr [213.228.0.169] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1C4DYK-0007Fj-00; Mon, 06 Sep 2004 00:04:36 -0700 Received: from mail.thalix.net (www.thalix.net [81.56.132.239]) by postfix3-2.free.fr (Postfix) with ESMTP id E6088C220 for <submit at bugs.debian.org>; Mon, 6 Sep 2004 11:00:12 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michel Verdier <mverdier at thalix.com> To: Debian Bug Tracking System <submit at bugs.debian.org> Subject: logcheck: Same subject for all mails X-Mailer: reportbug 2.63 Date: Mon, 06 Sep 2004 09:02:11 +0200 Message-Id: <E1C4DVz-0008Ql-00 at mobius.thalix.net> X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at thalix.com 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=-6.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, RCVD_IN_DSBL autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: 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 --------------------------------------- Received: (at 270208-done) by bugs.debian.org; 18 Sep 2004 22:06:16 +0000>From max at v216-190.vps.tuwien.ac.at Sat Sep 18 15:06:16 2004Return-path: <max at v216-190.vps.tuwien.ac.at> Received: from baikonur.stro.at [213.239.196.228] by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1C8nLU-0001rz-00; Sat, 18 Sep 2004 15:06:16 -0700 Received: from localhost (localhost [127.0.0.1]) by baikonur.stro.at (Postfix) with ESMTP id D35E05C06C for <270208-done at bugs.debian.org>; Sun, 19 Sep 2004 00:06:12 +0200 (CEST) Received: from baikonur.stro.at ([127.0.0.1]) by localhost (baikonur [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 19065-04 for <270208-done at bugs.debian.org>; Sun, 19 Sep 2004 00:06:12 +0200 (CEST) Received: from sputnik (v216-190.vps.tuwien.ac.at [128.131.216.190]) by baikonur.stro.at (Postfix) with ESMTP id 404D95C034 for <270208-done at bugs.debian.org>; Sun, 19 Sep 2004 00:06:12 +0200 (CEST) Received: from max by sputnik with local (Exim 4.34) id 1C8nLX-00036E-A2 for 270208-done at bugs.debian.org; Sun, 19 Sep 2004 00:06:19 +0200 Date: Sun, 19 Sep 2004 00:06:19 +0200 From: maks attems <debian at sternwelten.at> To: 270208-done at bugs.debian.org Subject: Re: [Logcheck-devel] Bug#270208: logcheck: Same subject for all mails Message-ID: <20040918220619.GF9492 at stro.at> References: <E1C4DVz-0008Ql-00 at mobius.thalix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <E1C4DVz-0008Ql-00 at mobius.thalix.net> User-Agent: Mutt/1.5.6+20040722i Sender: maximilian attems <max at v216-190.vps.tuwien.ac.at> X-Virus-Scanned: by Amavis (ClamAV) at stro.at Delivered-To: 270208-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: On Mon, 06 Sep 2004, Michel Verdier wrote:> 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 :hmm yes why not, but it's already feasable. just set in /etc/logcheck/logcheck.conf DATE="" current hostname and logcheck prefix is also already selected, so you might just need to adjust also the string of the 3 different logcheck devels in this config file.> *** /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`"i won't add that config option, as i find even more confusing than current situation. -- maks