]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imapc: Don't use fetch-fix-broken-mails for NO [LIMIT] FETCH replies
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 28 Jan 2016 15:29:57 +0000 (17:29 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 28 Jan 2016 15:31:26 +0000 (17:31 +0200)
src/lib-storage/index/imapc/imapc-mail-fetch.c

index 5bd5d81002bb9b2f002867ff6345479791665e3b..5a7bb5dfc4db85187b09f0c8e8d904eeffef4317 100644 (file)
@@ -31,8 +31,11 @@ static void imapc_mail_set_failure(struct imapc_mail *mail,
                        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;