Sympa::Aliases(3Sympa)
π NAME π
Sympa::Aliases β the base class for alias management, bestie π
β¨ SYNOPSIS β¨
package Sympa::Aliases::FOO;
use base qw(Sympa::Aliases);
sub check { ... }
sub add { ... }
sub del { ... }
1;
π¦ DESCRIPTION π¦
So here's the tea, bestie: this module is the base class for all the subclasses that manage list aliases for Sympa. It's giving "parent friend who holds the group chat together" β everybody else inherits the vibe. π«Ά
π Methods
new ( $type, [ key => value, ... ] )
Constructor energy. It creates a brand new instance of Sympa::Aliases, and depending on what you hand it as $type, it returns one of the appropriate subclasses:
'none'β literally no aliases management. It's giving "not my job, not my problem" π- Full path to executable β use an external program to manage aliases. Peep
Sympa::Aliases::Externalfor that one. - Name of subclass β uses a subclass
"Sympa::Aliases::name"to manage aliases.
If you pass an invalid type, you get undef back. No subclass for you, sorry bestie π
Note: for compatibility with the earlier versions of Sympa, if the string"SBINDIR/alias_manager.pl"was given as$type, theSympa::Aliases::Templatesubclass will be used. Throwback behaviour, lowkey iconic β¨
Any optional key => value pairs you toss in get included in the instance as hash entries. Cute, right? π
check ( $listname, $robot_id )
Instance method, overridable. It checks whether the addresses of the requested list already exist. Vibe check on your addresses, fr fr π
Parameters:
$listnameβ name of the list. Mandatory, no skipping π$robot_idβ the list's robot.
Returns:
- A true value if one of the addresses exists.
0if none found.undefif something wrong happened. π
By default, this method always returns 0.
add ( $list )
Instance method, overridable. It installs aliases for the list $list. Putting the aliases on. Periodt π
Parameters:
$listβ an instance ofSympa::List.
Returns:
1if installation succeeded β ate and left no crumbs β¨0if there were no aliases to be installed.undefif not applicable.
By default, this method always returns 0.
del ( $list )
Instance method, overridable. It removes aliases for the list $list. We're cleaning house, bestie π§Ήβ¨
Parameters:
$listβ an instance ofSympa::List.
Returns:
1if removal succeeded.0if there were no aliases to be removed.undefif not applicable.
By default, this method always returns 0.
π Function
check_new_listname ( $listname, $robot )
A function, not a method, okay? It checks if a new listname is allowed. π¦
TBD. (yes, the docs really said that, iconic honestly)
Parameteres:
$listnameβ a list name to be checked.$robotβ robot context.
Returns:
- If the check fails, an array including information of errors. π
- If it succeeds, an empty array. Slay πΈ
Note: this should be used to check the name of a list to be created. Names of existing lists may not necessarily pass checks by this function. So don't come for the old lists with this, bestie π
This function was added on Sympa 6.2.37b.2.
π SEE ALSO π
Sympa::Aliases::CheckSMTP, Sympa::Aliases::External, Sympa::Aliases::Template. Go read those next, they're the supporting cast π«Ά
π HISTORY π
alias_manager.pl as a program to automate alias management appeared on Sympa 3.1b.13. Ancient lore, fr fr πΊ
The Sympa::Aliases module as an OO-based class appeared on Sympa 6.2.23b, and it obsoleted alias_manager.pl. Out with the old, in with the object-oriented β¨
And that's a wrap, bestie! This lil page is from sympa 6.2.80, dated 2026-10-19, and it's Sympa::Aliases(3Sympa) β stay hydrated, read your docs, and slay π
ππ
π¦ where this page comes from
- fedora 43: sympa-devel-doc 6.2.80-2.fc43 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- fedora 44: sympa-devel-doc 6.2.80-2.fc44 Β· GPL-2.0-or-later AND (OFL-1.1-RFN AND MIT) AND OFL-1.1-RFN AND MIT and (MIT OR GPL-2.0-only)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms