diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-02-05 04:10:43 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-02-05 04:10:43 +0000 |
commit | f14635152fcc38a703f806dcfeb3fc51d3e55365 (patch) | |
tree | 0ed6186184ab0c6b84bb742c9b89a89a1a978fb7 /pop3.c | |
parent | 6cb8b67abddf3391db61e3839c98b88320395249 (diff) | |
download | fetchmail-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.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 |