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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]