summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-05-02 22:33:08 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-05-02 22:33:08 +0300
commit6f6681b1906430011403bceb36b992c44955ad50 (patch)
tree80ce4763ce34f8a0e97cdac115bd6718cd882581
parentb4a02de17f416199ce90f030f8b013f0a8651b90 (diff)
downloadmailutils-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.c2
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;
}

Return to:

Send suggestions and report system problems to the System administrator.