Adam Funk wrote:
> I've been looking at the Exim filter spec (sec.3.15, "Logging
> commands") and I'd like to include the year and week number in the log
> filename: something like this
> 
>    logfile $home/filter.${some.string.expansion}.log
> 
> which would then write the log output in "~/filter.2009w14.log" this
> week, "~/filter.2009w15.log" next week, etc.
> 
> Is this possible?

see
http://docs.exim.org/current/spec_html/ch49.html#SECTwhelogwri


Next version of exim will have an option to use %M instead of %D (see
bug item http://bugs.exim.org/show_bug.cgi?id=486).


OR

Just rotate the logs at the end of the day into whatever filename you
want - I keep mine in yyyy/ww/d.[main|reject]

-- 
The Exim Manual
http://www.exim.org/docs.html
http://docs.exim.org/current/

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to