Name
CatalystX::Usul::Model::MailAliases - Manipulate the mail aliases file
Version
Describes v0.9.$Rev: 0 $
Synopsis
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), }, }, );
Description
Management model file the system mail alias file
Configuration and Environment
Defines the following attributes
- aliases_path
-
The path to the local copy of the mail alias file. Defaults to aliases in ctrldir
Subroutines/Methods
build_per_context_instance
Creates a new instance of CatalystX::Usul::MailAliases
create_or_update
$alias_obj->create_or_update;
Creates a new mail alias or updates an existing one. Request object fields are:
- alias_name
-
The name of the alias to be created or updated
- comment
-
The comment associated with this alias
- owner
-
The logged in user name from the system
- recipients
-
List of recipients
Checks the fields passed to it from the web form and calls create
or /update
on the domain model as appropriate
delete
$alias_obj->delete;
Deletes the specified mail alias
mail_aliases_form
$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
Diagnostics
None
Dependencies
- CatalystX::Usul::MailAliases
- CatalystX::Usul::Model
- CatalystX::Usul::TraitFor::Model::QueryingRequest
- CatalystX::Usul::TraitFor::Model::StashHelper
- CatalystX::Usul::Moose
- CatalystX::Usul::Constraints
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2013 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