bug-mailutils
[Top][All Lists]
Advanced

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

Re: Mysql Support Patch (mailutils)


From: Sergey Poznyakoff
Subject: Re: Mysql Support Patch (mailutils)
Date: Thu, 30 Aug 2001 16:56:46 +0300

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?


au revoir,
-Sergey
 



reply via email to

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