]> git.ipfire.org Git - thirdparty/cups.git/commit
mailto: Wait for server opening message 5312/head
authorMichael Hanselmann <public@hansmi.ch>
Tue, 8 May 2018 23:22:56 +0000 (01:22 +0200)
committerMichael Hanselmann <public@hansmi.ch>
Tue, 8 May 2018 23:26:21 +0000 (01:26 +0200)
commit077bd665bdd881c33b3086541365e36b4c733d57
treed08592cf815c20094aab07a963f4627303de387f
parentdfe5f3b95cfde0a59fdebf03e789f7cdc680c380
mailto: Wait for server opening message

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.
notifier/mailto.c