procmail
[Top] [All Lists]

Re: newbie question re: huge procmail log file

2002-02-18 03:14:51
In the previous episode (18.02.2002, 02:57:54), Matt of the Long Red Hair
<mattp(_at_)conundrum(_dot_)com> said:

Something else you can do to control the size of your logfile is to cause
procmail to date the filename.

thats a good idea in my view, thanks.

The downside to this is that old logs
will
stay there forever, and you'll have to delete them by hand.

how about an additional first recipe:

:0c
| rm -f procmaillog-$(date -d '4 months ago' +"%Y%m")

 
DATE=`date +"%Y%m"`
LOGFILE=procmaillog-$DATE


--
irc.openprojects.net #postfix

http://www.mengwong.com/misc/postfix-uce-guide.txt

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail