Re: [Exim] Accessing the results yielded by a lookup

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Fred Viles
Dátum:  
Címzett: exim-users
Tárgy: Re: [Exim] Accessing the results yielded by a lookup
On 20 May 2004 at 17:14, Steven Ericsson Zenith wrote about
    "[Exim] Accessing the results yielde":


|
| The spec says:

|
| > For query-style lookups, a single data cache per lookup type is kept. The files are closed and the
| > caches flushed at strategic points during delivery . for example, after all routing is complete.

|
| How can one access the data cache? $0, $N ... do not appear to hold the data.


The spec also says:

${lookup{<key>} <search type> {<file>} {<string1>} {<string2>}}

${lookup <search type> {<query>} {<string1>} {<string2>}}

...
If the lookup succeeds, <string1> is expanded and replaces the entire item.
During its expansion, the variable $value contains the data returned by the
lookup. Afterwards it reverts to the value it had previously ...

- Fred