curl-library
[PATCH] SMTP Modifications
Date: Mon, 22 Aug 2011 22:10:32 +0100
Dear all,
In preparation of adding NTLM support and other features to SMTP I have
enclosed a preliminary patch to performs the following:
* Modify the order of the preferred authentication method to: AUTH CRAM-MD5,
AUTH LOGIN then AUTH PLAIN. AUTH PLAIN should be the last as it is less
secure than AUTH LOGIN as the username and password are sent together -
there is no handshaking between the client and server like there is with
AUTH LOGIN.
* Correct the line length of line 1359 as this was 80 characters long.
* Tidied up some spacing issues after functions and between variable
assignment operators.
Any comments or suggestions welcome. If folks are happy with this, I will
work on the next patch to add some of my new features over the next couple
of days such as:
* Add the ability for authenticated connections to send the initial response
from "AUTH mechanism [initial-response]" in a second command, after
receiving a 334 to the "AUTH mechanism" from the server.
* Add support for the AUTH parameter in the MAIL command which is mostly
used by servers relaying emails to other servers. For example: MAIL
FROM:<login.account_at_domain.com> AUTH=email.address_at_domain.com
Kind Regards
Steve
Received on 2011-08-22