Mercurial > dovecot > core-2.2
diff src/lib-imap-storage/imap-msgpart.c @ 19886:63955a428a73
Use mail_set_cache_corrupted_reason() wherever possible.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 28 Feb 2016 21:07:27 +0200 |
parents | 0f22db71df7a |
children | 9b5fddcd1f68 |
line wrap: on
line diff
--- a/src/lib-imap-storage/imap-msgpart.c Sun Feb 28 21:05:48 2016 +0200 +++ b/src/lib-imap-storage/imap-msgpart.c Sun Feb 28 21:07:27 2016 +0200 @@ -763,11 +763,10 @@ if (imap_bodystructure_parse(bodystructure, pmail->data_pool, all_parts, &error) < 0) { - mail_storage_set_critical(mail->box->storage, + mail_set_cache_corrupted_reason(mail, + MAIL_FETCH_IMAP_BODYSTRUCTURE, t_strdup_printf( "Invalid message_part/BODYSTRUCTURE %s: %s", - bodystructure, error); - mail_set_cache_corrupted(mail, MAIL_FETCH_MESSAGE_PARTS); - mail_set_cache_corrupted(mail, MAIL_FETCH_IMAP_BODYSTRUCTURE); + bodystructure, error)); return -1; } return 0;