Change Received header ordering when using SSL

This commit is contained in:
Priyadi Iman Nurcahyo 2015-01-13 05:40:16 +00:00
parent 371a9bf4a0
commit 3ef92f214e

View File

@ -843,7 +843,7 @@ sub received_line {
$smtp .= "S" if $esmtp; # RFC3848 $smtp .= "S" if $esmtp; # RFC3848
$sslheader = "(" $sslheader = "("
. $self->connection->notes('tls_socket')->get_cipher() . $self->connection->notes('tls_socket')->get_cipher()
. " encrypted) "; . " encrypted)";
} }
if (defined $self->{_auth} && $self->{_auth} == OK) { if (defined $self->{_auth} && $self->{_auth} == OK) {
my $mech = $self->{_auth_mechanism}; my $mech = $self->{_auth_mechanism};
@ -869,7 +869,7 @@ sub received_line {
. $self->config('me') . $self->config('me')
. " (qpsmtpd/" . " (qpsmtpd/"
. $self->version . $self->version
. ") with $sslheader$smtp; " . ") with $smtp $sslheader; "
. (strftime('%a, %d %b %Y %H:%M:%S %z', localtime)); . (strftime('%a, %d %b %Y %H:%M:%S %z', localtime));
} }
$self->transaction->header->add('Received', $header_str, 0); $self->transaction->header->add('Received', $header_str, 0);