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?

> From: [email protected]
> To: [email protected]
> Subject: RE: Cancelling Mail Request
> Date: Mon, 19 Dec 2011 10:00:47 +0000
> 
> Hi Nazim,
> 
> > In my Smtp module, I send email requests recursively but randomly
> > I would like to send Cancel mail request so if there is any email 
> > request which is being processed by cUrl, that should be cancelled
> > and not delivered to Mail server. I have implemented a solution and
> > I remove the handler in the middle of process but still in mail server,
> > I receive empty emails because some header data is being sent by
> > cUrl anyway. Is there any way in cUrl to cancel one mail request
> > using smtp services? Kind of a clean up message or request which
> > can be sent to Mail server by cUrl so we dont even receive an empty
> > email.
> 
> You should be able to return CURL_READFUNC_ABORT in your read function.
> 
> If my understanding of the connection layer is correct this should close
> down the connection but not send the QUIT command to the server. As such,
> the server should then ignore any header / body content that may have been
> sent to it.
> 
> Kind Regards
> 
> Steve
> 
> 
> 
> 
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
                                          
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to