rn / n

Thomas -Balu- Walter list+roundcube-dev at b-a-l-u.de
Wed Mar 8 13:17:35 CET 2006


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";

// allow user to override if autodetection fails:
// $rcmail_config['mail_header_delimiter'] = "\r\n";

     Balu




More information about the Dev mailing list