On Fri, 10 Jan 2003, Derek Simkowiak wrote:
> > 1. Can variables of type "string" still use the expansion variables in
> > section 11.8?
>
> No. But contrary to the Spec, the global router and transport
> options "user" and "group" are not actually of type "string", they are of
> a new type "expanded user/group string". These new types are first
> expanded, but the resulting expansion must "either consist entirely of
> digits, or be a name that can be looked up using the getpwnam() or
> getgrnam() function".
It's a doc-bug that user and group are not declared as expandable.
> > 2. Can I do a database lookup for the 'user' variable?
>
> Yes, the "user" and "group" options are subjected to the
> expand_string() function, which means they are subject to database
> lookups.
>
> If anyone can offer some verification of this (like a working
> install of "user"/"group" with database lookups), I would appreciate it.
Yes you can, lookups are just expansions, if used with the
${lookup}-syntax.
ciao