-
Notifications
You must be signed in to change notification settings - Fork 59
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
SRS return path issues - causes whole email to fail to process #90
Comments
Hi, I'll have a look. I don't think there is anything wrong with this line, so moving to Do you have a set of emails that are now broken, and also your original broken one from the issue in civic that you linked to? We can then add these as test cases. cheers, |
I had a little dive into RFCs, and I do think it is important that we validate this, and that we don't just return My suggestion would be to use the regex from PHP's |
I've merged this, and also released 1.9.6. |
Thanks for being so helpful @derickr |
We have a new issue with mail components - the returnPath is capabil of being an invalid email in line with the Sender Rewriting scheme
e.g
However, this doesn't pass
!filter_var( $value->email, FILTER_VALIDATE_EMAIL ) )
I'm playing catch up here a bit because I don't know why this wasn't raised in the context of #87 (our ref is https://lab.civicrm.org/dev/core/-/issues/3586)
However, the problem is that an SRS path - causes the whole email to fail to load - which is the problem
We have a proposed fix which is just to set NULL rather than throw an exception above in these cases - perhaps we can detect SRS in the string and just not return anything in that case?
The text was updated successfully, but these errors were encountered: