Re: Question regarding multiple IMAP operations

2015-05-27 Thread Adam
Ray, I've actually written C89 code to parse IMAP responses. libcurl IMAP is indeed garbage, because the only thing it does for you that a straight socket doesn't is encryption (which is well documented w/tons of code samples anyway). So as soon as I remove these crashes I will post my code to

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Daniel Stenberg
On Wed, 27 May 2015, Adam wrote: Ray, I've actually written C89 code to parse IMAP responses. libcurl IMAP is indeed garbage, because the only thing it does for you that a straight socket doesn't is encryption ... and an non-blocking IMAP command/response state machine with a stable API

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Ray Satiro via curl-library
On 5/26/2015 9:31 AM, Adam wrote: What is the proper way to send multiple IMAP commands? For example, first I'd like to get a listing of all the folder names, then I want to list the unread files in the folder names. I've tried using the same CURL* curl handle, sometimes it crashes on

Re: Question regarding multiple IMAP operations

2015-05-27 Thread Ray Satiro via curl-library
On 5/27/2015 3:09 PM, Adam wrote: Ray, I've actually written C89 code to parse IMAP responses. libcurl IMAP is indeed garbage, because the only thing it does for you that a straight socket doesn't is encryption (which is well documented w/tons of code samples anyway). So as soon as I remove

Question regarding multiple IMAP operations

2015-05-26 Thread Adam
I have a very basic question. What is the proper way to send multiple IMAP commands? For example, first I'd like to get a listing of all the folder names, then I want to list the unread files in the folder names. I've tried using the same CURL* curl handle, sometimes it crashes on