Skip to content

Commit

Permalink
imap: Fix FETCH SNIPPET
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sirainen committed Feb 19, 2018
1 parent 2f81657 commit 9e1a3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imap/imap-fetch-body.c
Expand Up @@ -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;
}

0 comments on commit 9e1a3a7

Please sign in to comment.