cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Cancelling Mail Request

From: Nazim Oztahtaci <nazim_oztahtaci_at_hotmail.com>
Date: Mon, 19 Dec 2011 11:05:09 +0000

Thanks. I will try it and will see if it works.

Kind regards

> From: steve_holme_at_hotmail.com
> To: curl-library_at_cool.haxx.se
> 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
Received on 2011-12-19