[exim] dsearch

Inizio della pagina
Delete this message
Reply to this message
Autore: Evgeniy Berdnikov
Data:  
To: exim-users
Oggetto: [exim] dsearch
Hello.

In https://www.exim.org/exim-html-current/doc/html/spec_html/ch-file_and_database_lookups.html#SECID60
for "dsearch" lookup type there is a statement:

| The "filter" option requests that only directory entries of a given type
| are matched. The match value is one of "file", "dir" or "subdir" (the
| latter not matching "." or "..").


But experiment (with "Exim version 4.94 #2 built 19-Jun-2020 08:31:26"
for Debian) shows that "." is matched in for both "dir" or "subdir":

# /usr/sbin/exim4 -be '${lookup {.} dsearch,ret=full,filter=dir {/var}{x=$value}}'
x=/var/.

# /usr/sbin/exim4 -be '${lookup {.} dsearch,ret=full,filter=subdir {/var}{x=$value}}'
x=/var/.

Not match documentation.

And I'm just curious, what a usage pattern was targeted to create two
distinct filters "dir" and "subdir" with such small difference?
--
Eugene Berdnikov