App::Addex::Output::SpamAssassin - generate SpamAssassin whitelists from an address book


App-Addex documentation Contained in the App-Addex distribution.

Index


Code Index:

NAME

Top

App::Addex::Output::SpamAssassin - generate SpamAssassin whitelists from an address book

VERSION

Top

version 0.022

DESCRIPTION

Top

This plugin produces a file that contains a list of SpamAssassin whitelist declarations.

CONFIGURATION

Top

The valid configuration parameters for this plugin are:

  filename - the filename to which to write the whitelists

METHODS

Top

App::Addex::Output::SpamAssassin is a App::Addex::Output::ToFile subclass, and inherits its methods.

process_entry

  $sa_outputter->process_entry($addex, $entry);

This method does the actual writing of configuration to the file.

AUTHOR

Top

Ricardo SIGNES, <rjbs@cpan.org>

BUGS

Top

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

Top


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;