Quoting barryp@???:
> I'm attaching a patch that I believe does the trick. Instead of just
> blindly adding a '\r' whenever a '\n' is encountered, this will have Exim
> check that the previous character it processed wasn't already a '\r'.
>
> It's complicated by how Exim breaks messages down into chunks and has to
> watch for things that need escaping, but I think I followed how that all
> works.
>
> --
> [ patch-src_transport.c of type application/octet-stream deleted ]
Oops, no attachments allowed? Here's a URL:
http://barryp.org/misc/patch-src_transport.c.txt
Barry