"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/Mail/SpamAssassin/Plugin/SPF.pm" between
Mail-SpamAssassin-3.4.4.tar.bz2 and Mail-SpamAssassin-3.4.5.tar.bz2

About: SpamAssassin is a mail filter that uses a wide range of heuristic tests on mail headers and body text to identify "spam" (also known as unsolicited commercial email) incl. Bayesian (statistical) spam filter and several internet-based realtime blacklists.

SPF.pm  (Mail-SpamAssassin-3.4.4.tar.bz2):SPF.pm  (Mail-SpamAssassin-3.4.5.tar.bz2)
skipping to change at line 116 skipping to change at line 116
whitelist_from_spf joe@example.com fred@example.com whitelist_from_spf joe@example.com fred@example.com
whitelist_from_spf *@example.com whitelist_from_spf *@example.com
=item def_whitelist_from_spf user@example.com =item def_whitelist_from_spf user@example.com
Same as C<whitelist_from_spf>, but used for the default whitelist entries Same as C<whitelist_from_spf>, but used for the default whitelist entries
in the SpamAssassin distribution. The whitelist score is lower, because in the SpamAssassin distribution. The whitelist score is lower, because
these are often targets for spammer spoofing. these are often targets for spammer spoofing.
=item unwhitelist_from_spf user@example.com
Used to remove a C<whitelist_from_spf> or C<def_whitelist_from_spf> entry.
The specified email address has to match exactly the address previously used.
Useful for removing undesired default entries from a distributed configuration
by a local or site-specific configuration or by C<user_prefs>.
=cut =cut
push (@cmds, { push (@cmds, {
setting => 'whitelist_from_spf', setting => 'whitelist_from_spf',
type => $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST type => $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST
}); });
push (@cmds, { push (@cmds, {
setting => 'def_whitelist_from_spf', setting => 'def_whitelist_from_spf',
type => $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST type => $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST
}); });
push (@cmds, {
setting => 'unwhitelist_from_spf',
type => $Mail::SpamAssassin::Conf::CONF_TYPE_ADDRLIST,
code => sub {
my ($self, $key, $value, $line) = @_;
unless (defined $value && $value !~ /^$/) {
return $Mail::SpamAssassin::Conf::MISSING_REQUIRED_VALUE;
}
unless ($value =~ /^(?:\S+(?:\s+\S+)*)$/) {
return $Mail::SpamAssassin::Conf::INVALID_VALUE;
}
$self->{parser}->remove_from_addrlist('whitelist_from_spf',
split (/\s+/, $value));
$self->{parser}->remove_from_addrlist('def_whitelist_from_spf',
split (/\s+/, $value));
}
});
=back =back
=head1 ADMINISTRATOR OPTIONS =head1 ADMINISTRATOR OPTIONS
=over 4 =over 4
=item spf_timeout n (default: 5) =item spf_timeout n (default: 5)
How many seconds to wait for an SPF query to complete, before scanning How many seconds to wait for an SPF query to complete, before scanning
continues without the SPF result. A numeric value is optionally suffixed continues without the SPF result. A numeric value is optionally suffixed
 End of changes. 2 change blocks. 
0 lines changed or deleted 26 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)