Just my 2 cents.
I am 99% sure that emails are supposed to be case INsensitive (just as domain 
names are). You can easily check it by looking at this email's "To:" field :-)

I think that original case of the address should be preserved, but matching 
should be case-insensitive. the easierst way to do it is 
String.equalsIgnoreCase(String);

fedor.

On Wednesday 09 May 2001 14:10, you wrote:
> Good point, Rod,
> Also very irritating is if you submit your address as me@somewhere and
> get email for ME@SOMEWHERE !
> However, email addresses are supposed to be case sensitive (I'm 95%
> sure, off hand).
>
> So, another alternative would be to:
> 1) add a method containsCaseInsensitive(String name) to UserRepository
> 2) add a config element
> <allowCaseInsensitive>true</allowCaseInsensitive> to the james section.
> 3) amend isLocalUser(String userAccount) so that it checks
> UserRepository case sensitive/ insensitive as set by admin. This is the
> relevant method in MailetContext, I think. As used in RecipientIsLocal.
>
> Giving us the best of both worlds.
> Thoughts?
> Charles
>
> Rodrigo Zerlotti wrote:
> > What you all think about make the user match not "case sensitive", i.e.
> > add toLowerCase on all "matchRecipient" methods? I see more and more
> > errors comming from people trying to do "[EMAIL PROTECTED]" where should
> > be "[EMAIL PROTECTED]"
> >
> > Thoughts?
> >
> > Rod~

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to