Skip to content

Commit

Permalink
imapc: mail_get_stream() shouldn't return cached hdr_size
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Sep 15, 2016
1 parent 9d0e247 commit f75889f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib-storage/index/imapc/imapc-mail.c
Expand Up @@ -296,6 +296,10 @@ imapc_mail_get_stream(struct mail *_mail, bool get_body,
mail->imail.data.stream != NULL) {
/* we've fetched the header, but we need the body now too */
index_mail_close_streams(&mail->imail);
/* don't re-use any cached header sizes. we may be
intentionally downloading the full body because the header
wasn't returned correctly (e.g. pop3-migration does this) */
data->hdr_size_set = FALSE;
}

if (data->stream == NULL) {
Expand Down

0 comments on commit f75889f

Please sign in to comment.