Bug 247611 - logwatch has lost its useful e-mail subject
Summary: logwatch has lost its useful e-mail subject
Alias: None
Product: Fedora
Classification: Fedora
Component: logwatch   
(Show other bugs)
Version: rawhide
Hardware: All Linux
Target Milestone: ---
Assignee: Ivana Varekova
QA Contact: Fedora Extras Quality Assurance
Keywords: Reopened
Depends On:
TreeView+ depends on / blocked
Reported: 2007-07-10 11:11 UTC by Matthew Miller
Modified: 2007-11-30 22:12 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-07-24 12:24:51 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Matthew Miller 2007-07-10 11:11:59 UTC
Formerly, logwatch produced e-mail messages with a subject like:

  Subject: Logwatch for system.bu.edu (Linux)

which is pretty handy. In rawhide, we're instead getting:

 Subject: Cron <root@bigcomputer> run-parts /etc/cron.daily

which is not handy at all (easily overlooked, hard to sort, indistinguishable
from cron error messages....)

This is because "Print = No" was changed to "Print = Yes" in
/usr/share/logwatch/default.conf/logwatch.conf. Could that be put back?

Note that this might affect bug #236618. However, since logwatch has its own
configuration for output address, and since it's important to not loose mail to
root anyway, I think changing the anacrontab mail address and expecting it to
redirect logwatch output is the wrong approach anyway. Having a useful subject
line is important.


Comment 1 Ivana Varekova 2007-07-12 12:05:09 UTC
The option "Print" is removed in the next upstream version there is option
"Output". Upstream chose to set this option to "stdout" so the default output
will have the "cron-like" subject. This resolution has the advantage when you
use logwatch command from a command line. I will discuss this problem with
upstream maintainers - but I prefer to have fedora version equivalent with
upstream, so it depends on their resolution.

Comment 2 Matthew Miller 2007-07-12 13:51:01 UTC
Fair enough.

There's another option, then. Rather than having /etc/cron.daily be a symlink to
the main logwatch script, could we instead make it be a wrapper, like so:

exec /usr/share/logwatch/scripts/logwatch.pl --mailto root

Since that's not an upstream thing anyway, we can do that, right?

It'd be *better* if "--mailto" would work without a parameter (in which case it
would respect the MailTo setting in the config file), but oh well.

My personal preference is still for it to be set to mail by default, because you
can always use --print if you want to run it from the command line.

Comment 3 Matthew Miller 2007-07-12 13:53:04 UTC
Or presumably there's an equivalent "--output mail" in the next version -- maybe
that addresses the "it'd be better" issue noted in my last comment. But the
project web site is giving me 403 errors so I'm not able to check myself.

Comment 4 Mike Tremaine 2007-07-18 20:38:25 UTC
The next upstream release [8.0] will remove the symlink directly logwatch in
cron.daily in favor of a shell script that has the "--output mail" option set
with comments about some of the other options.

Apologies for the state of flux that Fedora got hit with on this.


Note You need to log in before you can comment on or make changes to this bug.