Re: [Exim] Syntax clarification @@lsearch*

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Nico Erfurth
Datum:  
To: Peter Ang
CC: exim-users
Betreff: Re: [Exim] Syntax clarification @@lsearch*
Peter Ang wrote:
> I have the following line in my v4.14 ACL:
>
> deny senders = @@lsearch*;/name/of/the/file
>
> which points to a file with format:
>
> domain1    test1:test2
> domain2    test1:test2
> domain3    *

>
> I know the deny statement works because I have tested it but I have
> searched every relevant chapter of the docs and can't figure out what
> the "@@" means.


<quote from spec.txt>
  .   If a pattern starts with '@@' followed by a single-key lookup item
(for   |
      example, "@@lsearch;/some/file"), the address that is being checked is
      split into a local part and a domain. The domain is looked up in the
      file. If it is not found, there is no match. If it is found, the data
      that is looked up from the file is treated as a colon-separated
list of
      local part patterns, each of which is matched against the subject
local
      part in turn.
</quote>


steps to reproduce

less spec.txt<ENTER>
/\@@<ENTER>
<READ IT>

Nico