diff options
-rw-r--r-- | mailtrain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mailtrain.c b/mailtrain.c index 7156805..fe2868d 100644 --- a/mailtrain.c +++ b/mailtrain.c @@ -288,7 +288,7 @@ int backend_handle_mail(struct mailbox_transaction_context *t, if (memcmp("From ", beginning, 5) == 0) { i_stream_read_next_line(mailstream); } else { - if (o_stream_send_str(outstream, "From ") < 0) { + if (o_stream_send(outstream, beginning, 5) != 5) { ret = -1; mail_storage_set_error(t->box->storage, ME(NOTPOSSIBLE) |