aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c10
1 files changed, 9 insertions, 1 deletions
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");
}