aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-02-05 04:10:43 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-02-05 04:10:43 +0000
commitf14635152fcc38a703f806dcfeb3fc51d3e55365 (patch)
tree0ed6186184ab0c6b84bb742c9b89a89a1a978fb7 /pop3.c
parent6cb8b67abddf3391db61e3839c98b88320395249 (diff)
downloadfetchmail-f14635152fcc38a703f806dcfeb3fc51d3e55365.tar.gz
fetchmail-f14635152fcc38a703f806dcfeb3fc51d3e55365.tar.bz2
fetchmail-f14635152fcc38a703f806dcfeb3fc51d3e55365.zip
LinuxWorld hacks.
svn path=/trunk/; revision=2729
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index 9974973a..9eae1441 100644
--- a/pop3.c
+++ b/pop3.c
@@ -93,7 +93,9 @@ int pop3_ok (int sock, char *argbuf)
else if (strstr(bufp,"lock")
|| strstr(bufp,"Lock")
|| strstr(bufp,"LOCK")
- || strstr(bufp,"wait"))
+ || strstr(bufp,"wait")
+ /* these are blessed by RFC 2449 */
+ || strstr(bufp,"[IN-USE]")||strstr(bufp,"[LOGIN-DELAY]"))
ok = PS_LOCKBUSY;
else
ok = PS_AUTHFAIL;
@@ -130,6 +132,15 @@ int pop3_getauth(int sock, struct query *ctl, char *greeting)
ctl->server.sdps = TRUE;
#endif /* SDPS_ENABLE */
+ /*
+ * In theory, we ought to probe with CAPA here (RFC 2449).
+ * But AFAIK this commpand is not widely implemented, and
+ * we have our own tests for optional commands, and it seems
+ * vanishingly unlikely that the RFC 2449 extended responses
+ * [IN-USE] and [LOGIN-DELAY] will ever be accidentally spoofed.
+ * So we'll not bother, and save ourselves the overhead.
+ */
+
switch (ctl->server.protocol) {
case P_POP3:
#ifdef RPA_ENABLE