curl-library
RE: Cancelling Mail Request
Date: Mon, 19 Dec 2011 13:11:34 +0100 (CET)
On Mon, 19 Dec 2011, Nazim Oztahtaci wrote:
> Actually when I read about this functionality on the previous
> implementations, I see that it is close to what we are doing. When I look
> the packages from Wireshark, I see that when we do not send any QUIT message
> to server, we close the connection in the middle and as I know if that
> happens Smtp server should skip this mail request. Am I right?
I wouldn't be surprised if there are servers who would send it off anyway, but
the SMTP spec in RFC 2821 section 4.1.1.10 for QUIT is quite clear:
The sender MUST NOT intentionally close the transmission
channel until it sends a QUIT command and SHOULD wait until it
receives the reply (even if there was an error response to a previous
command). If the connection is closed prematurely due to violations
of the above or system or network failure, the server MUST cancel any
pending transaction
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2011-12-19