Skip to content

Commit

Permalink
imapc: Don't use fetch-fix-broken-mails for NO [LIMIT] FETCH replies
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Jan 28, 2016
1 parent b894793 commit 740e369
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/lib-storage/index/imapc/imapc-mail-fetch.c
Expand Up @@ -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;
Expand Down

0 comments on commit 740e369

Please sign in to comment.