diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-10-12 00:00:57 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-10-12 00:00:57 +0200 |
commit | b506792846d13e5b0438a9a8695137d200d5d5c6 (patch) | |
tree | ad4f7b459814bfa003d52baa3f626695402c59c2 | |
parent | 298626ff485cc5122e598aa5e4ed2f15e00811c4 (diff) | |
download | sites-b506792846d13e5b0438a9a8695137d200d5d5c6.tar.gz sites-b506792846d13e5b0438a9a8695137d200d5d5c6.tar.bz2 sites-b506792846d13e5b0438a9a8695137d200d5d5c6.zip |
send mail to owner with password
the newlist script by mailman ask for an "ENTER" to send a mail to the
owner so we have to emulate this
-rw-r--r-- | util.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -41,7 +41,9 @@ def create_list(listname, listadmin, passwd=None): # create list p = subprocess.Popen(['sudo', '-n', os.path.join(config.mailman_path, 'bin', 'neueliste.bash'), listname, listadmin, passwd], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE) + print >>p.stdin, "" + (progress, junk) = p.communicate() return (p.returncode == 0, progress) except Exception as e: |