diff options
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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"); } |