Re: [Exim] assigning variable or adding custom entry to log

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Metzler
Date:  
À: exim-users
Sujet: Re: [Exim] assigning variable or adding custom entry to log
On Wed, Sep 03, 2003 at 09:53:56AM +0200, Christof Wessely wrote:
> I want to update a user's record in my database whenever a new mail for
> this user arrives.
> I do this by using an Oracle stored function:
> ORA_TIMESTAMP = SELECT
> update_Account('${quote_oracle:$domain}','${quote_oracle:$local_part}')
> FROM DUAL
>
> When running exim in debug mode I can use
> deliver_domain:
> debug_print = ${lookup oracle{ORA_TIMESTAMP}}
> driver = appendfile
> directory = ${lookup oracle{ORA_MAILDIR}{$value}}
> delivery_date_add
> envelope_to_add
> return_path_add
> create_directory
> maildir_format
> mode = 0600
> mode_fail_narrower = false
>
> This works fine, but I want to start exim in normal, non debug, mode.
> How could I achieve this?
> Any assignment to a dummy variable, writing to the log file, or anything
> that just evaluates the lookup would be fine.

[...]

Perhaps
headers_add = ${lookup oracle{ORA_TIMESTAMP}}
_after_ modifying '${lookup oracle{ORA_TIMESTAMP}}' to return an empty
string.
                 cu and- reading dcs.mailserver ;-) -reas