Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9062:694714d59cd9 HEAD
If FETCH gets too little message data, use "FETCH failed" disconnection reason.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 19 May 2009 13:37:31 -0400 |
parents | 3442cd45b502 |
children | 172cfd750a40 |
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 Tue May 19 13:36:33 2009 -0400 +++ b/src/imap/imap-fetch-body.c Tue May 19 13:37:31 2009 -0400 @@ -212,7 +212,7 @@ mailbox_get_name(ctx->mail->box), ctx->mail->uid, (uoff_t)sent, virtual_size); mail_set_cache_corrupted(ctx->mail, ctx->cur_size_field); - o_stream_close(output); + client_disconnect(ctx->client, "FETCH failed"); return -1; } @@ -274,7 +274,7 @@ "%"PRIuUOFF_T" vs %"PRIuUOFF_T, ctx->cur_name, mailbox_get_name(ctx->mail->box), ctx->mail->uid, ctx->cur_offset, ctx->cur_size); - o_stream_close(ctx->client->output); + client_disconnect(ctx->client, "FETCH failed"); return -1; }