-
Notifications
You must be signed in to change notification settings - Fork 10
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
fix: honor report size in dmarc URI #8
Conversation
I think it may need more than just splitting by > require('validator').isEmail('word!up@wordup.co')
true |
Oh duh, good catch |
I no longer work at the company that needed this library, so my brain is probably missing vital relevant bits, but maybe we could do matching like: const limitRE = /!(?<limit>.+)$/
const limitMatch = email.match(limitRE)
if (limitMatch) {
const sizeLimit = limitMatch.groups.limit
email = email.replace(limitRE, '')
} |
Thank you @c0bra - @shaunwarman will get this resolved soon and push up so you can release new version to npm once merged. We are using this for @forwardemail |
60cff8d
to
52036d7
Compare
Sorry for the hold up @c0bra - just got back to this. Thanks for that match! |
👍 |
Published just now in v1.2.0 |
This does not support email addresses with exclamation marks. I've opened PR #10 to fix this @c0bra. Could you please merge it and publish a new version then? Also note that I've filed issue #9 due to size and numbers still not being validated in the Thank you! 🙏 Ref: |
Taking a stab at #2
Honor the report size in dmarc URI (e.g.
... rua=some@email.com!30m
) before validating the email.closes #2