Re: [Exim] Multiple Columns from Database

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Wakko Warner
Date:  
À: Tom Daly
CC: exim-users
Sujet: Re: [Exim] Multiple Columns from Database
> Does anyone know any methods to write multiple columns from a database
> query and mapping them to maybe a couple different acl_m0 variables or as
> some headers. I am defining a couple conditions for different ACLs and
> scanners, these conditions are stored in my DB, so I would like to be able
> to get to them with a single query. Any ideas?


Set your variable to the result of a single row (hopefully each column has a
unique name).

Extract with:
${extract{col1}{$acl_m0}{$value}fail}

I'm not 100% sure on my syntax there, but RTFM expansion section (I think
that was 11).

--
Lab tests show that use of micro$oft causes cancer in lab animals