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
54
55
56
57
|
<% include('/elements/header-popup.html', 'Redirect all mail') %>
<FORM NAME="RedirectAllForm" ACTION="process/cgp_rule-redirect_all.html" METHOD=POST>
%# XXX upstream Redirect 1
<% ntable("#cccccc", 2) %>
<TR>
<TD ALIGN="right">Redirect all mail to</TD>
<TD><textarea name="RedirectText" rows="5" cols="50"></textarea></TD>
</TR>
<% include('/elements/tr-checkbox.html',
'name' => 'RedirKeep',
'label' => 'Keep a copy',
'value' => 1,
'curr_value' => '', #XXX
)
%>
<% include('/elements/tr-checkbox.html',
'name' => 'RedirHuman',
'label' => 'Do not redirect automatic messages',
'value' => 1,
'curr_value' => '', #XXX
)
%>
<% include('/elements/tr-checkbox.html',
'name' => 'KeepToAndCc',
'label' => 'Preserve To/Cc fields',
'value' => 1,
'curr_value' => '', #XXX
)
%>
</TABLE>
<BR>
<INPUT TYPE="submit" VALUE="Redirect all mail">
%#XXX Add/Edit
</FORM>
</BODY>
</HTML>
<%init>
my %opt = @_;
my $svc_acct = qsearchs('svc_acct', { 'svcnum' => $opt{'svcnum'} } )
or die "unknown svcnum";
#XXX look for existing redirect all rule
</%init>
|