From 9e1a3a76dd3a29569a2e19477d2235fecc2a564c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 18 Feb 2018 00:53:12 +0200 Subject: [PATCH] imap: Fix FETCH SNIPPET 1) _BUFFERED flag wasn't set, which caused a missing space before the "SNIPPET". 2) It caused \Seen flag to be added to the mail --- src/imap/imap-fetch-body.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imap/imap-fetch-body.c b/src/imap/imap-fetch-body.c index 72833e950c..bb4cb99126 100644 --- a/src/imap/imap-fetch-body.c +++ b/src/imap/imap-fetch-body.c @@ -668,7 +668,7 @@ bool imap_fetch_snippet_init(struct imap_fetch_init_context *ctx) } ctx->fetch_ctx->fetch_data |= MAIL_FETCH_BODY_SNIPPET; - ctx->fetch_ctx->flags_update_seen = TRUE; - imap_fetch_add_handler(ctx, 0, "NIL", fetch_snippet, (void *) lazy); + imap_fetch_add_handler(ctx, IMAP_FETCH_HANDLER_FLAG_BUFFERED, + "NIL", fetch_snippet, (void *) lazy); return TRUE; }