Data for configuration of mail aliases, input and output functions.
List of Global Functions
FilterRootAlias - Separates aliases into aliases, root_alias and root_alias_comment
GetRootAlias - For use by the Users package. Does not rely on the internal state, first calls the agent.
ReadAliases - Read the aliases table (and separate the root alias)
SetRootAlias - For use by the Users package. Does not use the internal state, just calls the agent. SuSEconfig or newaliases is NOT called! (TODO: what if it is called while the main module is running?) Errors are reported via Report::Error.
WriteAliases - Part of Write.
List of Global Variables
aliases - List of maps: $[comment:, alias:, destinations:] (all are strings) Except root.
root_alias - Separated/joined with aliases by read/write/set/export
Separates aliases into aliases, root_alias and root_alias_comment
Return value
void
For use by the Users package. Does not rely on the internal state, first calls the agent.
Return value
string - eg. "joe, \\root", "" if not defined
Function parameters
list<map> aliases
Return value
list<map> - prepend root alias data to aliases, if set
Read the aliases table (and separate the root alias)
Return value
boolean - success?
For use by the Users package. Does not use the internal state, just calls the agent. SuSEconfig or newaliases is NOT called! (TODO: what if it is called while the main module is running?) Errors are reported via Report::Error.
Function parameters
string destinations
Return value
boolean - true on success