curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: POP3 multiple TOP per transaction possible??

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 18 Feb 2018 18:33:15 +0100 (CET)

On Sat, 17 Feb 2018, acorn12 wrote:

> As I need to check the status of a POP3 mailbox and retrieve all header
> information about all messages, I am currently using one call to libcurl per
> message. For a dozen or more messages, this can be relatively slow as it
> requires a transaction per call.

Define "transaction" ? libcurl doesn't need to close the connection nor redo
the login between invokes.

> Is it possible to accomplish this with libcurl and if so, how can I
> implement such a scheme?

By reusing the easy handle, subsequent calls to curl_easy_perform() should be
pretty quick.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2018-02-18