| App-Addex documentation | Contained in the App-Addex distribution. |
App::Addex::Output::SpamAssassin - generate SpamAssassin whitelists from an address book
version 0.022
This plugin produces a file that contains a list of SpamAssassin whitelist declarations.
The valid configuration parameters for this plugin are:
filename - the filename to which to write the whitelists
App::Addex::Output::SpamAssassin is a App::Addex::Output::ToFile subclass, and inherits its methods.
$sa_outputter->process_entry($addex, $entry);
This method does the actual writing of configuration to the file.
Ricardo SIGNES, <rjbs@cpan.org>
Please report any bugs or feature requests through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Copyright 2006-2007 Ricardo Signes, all rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
| App-Addex documentation | Contained in the App-Addex distribution. |
#!/usr/bin/perl use strict; use warnings; package App::Addex::Output::SpamAssassin; use base qw(App::Addex::Output::ToFile);
our $VERSION = '0.022';
sub process_entry { my ($self, $addex, $entry) = @_; $self->output("whitelist_from $_") for grep { $_->sends } $entry->emails; }
1;