You are right. I got confused...

thanks again

George

> -----Original Message-----
> From: Bogdan-Andrei Iancu [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 13, 2006 4:43 PM
> To: Juha Heinanen
> Cc: Papadopoulos Georgios; [EMAIL PROTECTED]; [email protected]
> Subject: Re: [Users] Domain: is_from_local() is case 
> sensitive in caching mode.
> 
> still is not clear for me what will be the advantage of 
> keeping the domain names into the cache in a specific format? 
> what is here important is how they are compared...
> 
> regards,
> bogdan
> 
> Juha Heinanen wrote:
> 
> >Papadopoulos Georgios writes:
> >
> > > I tried it and it works fine. It is also important that when the 
> > > table is cached into memory that it is done in lowercase. 
> I searched 
> > > briefly but could not locate the code where this is done 
> (maybe in 
> > > the DB module?).
> >
> >it is done by hash.c/hash_table_install function.  you could add 
> >statement
> >
> >     for (i = 0; i < np->domain.len; i++) domain[i] = 
> tolower(domain[i]);
> >
> >before
> >
> >     (void) strncpy(np->domain.s, domain, np->domain.len);
> >
> >-- juha
> >  
> >
> 
> 

Disclaimer
The information in this e-mail and any attachments is confidential. It is 
intended solely for the attention and use of the named addressee(s). If you are 
not the intended recipient, or person responsible for delivering this 
information to the intended recipient, please notify the sender immediately. 
Unless you are the intended recipient or his/her representative you are not 
authorized to, and must not, read, copy, distribute, use or retain this message 
or any part of it. E-mail transmission cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to