mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-26 09:26:00 +03:00
[GH-ISSUE #292] case sensitive mail confusion #276
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#276
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/292
Originally assigned to: @tonioo on GitHub.
Originally created by Walter Doekes on 2012-07-16T09:45:43Z
Hi,
no sane person wants case sensitive e-mail addresses (of which only the local part is sensitive).
Therefore we should always convert the email to lowercase before saving.
For local accounts lowercase email should be considered as mandatory
Why?
Result: Myname-user doesn't get any mail, because it goes in myname-directory.
The hard fix is to ensure that all of postfix and/or dovecot preserves case along the way.
The easy fix is to fold the e-mail to lowercase at creation time and that is what the attached patch does.
The patch also does the following:
Regards,
Walter Doekes
OSSO B.V.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-07-16T18:20:00Z
Hi Walter,
Indeed lowercase usernames should be safer and I don't see (atm) any situation where it can be anoying.
About your patch, I agree with case insensitive search but not with including the email field in queries. Why?
An account (a User instance) isn't always associated to a mailbox. For this reason, the email field is not always filled. Otherwise, username and email fields are the same for simple users. The only case where it could be useful concerns admins (super and domain) with a mailbox and a username that is not an email address.
I need to check this before applying/modifying your patch. Why did you change that?
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Walter Doekes on 2012-07-19T07:48:00Z
Ok.. but if it isn't filled, the search will not return any hits for it. So it doesn't bother you.
Well yes.. this was the first thing I noticed when I searched and couldn't find my recently created entries.
I'll probably patch the search some more to find alias/dlist/forwards a little better too. But that's for later.
Regards,
Walter
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-07-19T08:15:55Z
Walter Doekes wrote:
That's true...
Ok. So I'll wait for your modification before including this patch.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-08-02T19:25:48Z
Hi Walter,
nothing new about that ?
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Walter Doekes on 2012-08-03T19:17:38Z
I'm on holiday..
So no, not right now =)
Can't promise when I'll work on it, but I'll probably find a window by the end of the month.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-09-22T08:43:22Z
Walter Doekes wrote:
Hi,
did you find some time to work on that ?
Antoine
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-10-04T17:24:42Z
I've applied partially your patch. I now force lower case emails (always) and lower case usernames only for simple users.
I'll create a new ticket about improving the search queries.