From 280f1a0ab139ee29ea6d5be63775283465892e16 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Sun, 18 Feb 2018 18:11:18 +0200 Subject: [PATCH] imap: If snippet is not available return NIL --- src/imap/imap-fetch-body.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/imap/imap-fetch-body.c b/src/imap/imap-fetch-body.c index 54b76a29e2..823e524b62 100644 --- a/src/imap/imap-fetch-body.c +++ b/src/imap/imap-fetch-body.c @@ -611,6 +611,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 { /* @@ -622,6 +623,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; }