chiark / gitweb /
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 78b3e64ae735a7824116726ed0fc63ab8403c93d..7abf45694d57bf8c92a3dfe95802cc36e4076371 100644 (file)
--- a/local.m4
+++ b/local.m4
@@ -65,7 +65,8 @@ alias:
        allow_defer = true
        user = CONF_filter_user
        FILTER_TRANSPORTS
        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
 
 SECTION(routers, real)m4_dnl
 ## A special hack to get mail to a user who has a forward file.  Only for