Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1808:36d0e23dc231 HEAD
BODY[HEADER] and RFC822.HEADER fetching was broken (why did it work before?..)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 06 Oct 2003 23:17:19 +0300 |
parents | 54d7fb9e0b72 |
children | 2683523cc575 |
files | src/imap/imap-fetch-body-section.c src/imap/imap-fetch.c |
diffstat | 2 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/imap-fetch-body-section.c Mon Oct 06 23:11:03 2003 +0300 +++ b/src/imap/imap-fetch-body-section.c Mon Oct 06 23:17:19 2003 +0300 @@ -317,7 +317,7 @@ if (o_stream_send_str(ctx->output, str) < 0) return FALSE; return message_send(ctx->output, input, size, - body->skip, body->max_size, NULL, + body->skip, send_size, NULL, !mail->has_no_nuls) >= 0; }
--- a/src/imap/imap-fetch.c Mon Oct 06 23:11:03 2003 +0300 +++ b/src/imap/imap-fetch.c Mon Oct 06 23:17:19 2003 +0300 @@ -177,7 +177,8 @@ return FALSE; return message_send(ctx->output, stream, &body_size, - 0, (uoff_t)-1, NULL, !mail->has_no_nuls) >= 0; + 0, body_size.virtual_size, NULL, + !mail->has_no_nuls) >= 0; } static int fetch_send_rfc822_header(struct imap_fetch_context *ctx, @@ -200,7 +201,8 @@ return FALSE; return message_send(ctx->output, stream, &hdr_size, - 0, (uoff_t)-1, NULL, !mail->has_no_nuls) >= 0; + 0, hdr_size.virtual_size, NULL, + !mail->has_no_nuls) >= 0; } static int fetch_send_rfc822_text(struct imap_fetch_context *ctx, @@ -224,7 +226,8 @@ i_stream_seek(stream, hdr_size.physical_size); return message_send(ctx->output, stream, &body_size, - 0, (uoff_t)-1, NULL, !mail->has_no_nuls) >= 0; + 0, body_size.virtual_size, NULL, + !mail->has_no_nuls) >= 0; } static int fetch_mail(struct imap_fetch_context *ctx, struct mail *mail)