On Mon, Aug 06, 2001 at 11:44:56PM +0200, Franky Van Liedekerke wrote:
> Interesting patch, but I would like something a bit more complicated: 
> a multiline ldapmailhost control file.

This isn't too complicated. you'll need to replace the if-statement by a
small loop and reverse the check.
e. g.

if ( qldap_cluster && info.host && mailhosts(info.host) ) {
       /* hostname is different, so I reconnect */
       forward_mail(info.host, mail, from, fdmess);
       /* that's it. Function does not return */
}

mailhosts() would be similar to the stuff in rcpthosts.c, using a constmap.
should be codeable in ~30 lines. mailhosts() should return 0 if info.hosts
is in the list and 1 otherwise.


-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany               *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)

Reply via email to