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

mailto: Wait for server opening message #5312

Merged
merged 1 commit into from
May 11, 2018
Merged

mailto: Wait for server opening message #5312

merged 1 commit into from
May 11, 2018

Conversation

hansmi
Copy link
Contributor

@hansmi hansmi commented May 8, 2018

A subset of all mailserver configurations reject SMTP sessions where the
client sends anything before the server sent its opening message. This
is the case with Exim on Ubuntu Artful, for example:

SMTP protocol synchronization error (input sent without waiting for
greeting)

Not waiting for the opening message is a violation of the session
initiation described in RFC5321 (section 3.1). Update the mailto
notifier to wait for a non-error status code from the server before
proceeding to start the mail transaction.

A subset of all mailserver configurations reject SMTP sessions where the
client sends anything before the server sent its opening message. This
is the case with Exim on Ubuntu Artful, for example:

  SMTP protocol synchronization error (input sent without waiting for
  greeting)

Not waiting for the opening message is a violation of the session
initiation described in RFC5321 (section 3.1). Update the mailto
notifier to wait for a non-error status code from the server before
proceeding to start the mail transaction.
@michaelrsweet
Copy link
Collaborator

OK, so we'll definitely pick this up, but I'm thinking I want a wait timeout in there in case we are talking to a non-conforming SMTP server...

@michaelrsweet
Copy link
Collaborator

Looking at the code we are not doing timeouts for the other cupsFileGets calls, so we'll go with it... :)

@michaelrsweet michaelrsweet merged commit 8127ebd into apple:master May 11, 2018
@hansmi hansmi deleted the mailtowait1 branch June 3, 2018 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants