static int pound_arg, equal_arg;
-int pop2_ok (int sock, char *argbuf)
+static int pop2_ok (int sock, char *argbuf)
/* parse POP2 command response */
{
int ok;
return(ok);
}
-int pop2_getauth(int sock, struct query *ctl, char *buf)
+static int pop2_getauth(int sock, struct query *ctl, char *buf)
/* apply for connection authorization */
{
- return(gen_transact(sock,
+ int status;
+
+ strcpy(shroud, ctl->password);
+ status = gen_transact(sock,
"HELO %s %s",
- ctl->remotename, ctl->password));
+ ctl->remotename, ctl->password);
+ shroud[0] = '\0';
}
-static int pop2_getrange(int sock, struct query *ctl, const char *folder, int*countp, int*newp)
+static int pop2_getrange(int sock, struct query *ctl, const char *folder,
+ int *countp, int *newp, int *bytes)
/* get range of messages to be fetched */
{
/* maybe the user wanted a non-default folder */
return(PS_ERROR);
*countp = pound_arg;
- *newp = -1;
+ *bytes = *newp = -1;
return(0);
}
const static struct method pop2 =
{
"POP2", /* Post Office Protocol v2 */
+#if INET6_ENABLE
+ "pop2", /* standard POP2 port */
+ "pop2", /* ssl POP2 port */
+#else /* INET6_ENABLE */
109, /* standard POP2 port */
+ 109, /* ssl POP2 port - not */
+#endif /* INET6_ENABLE */
FALSE, /* this is not a tagged protocol */
FALSE, /* does not use message delimiter */
pop2_ok, /* parse command response */