univention.mail package#
Submodules#
univention.mail.dovecot module#
- class univention.mail.dovecot.DovecotListener(listener: str, name: str)[source]#
Bases:
object- read_from_ext_proc_as_root(cmd: Sequence[str], regexp: str | None = None, stdin: str | None = None, stdout: Any = -1, stderr: Any = None, stdin_input: Any = None) str[source]#
Wrapper around Popen(), runs external command as root and return its output, optionally the first hit of a regexp. May raise an exception.
- Parameters:
cmd – list: with executable path as first item
regexp – string: regexp for re.findall()
- Returns:
string