aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-26 15:57:33 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-26 15:57:33 +0000
commit5ad95abd711a7a0a619246fd2bb4a7cfe60acc1b (patch)
tree922e52cabaab31c906a3096f9d0c675fdaca11f3 /pop3.c
parent99e56e3b4c7c2692ce76caa9beb552cf52816dc8 (diff)
downloadfetchmail-5ad95abd711a7a0a619246fd2bb4a7cfe60acc1b.tar.gz
fetchmail-5ad95abd711a7a0a619246fd2bb4a7cfe60acc1b.tar.bz2
fetchmail-5ad95abd711a7a0a619246fd2bb4a7cfe60acc1b.zip
No more rpopid field.
svn path=/trunk/; revision=162
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/pop3.c b/pop3.c
index 2c5ad87e..7a9c3ccc 100644
--- a/pop3.c
+++ b/pop3.c
@@ -104,10 +104,17 @@ char *greeting;
if (pop3_ok(buf,socket) != 0)
goto badAuth;
- if (queryctl->rpopid[0])
- gen_send(socket, "RPOP %s", queryctl->rpopid);
- else
- gen_send(socket, "PASS %s", queryctl->password);
+ gen_send(socket, "PASS %s", queryctl->password);
+ if (pop3_ok(buf,socket) != 0)
+ goto badAuth;
+ break;
+
+ case P_RPOP:
+ gen_send(socket,"USER %s", queryctl->remotename);
+ if (pop3_ok(buf,socket) != 0)
+ goto badAuth;
+
+ gen_send(socket, "RPOP %s", queryctl->password);
if (pop3_ok(buf,socket) != 0)
goto badAuth;
break;