summaryrefslogtreecommitdiff
path: root/lib/pop3.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-11-29 13:43:46 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-29 13:43:46 +0100
commitaf6466643416fd36fea4205d2d7a02a9292e2858 (patch)
treef1b911a54928389f2096105e539811fb0cd36b41 /lib/pop3.h
parent2d72489f0fc2ef6e0f4de88766acfef286605c6a (diff)
downloadcurl-af6466643416fd36fea4205d2d7a02a9292e2858.tar.gz
POP3: detect when LIST returns no mails
By making sure the function can detect an "end of body" sequence immediately on the first line, test 811 is now enabled.
Diffstat (limited to 'lib/pop3.h')
-rw-r--r--lib/pop3.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pop3.h b/lib/pop3.h
index 15256738e..e9bbd9195 100644
--- a/lib/pop3.h
+++ b/lib/pop3.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2009 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -46,6 +46,7 @@ struct pop3_conn {
char *mailbox; /* what to RETR */
size_t eob; /* number of bytes of the EOB (End Of Body) that has been
received thus far */
+ size_t strip; /* number of bytes from the start to ignore as non-body */
pop3state state; /* always use pop3.c:state() to change state! */
};