aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-20 22:49:45 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-20 22:49:45 +0000
commit296fc7f92732fe2ef1a4787591f458b6065f6c15 (patch)
tree7ebbc7f2da34d885c3c2f37c54c26ff108b71ae5 /pop3.c
parent3162ca707f5aca13d341289b28cd65e80a5696bb (diff)
downloadfetchmail-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.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");
}