You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2006/04/06 00:47:52 UTC
svn commit: r391839 -
/spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm
Author: jm
Date: Wed Apr 5 15:47:51 2006
New Revision: 391839
URL: http://svn.apache.org/viewcvs?rev=391839&view=rev
Log:
bug 3815: fix RELAYCOUNTRY tag so that it really works this time
Modified:
spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm
Modified: spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm
URL: http://svn.apache.org/viewcvs/spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm?rev=391839&r1=391838&r2=391839&view=diff
==============================================================================
--- spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm (original)
+++ spamassassin/branches/3.1/lib/Mail/SpamAssassin/Plugin/RelayCountry.pm Wed Apr 5 15:47:51 2006
@@ -82,10 +82,16 @@
}
chop $countries;
- $msg->{tag_data}{RELAYCOUNTRY} = $countries;
$msg->put_metadata("X-Relay-Countries", $countries);
dbg("metadata: X-Relay-Countries: $countries");
+ return 1;
+}
+
+sub parsed_metadata {
+ my ($self, $opts) = @_;
+ $opts->{permsgstatus}->set_tag ("RELAYCOUNTRY",
+ $opts->{permsgstatus}->get_message->get_metadata('X-Relay-Countries'));
return 1;
}