1 structure Pass
:> PASS
=
5 case String.fields (fn ch
=> ch
= #
"@") email
of
6 [_
, dom
] => dom
<> "localhost"
9 fun change (email
, old
, new
) =
11 val cmd
= String.concat
["/usr/bin/sudo /usr/local/bin/vmailpasswd \"",
12 String.toString email
,
17 "\" >/dev/null 2>/dev/null"]
19 OS
.Process
.isSuccess (OS
.Process
.system cmd
)