Mercurial > dovecot > original-hg > dovecot-1.2
diff src/imap/cmd-append.c @ 7031:4b51ee73ed51 HEAD
Removed v_start_offset parameter from i_stream_create_limit(). We'll always
use input->v_offset now.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 22 Dec 2007 05:04:46 +0200 |
parents | b83be2b6ac8f |
children | 097c70cfa55e |
line wrap: on
line diff
--- a/src/imap/cmd-append.c Sat Dec 22 04:48:33 2007 +0200 +++ b/src/imap/cmd-append.c Sat Dec 22 05:04:46 2007 +0200 @@ -191,9 +191,7 @@ /* we have to read the nonsynced literal so we don't treat the message data as commands. */ - ctx->input = i_stream_create_limit(ctx->client->input, - ctx->client->input->v_offset, - ctx->msg_size); + ctx->input = i_stream_create_limit(ctx->client->input, ctx->msg_size); ctx->message_input = TRUE; ctx->cmd->func = cmd_append_continue_cancel; @@ -330,9 +328,7 @@ } /* save the mail */ - ctx->input = i_stream_create_limit(client->input, - client->input->v_offset, - ctx->msg_size); + ctx->input = i_stream_create_limit(client->input, ctx->msg_size); ret = mailbox_save_init(ctx->t, flags, keywords, internal_date, timezone_offset, NULL, ctx->input, FALSE, &ctx->save_ctx);