From: Aki Tuomi Date: Sun, 18 Feb 2018 16:11:18 +0000 (+0200) Subject: imap: If snippet is not available return NIL X-Git-Tag: 2.2.35~48 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa4adc08008b45db04adcfa79527748a58416fc7;p=thirdparty%2Fdovecot%2Fcore.git imap: If snippet is not available return NIL --- diff --git a/src/imap/imap-fetch-body.c b/src/imap/imap-fetch-body.c index 6cfe28d8cf..7142ae6ef6 100644 --- a/src/imap/imap-fetch-body.c +++ b/src/imap/imap-fetch-body.c @@ -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; }