You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by km...@apache.org on 2013/02/08 16:24:53 UTC
svn commit: r1444065 - in /spamassassin/trunk:
lib/Mail/SpamAssassin/Message/Metadata/Received.pm
lib/Mail/SpamAssassin/Util/DependencyInfo.pm t/rcvd_parser.t
Author: kmcgrail
Date: Fri Feb 8 15:24:52 2013
New Revision: 1444065
URL: http://svn.apache.org/r1444065
Log:
DEBUG added to Makefile for input due to hang report
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
spamassassin/trunk/lib/Mail/SpamAssassin/Util/DependencyInfo.pm
spamassassin/trunk/t/rcvd_parser.t
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm?rev=1444065&r1=1444064&r2=1444065&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm Fri Feb 8 15:24:52 2013
@@ -874,12 +874,17 @@ sub parse_received_line {
# http://issues.apache.org/SpamAssassin/show_bug.cgi?id=2744#c14 :
# Received: from unknown (HELO feux01a-isp) (213.199.4.210) by totor.bouissou.net with SMTP; 1 Nov 2003 07:05:19 -0000
# Received: from adsl-207-213-27-129.dsl.lsan03.pacbell.net (HELO merlin.net.au) (Owner50@207.213.27.129) by totor.bouissou.net with SMTP; 10 Nov 2003 06:30:34 -0000
- if (/^(\S+) \((?:HELO|EHLO) ([^\)]*)\) \((\S*@)?\[?(${IP_ADDRESS})\]?\).* by (\S+) /)
+ if (/^(\S+) \((?:HELO|EHLO) ([^\)]*)\) \(([\S\@]*@)?\[?(${IP_ADDRESS})\]?\).* by (\S+) /)
{
$mta_looked_up_dns = 1;
- $rdns = $1; $helo = $2; $ident = (defined $3) ? $3 : '';
- $ip = $4; $by = $5;
- if ($ident) { $ident =~ s/\@$//; }
+ $rdns = $1;
+ $helo = $2;
+ $ident = (defined $3) ? $3 : '';
+ $ip = $4;
+ $by = $5;
+ if ($ident) {
+ $ident =~ s/\@$//;
+ }
goto enough;
}
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Util/DependencyInfo.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/Util/DependencyInfo.pm?rev=1444065&r1=1444064&r2=1444065&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Util/DependencyInfo.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Util/DependencyInfo.pm Fri Feb 8 15:24:52 2013
@@ -393,6 +393,7 @@ sub try_binary {
$errtype = 'is unknown for this platform';
} else {
$command = "which $bindef->{'binary'} 2>&1";
+ print "DEBUG: running $command\n";
$output = `$command`;
if (!defined $output || $output eq '') {
@@ -406,6 +407,7 @@ sub try_binary {
$installed = 1;
}
+ print "DEBUG: $command completed and output parsed\n";
}
Modified: spamassassin/trunk/t/rcvd_parser.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/rcvd_parser.t?rev=1444065&r1=1444064&r2=1444065&view=diff
==============================================================================
--- spamassassin/trunk/t/rcvd_parser.t (original)
+++ spamassassin/trunk/t/rcvd_parser.t Fri Feb 8 15:24:52 2013
@@ -18,7 +18,7 @@ if (-e 'test_dir') { # runnin
use lib '.'; use lib 't';
use SATest; sa_t_init("rcvd_parser");
-use Test; BEGIN { plan tests => 144 };
+use Test; BEGIN { plan tests => 145 };
use strict;
# format is:
@@ -469,7 +469,11 @@ my %data = (
#ADDED PER Bug 6783
'from 67.85.219.192 (NaSMail authenticated user john.doe) by webmail.example.com with HTTP; Fri, 30 Mar 2012 12:39:58 +0100 (BST)' =>
- '[ ip=67.85.219.192 rdns= helo= by=webmail.example.com ident= envfrom= id= auth=HTTP msa=0 ]'
+ '[ ip=67.85.219.192 rdns= helo= by=webmail.example.com ident= envfrom= id= auth=HTTP msa=0 ]',
+
+ #ADDED PER Bug 6900
+ 'from unknown (HELO ?151.80.38.67?) (myuser@mydomain.it@151.80.38.67) by mail.it-connect.it with SMTP; 28 Jan 2013 21:50:51 +0100' =>
+ '[ ip=151.80.38.67 rdns= helo=?151.80.38.67? by=mail.it-connect.it ident=myuser@mydomain.it envfrom= id= auth= msa=0 ]'
);