Re: [Exim] Email Aliases DB?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Chris Knipe
CC: exim-users
Tárgy: Re: [Exim] Email Aliases DB?
On Tue, 5 Sep 2000, Chris Knipe wrote:

> If you don't mind giving me some more info on this.... What connection
> "type" is exim using to physical connect to the database server? The MySQL
> socket call? or is it a direct tcp connection or what...


Absolutely no idea; it's buried in the MySQL library code. Take a look
at lookups/mysql.c. Exim just calls a sequence of functions:

mysql_init, mysql_real_connect, mysql_query, mysql_use_result,
mysql_num_fields, mysql_fetch_fields, mysql_free_result.

All the hard work is done inside the library. If there is no such
library for MSSQL, then the job of interfacing it to Exim is going to be
very much harder than any of the existing database interfaces. I would
suggest that the right way to do it would be to write an independent
library to the same kind of API as the MySQL one, rather than do the
work directly in Exim. The library could then be useful to other
programs (not to mention it would be easier to test).

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.