]> granicus.if.org Git - curl/commit
pop3: Get message listing if no mailbox in URL
authorBen Greear <greearb@candelatech.com>
Sun, 28 Mar 2010 21:49:00 +0000 (23:49 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 28 Mar 2010 21:49:00 +0000 (23:49 +0200)
commit69ccc9f8610694134a3a33206f86d14c0f4a2bf9
treed007f899f9fa2de5fd7d972c4b16be74f036dc36
parent302507d5dce5afb93363b42b2aff940297644e1f
pop3: Get message listing if no mailbox in URL

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 change makes libcurl treat en 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.
lib/pop3.c
lib/pop3.h