Package: logrotate
Version: 3.7.1-3

Thanks for the inclusion of the "dateext" patch, but I've noticed an inconsistent behavior in the way the subject line is set on mailed logs.

If the log is rotated due to the "rotate" directive, you get a subject line like:

Subject: /var/log/aptitude-20070630

Note that the date extension is present, which I consider a good thing, as often logs don't include year information, and once a log is emailed, the original file timestamps are lost.

If the log is rotated due to the "maxage" directive, you get a subject line like:

Subject: /var/log/syslog/mail.log

which is how they used to look prior to the "dateext" patch, and this suffers from information loss, as noted above.

I took a quick look at the code, but I wasn't immediately able to track down where the date extension is being striped from the file name string prior to its use as the subject.

The above would be less of an issue if the enhancement in 431601[1] was implemented such that all mailed logs incorporated the log file time stamp into the subject line. If that was implemented, it also wouldn't matter which of the two behaviors above was chosen, as long as it was consistent.

1. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431601

 -Tom


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to