Re: [EXIM] OK here goes...

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Greg A. Woods
Fecha:  
A: exim-users
Asunto: Re: [EXIM] OK here goes...
[ On Fri, January 16, 1998 at 13:02:41 (-0500), Peter Radcliffe wrote: ]
> Subject: Re: [EXIM] OK here goes...
>
> Bruce Bowler <bbowler@???> probably said:
> > At 12:39 PM 1/16/98 -0500, Peter Radcliffe wrote:
> > >strncmp() ?
> > >I know its not as portable - have a copy within exim to use if its not
> > >found ?
> >
> > strncmp compares at most n characters, perhaps you mean stricmp or
> > strcasecmp (depending on what OS :-)
>
> Sorry, I meant strncasecmp(), yes.
>
> This is what comes of being ill and half awake ...


Actually the whole suggestion is pretty well useless unless you first
re-implement some or all of getpw*() functions since there's no way to
tell them what string comparison function to use. ;-)

In fact it gets even trickier if other user databases are in use, such
as YP/NIS/NIS+. In the end you have to scan the whole thing anyway, and
that can quickly go from expensive to *very* costly if it's not done
carefully.

If you do have a large user-base and/or use YP/NIS, etc. then there's
likely only one thing you can do if you want case-independent mailboxes,
and that's to force all your users to have lowercase-only user-names.
Then in the user director you can simply map all mailbox names to
lowercase and then pass them to the local delivery agent if they match a
local user.

Of course you could always use the old trick of building a separate
database that includes all case variants to map to the true case of the
user-name....

-- 
                            Greg A. Woods


+1 416 443-1734      VE3TCP      <gwoods@???>      <robohack!woods>
Planix, Inc. <woods@???>; Secrets of the Weird <woods@???>


--
*** Exim information can be found at http://www.exim.org/ ***