Sympa::Aliases(3Sympa) | sympa 6.2.60 | Sympa::Aliases(3Sympa) |
Sympa::Aliases - Base class for alias management
package Sympa::Aliases::FOO; use base qw(Sympa::Aliases); sub check { ... } sub add { ... } sub del { ... } 1;
This module is the base class for subclasses to manage list aliases of Sympa.
Returns one of appropriate subclasses according to $type:
For invalid types returns "undef".
Optional "key => value" pairs are included in the instance as hash entries.
Parameters:
Returns:
True value if one of addresses exists. 0 if none found. "undef" if something wrong happened.
By default, this method always returns 0.
Parameters:
Returns:
1 if installation succeeded. 0 if there were no aliases to be installed. "undef" if not applicable.
By default, this method always returns 0.
Parameters:
Returns:
1 if removal succeeded. 0 if there were no aliases to be removed. "undef" if not applicable.
By default, this method always returns 0.
TBD.
Parameteres:
Returns:
If check fails, an array including information of errors. If it succeeds, empty array.
Note: This should be used to check name of list to be created. Names of existing lists may not necessarily pass checks by this function.
This function was added on Sympa 6.2.37b.2.
Sympa::Aliases::CheckSMTP, Sympa::Aliases::External, Sympa::Aliases::Template.
alias_manager.pl as a program to automate alias management appeared on Sympa 3.1b.13.
Sympa::Aliases module as an OO-based class appeared on Sympa 6.2.23b, and it obsoleted alias_manager.pl.
2021-02-07 | 6.2.60 |