aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-04-11 16:49:41 +0200
committerJohannes Berg <johannes@sipsolutions.net>2009-04-11 16:49:41 +0200
commit6538e2b6b0007a281be3498bc16b89aaa14337ef (patch)
tree4bdcd745734e78b5bad5c08b8b37a7c6765aada3
parent3eaeb73dfd1e255342cb7bcf53e9653c0e3c4104 (diff)
downloaddovecot-antispam-6538e2b6b0007a281be3498bc16b89aaa14337ef.tar.gz
dovecot-antispam-6538e2b6b0007a281be3498bc16b89aaa14337ef.tar.xz
dovecot-antispam-6538e2b6b0007a281be3498bc16b89aaa14337ef.zip
mailtrain: send correct 5 bytes if message doesn't start with "From "
-rw-r--r--mailtrain.c2
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)