bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mysql Support Patch (mailutils)


From: Alain Magloire
Subject: Re: Mysql Support Patch (mailutils)
Date: Thu, 30 Aug 2001 10:59:02 -0400 (EDT)

> 
> Bonjour,
> 
> Some thoughts about MySql patch:
> 
> Its functions are used in libmailbox, so any application wishing to
> use mailbox functions will have to be linked against libmysqlclient,
> even if it never plans to use authentication calls (e.g., this is the case
> with frm and mail, both programs never need to authenticate anybody,
> nevertheless -lmysqlclient has to be linked in, since mailbox_default
> uses getMpwnam function.)
> 
> I would propose to use a wrapper, say mu_getpwnam, around getpwnam
> call. The wrapper works the following way: first it calls system
> getpwnam, then if it returns NULL, it calls the application-defined
> function, if such a function is registered. Thus, both pop3d and
> imap4d could register getM.* functions and obtain the mysql
> functionality, whereas the programs not needing it will not have to be
> linked against any sql-specific library. Opinions?

I think, it's a great idea.
Then we came move some of the code commited, by Jakob to use the
same technique.

--
alain




reply via email to

[Prev in Thread] Current Thread [Next in Thread]