On Wed, Aug 09, 2006 at 05:44:56PM +0200, Emmanuel Lacour wrote:
> Hi,
> 
> I'm writing a plugin which does some lookups on an LDAP server in
> different hooks (mail, rcpt). It works, but it reconnects to LDAP on
> every hook call :(
> 
> Is it possible to have a persistent connection at least for each message
> (for multiple messages would be great). Maybe should I put the ldap
> handler using $transaction instead of $self?
> 

I made a mistake, I fixed my code and I'm now able to have one
connection for each message (using $self) :)

If it is possible to keep this connection for more than one message,
this would be great :) But I really can't see how to do that :(

Reply via email to