cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Question on POP3 usage in libcurl

From: Steve Holme <steve_holme_at_hotmail.com>
Date: Fri, 21 Oct 2011 22:53:23 +0100

Hi Guys,

> > I notice that when you call the function the first time it negotiates
> > the login then sends LIST and returns the list of messages by their
> > ids then sends QUIT. But obviously I am interested in not just the
> > message list but the messages themselves. How do I re-start the
> > transaction, or rather tell libcurl not to terminate the transaction
> > until I have retrieved the actual messages.In other words, I need to
> > find a way to send command RETR <id> as per POP3 RF1939 based
> > on the result from LIST.
>
> You keep the handle and then you issue follow-up requests against
> the same host, port and protocol and then libcurl will re-use the
> connection and continue from where you left it.

Just to clarify you submit the URL as:

pop3://user:password_at_mail.domain.com/mailbox - where mailbox is the message
id

I'm updating curl_easy_setopt.3 as we speak to give this example as it is
another URL example that includes the path that I have already started to
document.

Kind Regards

Steve

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-21