Commit 012b6c7f 012b6c7facbd39596a7bf9e8ac61c732c87a236a by Sergey Poznyakoff

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).
1 parent 352c5e92
......@@ -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;
}
......