From: Timo Sirainen Date: Sat, 17 May 2003 09:16:16 +0000 (+0300) Subject: If there's no limit in stream, don't fail with "unexpected EOF". X-Git-Tag: 1.1.alpha1~4629 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e958c5f6a1d49bb6e769fe56eebb73e31aef36f;p=thirdparty%2Fdovecot%2Fcore.git If there's no limit in stream, don't fail with "unexpected EOF". --HG-- branch : HEAD --- diff --git a/src/lib-storage/mail-save.c b/src/lib-storage/mail-save.c index b3199555fd..c685b97750 100644 --- a/src/lib-storage/mail-save.c +++ b/src/lib-storage/mail-save.c @@ -167,7 +167,8 @@ int mail_storage_save(struct mail_storage *storage, const char *path, errno = input->stream_errno; if (errno == 0) { /* EOF */ - if (input->v_offset != input->v_limit) { + if (input->v_offset != input->v_limit && + input->v_limit != 0) { /* too early */ mail_storage_set_error(storage, "Unexpected EOF");