From 296fc7f92732fe2ef1a4787591f458b6065f6c15 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 20 Jan 1997 22:49:45 +0000 Subject: RPOP support is back. svn path=/trunk/; revision=791 --- pop3.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'pop3.c') diff --git a/pop3.c b/pop3.c index b8f67bb5..01b92b84 100644 --- a/pop3.c +++ b/pop3.c @@ -104,7 +104,7 @@ int pop3_getauth(FILE *sockfp, struct query *ctl, char *greeting) switch (ctl->server.protocol) { case P_POP3: - if ((gen_transact(sockfp,"USER %s", ctl->remotename)) != 0) + if ((gen_transact(sockfp, "USER %s", ctl->remotename)) != 0) PROTOCOL_ERROR if ((gen_transact(sockfp, "PASS %s", ctl->password)) != 0) @@ -117,6 +117,14 @@ int pop3_getauth(FILE *sockfp, struct query *ctl, char *greeting) PROTOCOL_ERROR break; + case P_RPOP: + if ((gen_transact(sockfp,"USER %s", ctl->remotename)) != 0) + PROTOCOL_ERROR + + if ((gen_transact(sockfp, "RPOP %s", ctl->password)) != 0) + PROTOCOL_ERROR + break; + default: error(0, 0, "Undefined protocol request in POP3_auth"); } -- cgit v1.2.3