procmail
[Top] [All Lists]

Conrolling large log files

2004-10-12 18:49:21
* Michelle Konzack <linux4michelle(_at_)freenet(_dot_)de> [2004-10-09 10:40]:
Hello, 

Activating of "Verbose=on" is no option for me, because a one-time
download of 179 Mailboxes let my procmail.log explode to more then
8 MBytes. 

I deal with the huge infinitely growing logfile issue by using the
following (abridged) code at the top of my main script:

PROCESSED_YEAR = `date +"%Y"`
PROCESSED_WOY  = `date +"%V"`

LOGFILE = $HOME/logs/procmail_$PROCESSED_WOY-${PROCESSED_YEAR}.log

So I end up branching into a new log file every week.

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>