cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PATCH: pop3: Get message listing if none specified in URL.

From: Ben Greear <greearb_at_candelatech.com>
Date: Sat, 27 Mar 2010 20:11:52 -0700

On 03/27/2010 11:49 AM, Daniel Stenberg wrote:
> On Fri, 26 Mar 2010, Ben Greear wrote:
>
>> If you pass a URL to pop3 that does not contain a message ID as part
>> of the URL, it will currently ask for 'INBOX' which just causes the
>> pop3 server to return an error.
>>
>> The attached patch treats empty message ID as a request for LIST (list
>> of pop3 message IDs). User's code could then parse this and download
>> individual messages as desired.
>
> I completely agree with this (and it so matches how we do it with FTP so
> it makes perfect sense). If you want to go for bonus points, try adding
> a test case for this as well!

Well, I added code to my app that uses libcurl, at least.
Worked like a charm on a small inbox.

Will take a peak at your test logic next week.

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.html
Received on 2010-03-28