CatalystX::Usul::Model::MailAliases - Manipulate the mail aliases file
Describes v0.16.$Rev: 1 $
package YourApp; use Catalyst qw(ConfigComponents...); __PACKAGE__->config( 'Model::MailAliases' => { parent_classes => q(CatalystX::Usul::Model::MailAliases), domain_attributes => { root_update_cmd => q(path_to_suid_wrapper), }, }, );
Management model file the system mail alias file
Defines the following attributes
The path to the local copy of the mail alias file. Defaults to aliases in ctrldir
Creates a new instance of CatalystX::Usul::MailAliases
$alias_obj->create_or_update;
Creates a new mail alias or updates an existing one. Request object fields are:
The name of the alias to be created or updated
The comment associated with this alias
The logged in user name from the system
List of recipients
Checks the fields passed to it from the web form and calls create or /update on the domain model as appropriate
create
/update
$alias_obj->delete;
Deletes the specified mail alias
$alias_obj->aliases_form( $alias );
Stuffs the stash with the data used to render the web form used to display, create and update mail aliases
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.