Add warning about Client firewall rules without whitelists
[hcoop/portal.git] / mail.sml
CommitLineData
edeb626e
AC
1structure Mail :> MAIL =
2struct
3
b564aa2b
AC
4fun writeToLog s =
5 let
b675b4c5 6 val outf = TextIO.openAppend (Init.scratchDir ^ "/log/mail.log")
b564aa2b
AC
7 in
8 TextIO.output (outf, s);
9 TextIO.closeOut outf
10 end
11
edeb626e
AC
12type session = (TextIO.instream, TextIO.outstream) Unix.proc
13
14fun mopen () = Unix.execute ("/usr/sbin/exim4", ["-t"])
b564aa2b 15 before writeToLog "\nNEW MESSAGE\n"
edeb626e 16
b564aa2b
AC
17fun mwrite (ses, s) = (TextIO.output (Unix.textOutstreamOf ses, s);
18 writeToLog s)
edeb626e
AC
19
20fun mclose ses = Unix.reap ses
21
b564aa2b 22end