diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | imap.c | 7 |
2 files changed, 10 insertions, 0 deletions
@@ -81,6 +81,9 @@ fetchmail-6.3.19 (not yet released): * Do STARTTLS/STLS negotiation in IMAP/POP3 if it is mandatory even if the server capabilities do not show support for upgradation to TLS. To use this, configure --sslproto tls1. (Sunil Shetye) +* IMAP: Understand empty strings as FETCH response, seen on Yahoo. Reported by + Yasin Malli to fetchmail-users@ 2010-12-10. + Note that fetchmail continues to expect literals as FETCH response for now. # DOCUMENTATION * The manual page now links to IANA for GSSAPI service names. @@ -1264,6 +1264,13 @@ static int imap_fetch_body(int sock, struct query *ctl, int number, int *lenp) return PS_SUCCESS; } + /* Understand the empty string. Seen on Yahoo. */ + /* XXX FIXME: we should be able to handle strings here. */ + if (strstr(buf+10, "\"\")")) { + *lenp = 0; + return PS_SUCCESS; + } + /* * Try to extract a length from the FETCH response. RFC2060 requires * it to be present, but at least one IMAP server (Novell GroupWise) |