]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap: If snippet is not available return NIL
authorAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 18 Feb 2018 16:11:18 +0000 (18:11 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 19 Feb 2018 11:37:55 +0000 (13:37 +0200)
src/imap/imap-fetch-body.c

index 6cfe28d8cf44e569b59e6dcb2dc1e360bfcc9cbe..7142ae6ef6d6ac8e67dd45e62144f7656ba5cf59 100644 (file)
@@ -610,6 +610,7 @@ fetch_snippet(struct imap_fetch_context *ctx, struct mail *mail,
                return -1;
        } else if (lazy) {
                /* not in cache && lazy => give up */
+               str_append(ctx->state.cur_str, "SNIPPET (FUZZY NIL)");
                return 1;
        } else {
                /*
@@ -621,6 +622,7 @@ fetch_snippet(struct imap_fetch_context *ctx, struct mail *mail,
                 * sufficiently convoluted this else branch serves to
                 * document it.
                 */
+               str_append(ctx->state.cur_str, "SNIPPET (FUZZY NIL)");
                return 1;
        }