Configuration of mail aliases |
modules/Mail.ycp |
Data for configuration of mail aliases, input and output functions. | |
|
|
This module has an unstable interface. |
Representation of the configuration of mail aliases.
Input and output routines.
Separated from Mail.ycp because yast2-users need us.
Virtusertable/virtual users are not included, arbitrarily.
Global VariablesGlobal Functions
Local VariablesLocal Functions |
List of maps: $[comment:, alias:, destinations:] (all are strings) Except root.
Separated/joined with aliases by read/write/set/export
Separated/joined with aliases by read/write/set/export
Useful for autoinstall: the provided aliases will be (with higher priority) merged with existing ones (presumably system defaults).
Separates aliases into aliases, root_alias and root_alias_comment
Read the aliases table (and separate the root alias)
- Return value:
-
success?
- Parameters:
-
aliases an alias table
- Return value:
-
prepend root alias data to aliases, if set
Merges mail tables, which are order-preserving maps. First are the entries of the old map, with values updated from the new one, then the rest of the new map.
- Parameters:
-
new new table old old table
- Return value:
-
merged table
Part of Write.
- Return value:
-
success
- See
-
SetRootAlias
For use by the Users package. Does not rely on the internal state, first calls the agent.
- Return value:
-
eg. "joe, \\root", "" if not defined
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.
- Parameters:
-
destinations The new alias. If "", it is removed.
- Return value:
-
true on success