Mercurial > dovecot > core-2.2
changeset 22855:d90c7241317a
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
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 18 Feb 2018 00:53:12 +0200 |
parents | bc45ec187a5b |
children | e47f61de06b7 |
files | src/imap/imap-fetch-body.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-fetch-body.c Fri Feb 16 14:49:59 2018 +0200 +++ b/src/imap/imap-fetch-body.c Sun Feb 18 00:53:12 2018 +0200 @@ -667,7 +667,7 @@ } 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; }