aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
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 */