Skip to content
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

Auto-forward email validation bug #818

Closed
ionutfilip opened this issue Jan 9, 2019 · 0 comments · Fixed by #837
Closed

Auto-forward email validation bug #818

ionutfilip opened this issue Jan 9, 2019 · 0 comments · Fixed by #837
Labels
type/bug Bug. Not working as intended

Comments

@ionutfilip
Copy link
Contributor

Getting Invalid email address when trying to set auto-forward destination to foo@example.amsterdam.

Following the code i got to this regex which i think does the trick.

pattern = re.compile(r'^([_a-z0-9\-]+)(\.[_a-z0-9\-]+)*@([a-z0-9\-]{2,}\.)*([a-z]{2,4})(,([_a-z0-9\-]+)(\.[_a-z0-9\-]+)*@([a-z0-9\-]{2,}\.)*([a-z]{2,4}))*$')

@ionutfilip ionutfilip added the type/bug Bug. Not working as intended label Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug. Not working as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant