aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-14 20:14:54 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-14 20:14:54 +0000
commitddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b (patch)
treecd1c47db8e596b2d467db87c9a0fa9957eda1463 /imap.c
parent4e121fa43e2f4e85664da89c55d31ec70e2d5b5b (diff)
downloadfetchmail-ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b.tar.gz
fetchmail-ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b.tar.bz2
fetchmail-ddd0e2aa854c23ecdaf6e620f7fc38a81effbd1b.zip
Simplify the length handling.
svn path=/trunk/; revision=1339
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/imap.c b/imap.c
index 3b25c6ec..0668ff36 100644
--- a/imap.c
+++ b/imap.c
@@ -443,6 +443,7 @@ static int imap_getrange(int sock,
return(PS_SUCCESS);
}
+#ifdef __UNUSED__
static int imap_getsizes(int sock, int count, int *sizes)
/* capture the sizes of all messages */
{
@@ -465,6 +466,7 @@ static int imap_getsizes(int sock, int count, int *sizes)
return(PS_SUCCESS);
}
+#endif /* __UNUSED__ */
static int imap_is_old(int sock, struct query *ctl, int number)
/* is the given message old? */
@@ -644,11 +646,10 @@ const static struct method imap =
143, /* standard IMAP2bis/IMAP4 port */
TRUE, /* this is a tagged protocol */
FALSE, /* no message delimiter */
- FALSE, /* fetch response size is reliable */
imap_ok, /* parse command response */
imap_getauth, /* get authorization */
imap_getrange, /* query range of messages */
- imap_getsizes, /* grab message sizes */
+ NULL, /* we can get message sizes from individual messages */
imap_is_old, /* no UID check */
imap_fetch_headers, /* request given message headers */
imap_fetch_body, /* request given message body */