]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: Don't fail index build if trying to index a message that is already expunged.
authorTimo Sirainen <tss@iki.fi>
Thu, 4 Aug 2011 13:42:35 +0000 (16:42 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 4 Aug 2011 13:42:35 +0000 (16:42 +0300)
src/plugins/fts/fts-build.c

index 2e7a1a5fb2ea78725ca3096ab0fbd4eb5d95e202..e3bcebc7ca1dc049ff03ef769b9116341e805c94 100644 (file)
@@ -203,7 +203,7 @@ int fts_build_mail(struct fts_storage_build_context *ctx, struct mail *mail)
        ctx->uid = mail->uid;
 
        if (mail_get_stream(mail, NULL, NULL, &input) < 0)
-               return -1;
+               return mail->expunged ? 0 : -1;
 
        prev_part = NULL;
        parser = message_parser_init(pool_datastack_create(), input,