roundcubemail/program/lib/Roundcube/rcube_config.php
public function header_delimiter()
    {
        // use the configured delimiter for headers
        if (!empty($this->prop['mail_header_delimiter'])) {
            $delim = $this->prop['mail_header_delimiter'];
            if ($delim == "\n" || $delim == "\r\n") {
                return $delim;
            }
            else {
                rcube::raise_error(array(
                    'code' => 500, 'type' => 'php',
                    'file' => __FILE__, 'line' => __LINE__,
                    'message' => "Invalid mail_header_delimiter setting"
                ), true, false);
            }
        }

        $php_os = strtolower(substr(PHP_OS, 0, 3));

        if ($php_os == 'win')
            return "\r\n";

        if ($php_os == 'mac')
            return "\r\n";

        return "\n";
    }
public function header_delimiter()
    {
        // use the configured delimiter for headers
        if (!empty($this->prop['mail_header_delimiter'])) {
            $delim = $this->prop['mail_header_delimiter'];
            if ($delim == "\n" || $delim == "\r\n") {
                return $delim;
            }
            else {
                rcube::raise_error(array(
                    'code' => 500, 'type' => 'php',
                    'file' => __FILE__, 'line' => __LINE__,
                    'message' => "Invalid mail_header_delimiter setting"
                ), true, false);
            }
        }

        $php_os = strtolower(substr(PHP_OS, 0, 3));

        if ($php_os == 'win')
            return "\r\n";

        if ($php_os == 'mac')
            return "\r\n";

        return "\n";
    }
public function header_delimiter ( ) { // use the configured delimiter for headers if ( ! empty ( $ this -> prop [ 'mail_header_delimiter' ] ) ) { $ delim = $ this -> prop [ 'mail_header_delimiter' ] ; if ( $ delim == "\n" || $ delim == "\r\n" ) { return $ delim ; } else { rcube :: raise_error ( array ( 'code' => 500 , 'type' => 'php' , 'file' => __FILE__ , 'line' => __LINE__ , 'message' => "Invalid mail_header_delimiter setting" ) , true , false ) ; } } $ php_os = strtolower ( substr ( PHP_OS , 0 , 3 ) ) ; if ( $ php_os == 'win' ) return "\r\n" ; if ( $ php_os == 'mac' ) return "\r\n" ; return "\n" ; }
Try to autodetect operating system and find the correct line endings

@return string The appropriate mail header delimiter
@deprecated Since 1.3 we don't use mail()
Try to autodetect operating system and find the correct line endings