Thomas -Balu- Walter wrote:
On Wed, Mar 08, 2006 at 10:52:27PM +1100, Chris Fordham wrote:
Only problem with that is migration to a different server with a different
MTA or change of MTA on the current server. Any auto-detect suggestions anyone?Untested:
// Try to autodetect operating system and use the correct line endings // form mails $rcmail_config['mail_header_delimiter'] = "\n"; if (strtolower(substr(PHP_OS, 0, 3)=='win')) $rcmail_config['mail_header_delimiter'] = "\r\n"; if (strtolower(substr(PHP_OS, 0, 3)=='mac')) // not sure about Macs - anyone? $rcmail_config['mail_header_delimiter'] = "\r";
I run RoundCube with "\r\n" on my Mac. Since it has a BSD/Unix core I guess it should also work with "\n". Will test that later on.
// allow user to override if autodetection fails: // $rcmail_config['mail_header_delimiter'] = "\r\n";
Balu
Regards, Thomas