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 18:57:57 +0300

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

Done. I didn't move Jakob's code in imap4d/login.c, though. There
are two possible approaches to it: either a chain of user-defined
getpwnams, or a single getpwnam that would do the job. Using the
first approach one would do in imap4d:

    #ifdef HAVE_MYSQL
      mu_register_getpwnam (getMpwnam);
    #endif
    #ifdef USE_VIRTUAL_DOMAINS
      mu_register_getpwnam (imap4d_virtual);
    #endif

Using the second approach, one would need to supply a function that
calls getMpwnam and imap4d_virtual in succession, and then register this
function with mu_register_getpwnam. I'd vote for the former approach.
Opinions?

-Sergey




reply via email to

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