> I've managed to get it working with the following patch. > There may be a better way, deeper in the code, to do it. Timo or > Johannes ... any sugestions? > > --- dovecot-antispam/mailtrain.c 2008-04-19 22:20:32.000000000 +0100 > +++ dovecot-antispam-qmail/mailtrain.c 2008-04-19 22:25:45.000000000 +0100 > @@ -274,7 +274,8 @@ > mail_storage_set_error(t->box->storage, > "Failed to write line to > temp"); > goto failed_to_copy; > - } > + } else > + o_stream_send_str(outstream, "\n");
Interesting. I assume that i_stream_read_next_line() will strip out the trailing [\r]\n and o_stream_send_str() doesn't add one. I would prefer a patch using o_stream_sendv(), but I'm not sure whether to send \r\n or \n. johannes
signature.asc
Description: This is a digitally signed message part
