Mailing List Archive

svn commit: r433146 - /spamassassin/branches/3.1/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
Author: sidney
Date: Sun Aug 20 21:18:02 2006
New Revision: 433146

URL: http://svn.apache.org/viewvc?rev=433146&view=rev
Log:
bug 5022: recognize Received header from a local command line call to sendmail

Modified:
spamassassin/branches/3.1/lib/Mail/SpamAssassin/Message/Metadata/Received.pm

Modified: spamassassin/branches/3.1/lib/Mail/SpamAssassin/Message/Metadata/Received.pm
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/lib/Mail/SpamAssassin/Message/Metadata/Received.pm?rev=433146&r1=433145&r2=433146&view=diff
==============================================================================
--- spamassassin/branches/3.1/lib/Mail/SpamAssassin/Message/Metadata/Received.pm (original)
+++ spamassassin/branches/3.1/lib/Mail/SpamAssassin/Message/Metadata/Received.pm Sun Aug 20 21:18:02 2006
@@ -1079,6 +1079,11 @@
# (8.12.11/8.12.11/Submit) id iBADHRP6011034; Fri, 10 Dec 2004 13:17:27 GMT
if (/^from localhost \(localhost \[\[UNIX: localhost\]\]\) by /) { return; }

+ # header produced by command line /usr/bin/sendmail -t -f username@example.com
+ # Received: (from username@localhost) by home.example.com
+ # (8.12.11/8.12.11/Submit) id iBADHRP6011034; Fri, 10 Dec 2004 13:17:27 GMT
+ if (/^\(from \S+\@localhost\) by \S+ /) { return; }
+
# Received: Message by Barricade wilhelm.eyp.ee with ESMTP id h1I7hGU06122 for <spamassassin-talk@lists.sourceforge.net>; Tue, 18 Feb 2003 09:43:16 +0200
if (/^Message by /) {
return; # whatever