curl-library
Re: imap and headers?
Date: Fri, 26 Mar 2010 09:28:23 -0700
On 03/26/2010 09:19 AM, Daniel Stenberg wrote:
> On Thu, 25 Mar 2010, Ben Greear wrote:
>
>> I just tried out an IMAP url against an account with a single email
>> msg, and it downloaded the text of the email, but there were no headers.
>>
>> Is there an option to download the headers as well, maybe look
>> something like mbox format?
>
> Perhaps headers should be sent just like headers in HTTP so that the app
> can select how to deal with them (or not)?
>
> There's but one problem with that I think. We (ab)use the headers
> concept in IMAP just like with FTP (iirc) to pass on server responses to
> client commands, and if we want to provide headers for mails as headers,
> we need to decide how we really want to do it...
That last bit doesn't make much sense to me (I'm a curl lightweight yet),
but it seems to me that if the user requests headers, we should include
as much as we can and assume the user can deal with it one way or another.
Thanks,
Ben
-- Ben Greear <greearb_at_candelatech.com> Candela Technologies Inc http://www.candelatech.com ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-03-26