It isn't exactly what you asked for, but here's what I do...in
.procmailrc put something like:

LOGFILE=$MAILDIR/logs/log.`date +%y-%m-%d`

and then run a cronjob to compress/clean up anything over the
threshold. Since date has formats for week (%U/%V/%W) you could get
the right log period. The only thing this doesn't really do is roll
based on the size threshold (which I hope you're not reaching, yikes).

-Deke

On Fri, 24 Mar 2006, Mike Marion wrote:

> Here's one I haven't tried yet, and alas, google returns way too much
> unrelated stuff to help.
> 
> Would like to take a logrotate.d/procmail.log file of:
> /home/mmarion/Mail/procmail.log {
>     compress
>     weekly
>     dateext
>     maxage 999
>     rotate 200
>     missingok
>     olddir archive
>     notifempty
>     size +20480k
>     create 640 mmarion sysadmin
>     sharedscripts
> }
> 
> and do every user in one config.. I know * will work in the file (i.e.
> /home/*/Mail/procmail.log) but I need the "create" line to basically do:
> create 640 $user users
> matching whatever * matched in the file declaration line.  Don't see anything
> obvious in man page that relates to this.. if it can even be done.  Also, the
> olddir directive of 'archive' should expand relatively to
> /home/$user/Mail/archive per user as well.
> 
> -- 
> Mike Marion-Unix SysAdmin/Staff Engineer-http://www.miguelito.org
> Marge: "Homer, sitting that close to the TV can't be good for you."
> Homer: "Talking while the TV's on can't be good for you!"
> ==> Simpsons
> 
> 
> 
> -- 
> [email protected]
> http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
> 


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to