summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-10-12 00:00:57 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2011-10-12 00:00:57 +0200
commitb506792846d13e5b0438a9a8695137d200d5d5c6 (patch)
treead4f7b459814bfa003d52baa3f626695402c59c2
parent298626ff485cc5122e598aa5e4ed2f15e00811c4 (diff)
downloadsites-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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/util.py b/util.py
index 0709d58..1b8aa5c 100644
--- a/util.py
+++ b/util.py
@@ -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: