apt: new process for package install on puppet nodes
[hcoop/portal.git] / mail.sml
index 4695592..d847a57 100644 (file)
--- a/mail.sml
+++ b/mail.sml
@@ -11,7 +11,7 @@ fun writeToLog s = ()
 
 type session = (TextIO.instream, TextIO.outstream) Unix.proc
 
-fun mopen () = Unix.execute ("/usr/sbin/exim4", ["-t"])
+fun mopen () = Unix.execute ("/usr/sbin/sendmail", ["-t"])
               before writeToLog "\nNEW MESSAGE\n"
 
 fun mwrite (ses, s) = (TextIO.output (Unix.textOutstreamOf ses, s);
@@ -19,4 +19,12 @@ fun mwrite (ses, s) = (TextIO.output (Unix.textOutstreamOf ses, s);
 
 fun mclose ses = Unix.reap ses
 
+(*type session = unit
+
+fun mopen () = ()
+
+fun mwrite ((), s) = print s
+
+fun mclose () = OS.Process.success*)
+
 end