From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7) Gecko/20011226 Description of problem: If "rotate 0" and "mail foo@bar" are both specified, logrotate simply deletes the logfile without mailing it anywhere. The expected behavior is for it to mail the file out, but keep no archives (.1, .2, etc). Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Set rotate to 0 and the mail directive in a logrotate config file 2.Run logrotate 3.The file is rotated into the bitbucket, but not mailed off Actual Results: The file is not received at the mail destination. It is simply nuked. Expected Results: The file should indeed have been deleted, but only after being mailed out to the specified server Additional info: The mail feature of logrotate is an important one, and lets the sysadmin do many nifty log archival things. This bug is serious because it forces at least an extra days worth of logs to remain on the box before they can be sent off to a collection server.
I think this should be fixed in CVS...