diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-20 22:49:45 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-20 22:49:45 +0000 |
commit | 296fc7f92732fe2ef1a4787591f458b6065f6c15 (patch) | |
tree | 7ebbc7f2da34d885c3c2f37c54c26ff108b71ae5 /pop3.c | |
parent | 3162ca707f5aca13d341289b28cd65e80a5696bb (diff) | |
download | fetchmail-296fc7f92732fe2ef1a4787591f458b6065f6c15.tar.gz fetchmail-296fc7f92732fe2ef1a4787591f458b6065f6c15.tar.bz2 fetchmail-296fc7f92732fe2ef1a4787591f458b6065f6c15.zip |
RPOP support is back.
svn path=/trunk/; revision=791
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"); } |