tags 504079 confirmed thanks On Fri, Oct 31, 2008 at 10:19:09AM +0100, Jesús Feliz Fernández wrote:
> When you configure logrotate with mailfirst option and delaycompress, the > program dont send the log to the specific email address, because it looks > at for a .gz file, which doesnt exits (It hasn´t been compressed yet). I suspect it's an interaction between mailfirst, delaycompress *and* dateext. I can confirm this... With "dateext" the filename is set thus: /* firstRotated is most recently created/compressed rotated log */ sprintf(firstRotated, "%s/%s-%04d%02d%02d%s%s", dirName, baseName, now.tm_year+1900, now.tm_mon+1, now.tm_mday, fileext, compext); Without "dateext" it's set like this: sprintf(firstRotated, "%s/%s.%d%s%s", dirName, baseName, logStart, fileext, (log->flags & LOG_FLAG_DELAYCOMPRESS) ? "" : compext); Notice how when "datext" is set it doesn't take into account LOG_FLAG_DELAYCOMPRESS? It's an easy fix, but I'm afraid we may be far too late for the fix to go into the lenny release. -- Paul Martin <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]