email-parse icon indicating copy to clipboard operation
email-parse copied to clipboard

Is this not a valid email address [email protected]

Open madhurtandon opened this issue 8 years ago • 8 comments

According to RFC822 this is a valid email address

madhurtandon avatar Nov 06 '17 12:11 madhurtandon

Interesting - does it pass RFC2822 as well?

mmucklo avatar Nov 06 '17 16:11 mmucklo

(If so I’ll take a look)

mmucklo avatar Nov 06 '17 16:11 mmucklo

Yes it passes RFC2822 check

madhurtandon avatar Nov 07 '17 05:11 madhurtandon

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?

mmucklo avatar Nov 07 '17 16:11 mmucklo

Thanks. Not required

madhurtandon avatar Nov 08 '17 08:11 madhurtandon

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]"

madhurtandon avatar Nov 13 '17 13:11 madhurtandon

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?

mmucklo avatar Nov 13 '17 16:11 mmucklo

Yes

On Nov 13, 2017 21:39, "mmucklo" [email protected] wrote:

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?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mmucklo/email-parse/issues/14#issuecomment-343968097, or mute the thread https://github.com/notifications/unsubscribe-auth/ACXOVTcaOQEjFLVz8N7XZghaxycpxNaQks5s2Gm0gaJpZM4QTKk1 .

madhurtandon avatar Nov 13 '17 16:11 madhurtandon