cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [PATCH] SMTP Modifications

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Wed, 24 Aug 2011 21:25:53 +0100

Dear all,

Please find attached my next modification for the SMTP protocol - which adds
the ability to specify whether authenticated connections (AUTH PLAIN and
AUTH LOGIN) send the initial response in the AUTH command or in the next
command. This can be set via the CURLOPT_MAIL_SINGLE_AUTH option but
defaults to TRUE to maintain compatibility with versions of curl prior to
7.22.0.

This is not implemented for CRAM-MD5 as this authentication method does not
support the initial response in the AUTH command (as the server has to send
a challenge in the response to "AUTH CRAM-MD5").

More information about the AUTH command can be found at:

http://tools.ietf.org/html/rfc4954 - Section 4.1
http://www.samlogic.net/articles/smtp-commands-reference-auth.htm

Any comments, suggestions or random pieces of advice are always welcome ;-)

Kind Regards

Steve

Received on 2011-08-24