Skip to content

Commit

Permalink
plugins: imapsieve: Don't log messages that disappear concurrently as…
Browse files Browse the repository at this point in the history
… an error.

This is now logged as a debug message instead.
  • Loading branch information
stephanbosch committed Mar 12, 2018
1 parent 066d989 commit 9d5416b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/plugins/imapsieve/imap-sieve-storage.c
Expand Up @@ -744,15 +744,11 @@ imap_sieve_mailbox_transaction_run(
uid = mevent->dest_mail_uid;

/* Select event message */
if (!mail_set_uid(mail, uid)) {
imap_sieve_mailbox_error(sbox,
"Failed to find message for Sieve event (UID=%llu)",
(unsigned long long)uid);
continue;
}

if (mail->expunged) {
if (!mail_set_uid(mail, uid) || mail->expunged) {
/* already gone for some reason */
imap_sieve_mailbox_debug(sbox,
"Message for Sieve event gone (UID=%llu)",
(unsigned long long)uid);
continue;
}

Expand Down

0 comments on commit 9d5416b

Please sign in to comment.