summaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2010-03-28 23:49:00 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-03-28 23:49:00 +0200
commit69ccc9f8610694134a3a33206f86d14c0f4a2bf9 (patch)
treed007f899f9fa2de5fd7d972c4b16be74f036dc36 /lib/pop3.h
parent302507d5dce5afb93363b42b2aff940297644e1f (diff)
downloadcurl-69ccc9f8610694134a3a33206f86d14c0f4a2bf9.tar.gz
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.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index 3076287fd..20a226985 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -32,6 +32,7 @@ typedef enum {
POP3_USER,
POP3_PASS,
POP3_STARTTLS,
+ POP3_LIST,
POP3_RETR,
POP3_QUIT,
POP3_LAST /* never used */