- Fix Received headers to behave better with SpamAssassin (#1486513)

release-0.6
alecpl 15 years ago
parent e62346c9ba
commit 82c98e674d

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Fix Received headers to behave better with SpamAssassin (#1486513)
- Password: Make passwords encoding consistent with core, add 'password_charset' global option (#1486473) - Password: Make passwords encoding consistent with core, add 'password_charset' global option (#1486473)
- Fix adding contacts SQL error on mysql (#1486459) - Fix adding contacts SQL error on mysql (#1486459)
- Squirrelmail_usercopy: support reply-to field (#1486506) - Squirrelmail_usercopy: support reply-to field (#1486506)

@ -260,8 +260,8 @@ if ($CONFIG['http_received_header'])
$http_header .= ' ('. rcmail_encrypt_header($host) . ')'; $http_header .= ' ('. rcmail_encrypt_header($host) . ')';
} else { } else {
$http_header .= (($host != $hostname) ? $hostname : '[' . $host . ']'); $http_header .= (($host != $hostname) ? $hostname : '[' . $host . ']');
$http_header .= ' ('. ($host == $hostname ? '' : $hostname . ' ') . if ($host != $hostname)
'[' . $host .'])'; $http_header .= ' (['. $host .'])';
} }
$http_header .= $nldlm . ' via '; $http_header .= $nldlm . ' via ';
} }
@ -273,14 +273,14 @@ if ($CONFIG['http_received_header'])
$http_header .= ' ('. rcmail_encrypt_header($host) . ')'; $http_header .= ' ('. rcmail_encrypt_header($host) . ')';
} else { } else {
$http_header .= (($host != $hostname) ? $hostname : '[' . $host . ']'); $http_header .= (($host != $hostname) ? $hostname : '[' . $host . ']');
$http_header .= ' ('. ($host == $hostname ? '' : $hostname . ' ') . if ($host != $hostname)
'[' . $host .'])'; $http_header .= ' (['. $host .'])';
} }
// BY // BY
$http_header .= $nldlm . 'by ' . $_SERVER['HTTP_HOST']; $http_header .= $nldlm . 'by ' . $_SERVER['HTTP_HOST'];
// WITH // WITH
$http_header .= $nldlm . 'with ' . $_SERVER['SERVER_PROTOCOL'] . $http_header .= $nldlm . 'with HTTP (' . $_SERVER['SERVER_PROTOCOL'] .
' ('.$_SERVER['REQUEST_METHOD'] . '); ' . date('r'); ' '.$_SERVER['REQUEST_METHOD'] . '); ' . date('r');
$http_header = wordwrap($http_header, 69, $nldlm); $http_header = wordwrap($http_header, 69, $nldlm);
$headers['Received'] = $http_header; $headers['Received'] = $http_header;

Loading…
Cancel
Save