procmail
[Top] [All Lists]

Re: Conrolling large log files

2004-10-13 04:37:53
Toen wij Justin Gombos kietelden, kwam er dit uit:

  PROCESSED_YEAR = `date +"%Y"`
  PROCESSED_WOY  = `date +"%V"`
  LOGFILE = $HOME/logs/procmail_$PROCESSED_WOY-${PROCESSED_YEAR}.log

It's often a waste of resources to call date even once for that purpose.

See http://www.xs4all.nl/~rvtol/procmail/basic/pm
and specifically H_vars.inc and H_From_parse.inc
for a way to get reliable date and time values
from the message itself.

-- 
Grtz, Ruud


____________________________________________________________
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>