You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2006/09/17 06:58:07 UTC
svn commit: r447017 -
/spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
Author: felicity
Date: Sat Sep 16 21:58:06 2006
New Revision: 447017
URL: http://svn.apache.org/viewvc?view=rev&rev=447017
Log:
during Received header parsing, we need an IP address, so if there doesn't appear to be one in the header, don't bother running the rest of the code.
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
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?view=diff&rev=447017&r1=447016&r2=447017
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Message/Metadata/Received.pm Sat Sep 16 21:58:06 2006
@@ -331,6 +331,9 @@
# Received: Message by Barricade wilhelm.eyp.ee with ESMTP id h1I7hGU06122 for <sp...@lists.sourceforge.net>; Tue, 18 Feb 2003 09:43:16 +0200
return 0 if (!/^\(?from /i);
+ # we need an IP address, so if we don't see one in there, don't bother wasting time.
+ return 0 if (!/${IP_ADDRESS}/);
+
# from www-data by wwwmail.documenta.de (Exim 4.50) with local for <ex...@vandinter.org> id 1GFbZc-0006QV-L8; Tue, 22 Aug 2006 21:06:04 +0200
# from server.yourhostingaccount.com with local for example@vandinter.org id 1GDtdl-0002GU-QE (8710); Thu, 17 Aug 2006 21:59:17 -0400
return 0 if /\bwith local for\b/;