-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dev/mail#32 - Making mailing test email non-case-sensitive #13392
dev/mail#32 - Making mailing test email non-case-sensitive #13392
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
@civicrm-builder add to whitelist |
test fail is unrelated |
@martinh-pw this doesn't cover ALL scenarios - ie. if the email in the database is not lower case then you could get a new email added still. However, I am going to merge this & let you decide whether you want to address that as a follow up because
Congrats on your first merged PR I think? |
@eileenmcnaughton Are there actually instances where the email in the database may end up not beeing lower case? I was under the impression that it is always stored as lower case. |
Thanks @eileenmcnaughton :) Yes, same as @tschuettler my understanding was that emails in the db are already expected to be lowercase. Regardless, I've added some further tweaks to account for that possibility: |
@tschuettler @martinh-pw don't we just save them as entered? |
I know that if you enter an email address on the Add Contact page, or inline on the Contact page, civi will convert it to lower. I don't know if that happens in all cases, but it seems likely it would happen as a general rule. That's not exactly a definitive answer though! |
@eileenmcnaughton I don't think so. At least I could not find any way to create a non-lowercase email (tested with CSVImport, apiv3, apiv4, GUI edit). There is none in our datebase aswell. |
As per https://lab.civicrm.org/dev/mail/issues/32
Added call to strtolower() when processing the user-provided test email addresses for a mailing. Updated MailingTest.php:testMailerSendTest_email to use a mixed-case email.