updated URLS
[attachcheck] / attachcheck
index e5ac549ed9be819b9dcf9c54d7d57e76587b4483..e633291c10340890abf45452aac7fe3cc3da871b 100755 (executable)
@@ -58,9 +58,11 @@ def send_message():
     cmd[0] = sendmail
 
     from subprocess import Popen, PIPE
-    mailpipe = Popen(cmd, stdin=PIPE).stdin
+    process = Popen(cmd, stdin=PIPE)
+    mailpipe = process.stdin
     mailpipe.write( message_string )
-    sys.exit( mailpipe.close() )
+    mailpipe.close()
+    sys.exit( process.wait() )
 
 ## SUB: print error message
 def print_error():

Benjamin Mako Hill || Want to submit a patch?