blob: 65f0d98d5daad580179992b2459688893be32f39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% maild Mailinglist
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setuser{\getuser{\T.from}}
\nif(count \T.node){\reconst{T.node}{1}}
\dml.init{demo}{}{}{}
\if{\user.id}{
\setlist{\T.list};
\if(count \dml.group){
\on.clear{\dml.group}{
\switch{\T.cmd}
{help}{
\dml.help
}
{who}{
\dml.who{\T.node}
}
{silent}{
\dml.addsilent{\T.node}
}
{new}{
\dml.addbroad{\T.node}
}
{reply}{
\reconst{T.subject}{\dml.resubj{\T.subject}}
\dml.addbroad{\T.node}
}
{open}{
\dml.opennode{\T.node}
}
{close}{
\dml.closenode{\T.node}
}
{mail}{
\dml.mail{\T.node}
}
{
\dml.error{\T.list: Bad command (\T.cmd)}
}
}{
\dml.error{\T.list: User denied (\T.from)}
}
}{
\if(\T.cmd eq "help"){
\dml.help
}{
\dml.error{\T.list: Not found}
}
}
}{
\dml.error{\HOST: Could not find user \T.from}
}
|