diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-05-02 22:33:08 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2010-05-02 22:33:08 +0300 |
commit | 6f6681b1906430011403bceb36b992c44955ad50 (patch) | |
tree | 80ce4763ce34f8a0e97cdac115bd6718cd882581 | |
parent | b4a02de17f416199ce90f030f8b013f0a8651b90 (diff) | |
download | mailutils-6f6681b1906430011403bceb36b992c44955ad50.tar.gz mailutils-6f6681b1906430011403bceb36b992c44955ad50.tar.bz2 |
Fix for mbox read/write consistency.
* libproto/mbox/mbox.c (append_message_to_stream): Add \n after each
message (scanner relies on this to determine message sizes).
-rw-r--r-- | libproto/mbox/mbox.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libproto/mbox/mbox.c b/libproto/mbox/mbox.c index 5bb043cdf..98d288d0b 100644 --- a/libproto/mbox/mbox.c +++ b/libproto/mbox/mbox.c @@ -1087,6 +1087,8 @@ append_message_to_stream (mu_stream_t ostr, mu_message_t msg, } status = mu_stream_copy (ostr, istr, 0); mu_stream_destroy (&istr); + if (status == 0) + status = mu_stream_write (ostr, "\n", 1, NULL); return status; } |