local.m4: Switch `aliases' file to `nwildlsearch' and expand the result.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jan 2014 15:53:10 +0000 (15:53 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 26 Jan 2014 15:54:21 +0000 (15:54 +0000)
Makes the file much more versatile.

local.m4

index 78b3e64..7abf456 100644 (file)
--- a/local.m4
+++ b/local.m4
@@ -65,7 +65,8 @@ alias:
        allow_defer = true
        user = CONF_filter_user
        FILTER_TRANSPORTS
-       data = ${lookup {$local_part} lsearch {CONF_alias_file}}
+       local_parts = nwildlsearch; CONF_alias_file
+       data = ${expand:$local_part_data}
 
 SECTION(routers, real)m4_dnl
 ## A special hack to get mail to a user who has a forward file.  Only for