diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-09-26 15:57:33 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-09-26 15:57:33 +0000 |
commit | 5ad95abd711a7a0a619246fd2bb4a7cfe60acc1b (patch) | |
tree | 922e52cabaab31c906a3096f9d0c675fdaca11f3 /pop3.c | |
parent | 99e56e3b4c7c2692ce76caa9beb552cf52816dc8 (diff) | |
download | fetchmail-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.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -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; |