changeset 19664:d6561d5a8fb4

imapc: Don't use fetch-fix-broken-mails for NO [LIMIT] FETCH replies
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Thu, 28 Jan 2016 17:29:57 +0200
parents befd1785a11f
children cb104cf148af
files src/lib-storage/index/imapc/imapc-mail-fetch.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/imapc/imapc-mail-fetch.c	Thu Jan 28 17:15:20 2016 +0200
+++ b/src/lib-storage/index/imapc/imapc-mail-fetch.c	Thu Jan 28 17:29:57 2016 +0200
@@ -31,8 +31,11 @@
 			break;
 		}
 		if (reply->resp_text_key != NULL &&
-		    strcasecmp(reply->resp_text_key, IMAP_RESP_CODE_SERVERBUG) == 0) {
-			/* this is a temporary error, retrying should work. */
+		    (strcasecmp(reply->resp_text_key, IMAP_RESP_CODE_SERVERBUG) == 0 ||
+		     strcasecmp(reply->resp_text_key, IMAP_RESP_CODE_LIMIT) == 0)) {
+			/* this is a temporary error, retrying should work.
+			   Yahoo sends * BYE +
+			   NO [LIMIT] UID FETCH Rate limit hit. */
 		} else {
 			/* hopefully this is a permanent failure */
 			mail->fetch_ignore_if_missing = TRUE;