univention.mail package
Contents
univention.mail package¶
Submodules¶
univention.mail.dovecot module¶
- class univention.mail.dovecot.DovecotListener(listener, name)[source]¶
Bases:
object
- read_from_ext_proc_as_root(cmd, regexp=None, stdin=None, stdout=- 1, stderr=None, stdin_input=None)[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