Skip to content

Commit

Permalink
imap: If snippet is not available return NIL
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse authored and sirainen committed Feb 19, 2018
1 parent 9ac2679 commit 447d812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/imap/imap-fetch-body.c
Expand Up @@ -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 {
/*
Expand All @@ -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;
}

Expand Down

0 comments on commit 447d812

Please sign in to comment.