]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Empty lines were inserted in the middle of saved mails' headers.
authorTimo Sirainen <tss@iki.fi>
Tue, 3 Jun 2008 13:04:32 +0000 (16:04 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 3 Jun 2008 13:04:32 +0000 (16:04 +0300)
--HG--
branch : HEAD

src/lib-mail/istream-header-filter.c

index 20563a848109f11928cd0cc074d1d844b1bc80e6..4064c15d4ea02feacb7708fe6918efc58121ab34 100644 (file)
@@ -233,7 +233,7 @@ static ssize_t read_header(struct header_filter_istream *mstream)
                }
        }
 
-       if (!mstream->seen_eoh && mstream->add_missing_eoh) {
+       if (hdr_ret < 0 && !mstream->seen_eoh && mstream->add_missing_eoh) {
                mstream->seen_eoh = TRUE;
                add_eol(mstream);
        }