~ubuntu-branches/ubuntu/lucid/spamassassin/lucid-proposed

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/Plugin/RelayCountry.pm

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville, Ubuntu Merge-o-Matic, Laurent Bigonville
  • Date: 2006-07-31 15:40:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060731154008-j37ulp5pgfkddegw
Tags: 3.1.3-1ubuntu1
[ Ubuntu Merge-o-Matic ]
* Merge from debian unstable.

[ Laurent Bigonville ]
* fix debian/control.
* drop debian/patches/40_fix_dns_issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
By the RelayCountry plugin attempts to determine the domain country
28
28
codes of each relay used in the delivery path of messages and add that
29
 
information to the message metadata as "X-Relay-Countries".
 
29
information to the message metadata as "X-Relay-Countries", or 
 
30
the C<_RELAYCOUNTRY_> header markup.
30
31
 
31
32
=head1 REQUIREMENT
32
33
 
87
88
  return 1;
88
89
}
89
90
 
 
91
sub parsed_metadata {
 
92
  my ($self, $opts) = @_;
 
93
  $opts->{permsgstatus}->set_tag ("RELAYCOUNTRY",
 
94
          $opts->{permsgstatus}->get_message->get_metadata('X-Relay-Countries'));
 
95
  return 1;
 
96
}
 
97
 
90
98
1;