#include "config.h"
#ifdef POP2_ENABLE
+#include "fetchmail.h"
#include <stdio.h>
-#if defined(STDC_HEADERS)
#include <stdlib.h>
-#endif
-#ifdef HAVE_STRING_H
#include <string.h>
-#endif
-#include "fetchmail.h"
#include "socket.h"
#include "i18n.h"
return PS_SOCKET;
}
- if (ctl->server.authentication != A_ANY && ctl->server.authentication != A_PASSWORD)
+ if (ctl->server.authenticate != A_ANY && ctl->server.authenticate != A_PASSWORD)
{
report(stderr, GT_("POP2 only supports password authentication. Giving up.\n"));
return PS_AUTHFAIL;
}
static int pop2_getrange(int sock, struct query *ctl, const char *folder,
- int *countp, int *newp, int *bytes)
+ int *countp, int *newp, unsigned long long *bytes)
/* get range of messages to be fetched */
{
(void)ctl;