From 740e369c027c3589f4074e7ea0a51204082853cb Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Thu, 28 Jan 2016 17:29:57 +0200 Subject: [PATCH] imapc: Don't use fetch-fix-broken-mails for NO [LIMIT] FETCH replies --- src/lib-storage/index/imapc/imapc-mail-fetch.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib-storage/index/imapc/imapc-mail-fetch.c b/src/lib-storage/index/imapc/imapc-mail-fetch.c index 5bd5d81002..5a7bb5dfc4 100644 --- a/src/lib-storage/index/imapc/imapc-mail-fetch.c +++ b/src/lib-storage/index/imapc/imapc-mail-fetch.c @@ -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;