From 6519bab9eb51cea0b930f7f3275dbad2a0158cfd Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 17 Aug 2005 22:55:54 +0000 Subject: Bugfix: redirect fetchmail command input from /dev/null so it doesn't hang waiting for a password. Reported by Michal Marek (SUSE). Bugfix: Pass -N option to fetchmail commands to run them in the foreground. svn path=/trunk/; revision=4238 --- fetchmailconf.py | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/fetchmailconf.py b/fetchmailconf.py index 83e9ed7a..b1f492db 100755 --- a/fetchmailconf.py +++ b/fetchmailconf.py @@ -5,7 +5,7 @@ # Matthias Andree # Requires Python with Tkinter, and the following OS-dependent services: # posix, posixpath, socket -version = "1.46" +version = "1.47" from Tkinter import * from Dialog import * @@ -1821,7 +1821,7 @@ class RunWindow(Frame): # first. This avoids some obscure version-skew errors that can occur # if you pick up an old fetchmail from the standard system locations. os.environ["PATH"] = os.path.dirname(sys.argv[0]) + ":" + os.environ["PATH"] - child_stdout = os.popen(command + " 2>&1", "r") + child_stdout = os.popen(command + " 2>&1 " + tmpfile + cmd = "umask 077 && fetchmail " + tmpfile else: - cmd = "umask 077 && fetchmail --configdump --nosyslog >" + tmpfile + cmd = "umask 077 && fetchmail " + tmpfile try: s = os.system(cmd) -- cgit v1.2.3