Re: [exim] Datestamp in filter log's filename?

Top Page

Reply to this message
Author: Adam Funk
To: exim-users
Subject: Re: [exim] Datestamp in filter log's filename?
On 2009-03-31, Odhiambo Washington wrote:

> On Tue, Mar 31, 2009 at 3:12 PM, Adam Funk <a24061@???> 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?
> Yes, it is.
> man date
> I have the following in my main configuration file:
> log_file_path                 = /var/log/exim/%s.%D.log

> After "man date" you sure can come out with something that does what you
> want.

Do those variables work in a user's filter as well as the Exim
configuration itself?