HCoop
/
hcoop
/
zz_old
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cvsimport
[hcoop/zz_old/portal.git]
/
util.sml
diff --git
a/util.sml
b/util.sml
index
d1c7214
..
ee6c872
100644
(file)
--- a/
util.sml
+++ b/
util.sml
@@
-64,7
+64,7
@@
fun init () = rnd := Random.rand (SysWord.toInt (Posix.Process.pidToWord (Posix.
fun randomPassword () = Int.toString (Int.abs (Random.randInt (!rnd)))
fun domainDir dom =
fun randomPassword () = Int.toString (Int.abs (Random.randInt (!rnd)))
fun domainDir dom =
- String.concatWith "/" ("/
etc/domains" :: String.fields (fn ch => ch = #".") dom
)
+ String.concatWith "/" ("/
afs/hcoop.net/common/etc/domtool/nodes/deleuze" :: List.rev (String.fields (fn ch => ch = #".") dom)
)
fun readFile fname =
let
fun readFile fname =
let
@@
-81,4
+81,10
@@
fun readFile fname =
fun mem (x, ls) = List.exists (fn y => y = x) ls
fun mem (x, ls) = List.exists (fn y => y = x) ls
+val allLower = CharVector.map Char.toLower
+
+fun normEmail s = case String.tokens Char.isSpace (allLower s) of
+ s :: _ => s
+ | [] => ""
+
end
end