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

Is this not a valid email address [email protected] #14

Open
madhurtandon opened this issue Nov 6, 2017 · 8 comments
Open

Is this not a valid email address [email protected] #14

madhurtandon opened this issue Nov 6, 2017 · 8 comments

Comments

@madhurtandon
Copy link

According to RFC822 this is a valid email address

@mmucklo
Copy link
Owner

mmucklo commented Nov 6, 2017

Interesting - does it pass RFC2822 as well?

@mmucklo
Copy link
Owner

mmucklo commented Nov 6, 2017

(If so I’ll take a look)

@madhurtandon
Copy link
Author

Yes it passes RFC2822 check

@mmucklo
Copy link
Owner

mmucklo commented Nov 7, 2017

So exim by default disallows exclamation marks unless they are quoted, which is why it's disabled (since you may be able to send out using sendmail, but it could get blocked at the receiving end, or vice versa).

https://lists.gt.net/python/python/1173621

So around line 431 I have this:

                    // Note: check for Exim-banned characters
                    //  See Bug #18749 - Unhandled Exception: 550 Restricted characters in address
                    if ($curChar == '%' || $curChar == '!') {
                        $emailAddress['invalid'] = true;
                        $emailAddress['invalid_reason'] = "This character is not allowed in email addresses submitted (please put in quotes if needed): '${curCh\
ar}'";

I could make an option to override this, would that be useful to you?

@madhurtandon
Copy link
Author

Thanks. Not required

@madhurtandon
Copy link
Author

madhurtandon commented Nov 13, 2017

Hey, As i reached further, i am getting this

"Periods within the name of an email address must appear in quotes"

email is: "name lastname [email protected], companyname Ltd. [email protected]"

@mmucklo
Copy link
Owner

mmucklo commented Nov 13, 2017

Ok that’s definitely the second address causing the problem.

Which part of that address is the “name” and which part is the email?

It’s:

Name: companyname Ltd.
Email: [email protected]

Right?

@madhurtandon
Copy link
Author

madhurtandon commented Nov 13, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants