Mercurial > dovecot > core-2.2
changeset 20537:6c073e6f21f3
lazy-expunge: If lazy-expunge transaction failed already, stop further expunges.
Most importantly if the lazy-expunge mailbox opening fails, we don't now
retry opening the mailbox for each expunged mail.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Mon, 25 Jul 2016 14:09:38 -0400 |
parents | f0e431db73d8 |
children | 6923b9af73c5 |
files | src/plugins/lazy-expunge/lazy-expunge-plugin.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/lazy-expunge/lazy-expunge-plugin.c Sun Jul 24 18:26:50 2016 -0400 +++ b/src/plugins/lazy-expunge/lazy-expunge-plugin.c Mon Jul 25 14:09:38 2016 -0400 @@ -281,6 +281,9 @@ bool moving = mmail->moving; int ret; + if (lt->delayed_error != MAIL_ERROR_NONE) + return; + /* Clear this in case the mail is used for non-move later on. */ mmail->moving = FALSE;