Re: [exim] user filter file

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Heiko Schlittermann
Fecha:  
A: exim-users
Asunto: Re: [exim] user filter file
Hi Jim,

Jim Pazarena <exim@???> (So 02 Jul 2017 06:58:28 CEST):
> within a user forward file, which is an advanced exim filter file, I
> routinely and repeatedly save a file which I receive hourly.
>
> with a simple save ".data/tots_fyl.log"
>
> Is there any way to have the filter file append a day #, or a month #, or
> better a month/day as MMDD to the name?


I do not know the exim filter language good enough to answer the
question directly. I'd use:

    begin routers
        …
        …


        log:
            driver = accept
            … some conditions …
            transport = log


    begin transports


        log:
            driver = appendfile
            file = /tmp/log-${substr_4:$tod_logfile}




    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -