--- lib/Mail/SpamAssassin/Message/Metadata/Received.pm Fri Aug 12 02:38:46 2005 +++ lib/Mail/SpamAssassin/Message/Metadata/Received.pm Wed Dec 14 15:05:57 2005 @@ -94,7 +94,11 @@ my $IP_PRIVATE = IP_PRIVATE; my $LOCALHOST = LOCALHOST; - foreach my $line ( $msg->get_header('Received') ) { + my @rlines = $msg->get_header('Received'); + my @rlines2 = $msg->get_header('X-Received'); + push (@rlines,@rlines2); + + foreach my $line (@rlines) { # qmail-scanner support hack: we may have had one of these set from the # previous (read: more recent) Received header. if so, add it on to this