curl-library
Re: PATCH: pop3: Get message listing if none specified in URL.
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 27 Mar 2010 19:49:01 +0100 (CET)
Date: Sat, 27 Mar 2010 19:49:01 +0100 (CET)
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!
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2010-03-27