NAME

App::Addex - generate mail tool configuration from an address book

VERSION

version 0.022

DESCRIPTION

This module iterates through all the entries in an address book and produces configuration file based on the entries in the address book, using configured output plugins.

It is meant to be run with the addex command, which is bundled as part of this software distribution.

METHODS

Achtung! The API to this code may very well change. It is almost certain to be broken into smaller pieces, to support alternate sources of entries, and it might just get plugins.

new

my $addex = App::Addex->new(\%arg);

This method returns a new Addex.

Valid parameters are:

classes    - a hashref of plugin/class pairs, described below

Valid keys for the classes parameter are:

addressbook - the App::Addex::AddressBook subclass to use (required)
output      - an array of output producers (required)

For each class given, an entry in %arg may be given, which will be used to initialize the plugin before use.

addressbook

my $abook = $addex->addressbook;

This method returns the App::Addex::AddressBook object.

output_plugins

This method returns all of the output plugin objects.

entries

This method returns all the entries to be processed. By default it is delegated to the address book object. This method may change a good bit in the future, as we really want an iterator, not just a list.

run

App::Addex->new({ ... })->run;

This method performs all the work expected of an Addex: it iterates through the entries, invoking the output plugins for each one.

AUTHOR

Ricardo SIGNES, <rjbs@cpan.org>

BUGS

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

Copyright 2006-2007 Ricardo Signes.

This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.