Re: [imap] imap: Return folder listing if empty URL content is given.
Date: Thu, 01 Apr 2010 12:13:02 -0700
On 03/30/2010 02:08 PM, Daniel Stenberg wrote:
> On Tue, 30 Mar 2010, Ben Greear wrote:
>> It seems that in general the imap code and perhaps pingpong logic
>> isn't well suited for handling imap stuff, where the data and headers
>> are all mixed up.
> I agree that IMAP is a bit ugly in that regard and yes it makes things a
> bit quirky within libcurl. But I'm convinced that we can work something
> out that ends up decent!
Well, I don't know about decent..but I have at least some functionality
working now. The attached patch is full of debugging code and needs
more testing, so this is just for comment unless you are feeling
I am afraid I abused the pingpong logic quite a bit. There is probably
a cleaner way, but not sure what that would be.
This patch is against a recent upstream pull..it includes all of my
previous curl imap patches.
Some things that should work with this patch:
* Enable header CURLOPT and mail headers will be requested and
saved to the read callback.
* Select inbox and download two email messages with specified IDs:
NOTE: All headers come first, then body...this needs more work.
* Get one message from INBOX:
Still working on getting search working properly.
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.com
- text/plain attachment: curl.patch