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/05/03 19:58:56 UTC
svn commit: r399368 - in /spamassassin/trunk/lib/Mail/SpamAssassin: Conf.pm
PerMsgStatus.pm
Author: felicity
Date: Wed May 3 10:58:52 2006
New Revision: 399368
URL: http://svn.apache.org/viewcvs?rev=399368&view=rev
Log:
bug 4888: add in a _HEADER(...)_ tag to include information from headers
Modified:
spamassassin/trunk/lib/Mail/SpamAssassin/Conf.pm
spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/Conf.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/Conf.pm?rev=399368&r1=399367&r2=399368&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/Conf.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/Conf.pm Wed May 3 10:58:52 2006
@@ -2756,6 +2756,8 @@
_REPORT_ terse report of tests hit (for header reports)
_SUMMARY_ summary of tests hit for standard report (for body reports)
_CONTACTADDRESS_ contents of the 'report_contact' setting
+ _HEADER(NAME)_ includes the value of a message header. value is the same
+ as is found for header rules (see elsewhere in this doc)
If a tag reference uses the name of a tag which is not in this list or defined
by a loaded plugin, the reference will be left intact and not replaced by any
Modified: spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
URL: http://svn.apache.org/viewcvs/spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm?rev=399368&r1=399367&r2=399368&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm Wed May 3 10:58:52 2006
@@ -1270,6 +1270,11 @@
return "\n" . ($self->{tag_data}->{REPORT} || "");
},
+ HEADER => sub {
+ my $hdr = shift || return;
+ return $self->get($hdr);
+ },
+
);
my $data = "";