Hello everybody,
I have the following problem with RoundCube. In some parts of emails it sends \n and in other parts \r\n\.
My RoundCube runs on Debian Etch, and sends mail through PHP's mail() command (no SMTP server set)
When the mail_header_delimiter setting is set to autodetect:
* headers are ended by \n
* headers moved to another line are split by \r\n
* newlines in content of the message are \r\n
This causes the error that when a header is split (with \r\n), some email programs see it as double newline and thus interpret it as end of header section.
Setting mail_header_delimiter to either \n or \r\n doesn't solve the problem. With \n the result is exactly the same as with auto detection.
With \r\n some more line endings are \r\n, but NOT ALL. Namely:
* the final newline of the message is \n
* newlines after Received, Delivered-To, Return-Path headers are \n
* Subject is terminated by \n (but if it's split across the lines, those are still \r\n).
It seems something is seriously messed up. As far as I remember this started when I made an update of locales in my Debian installation. But I might be wrong -- maybe I just didn't notice it earlier.
Please help!