3 <% include('/view/elements/tr.html', label=>'Mailbox type', value=>$svc_acct->cgp_type) %>
5 <% include('/view/elements/tr.html', label=>'Enabled services',
6 value=>$svc_acct->cgp_accessmodes ) %>
8 <% include('/view/elements/tr.html', label=>'Mail storage limit',
9 value=>$svc_acct->quota ) %>
11 <% include('/view/elements/tr.html', label=>'File storage limit',
12 value=>$svc_acct->file_quota ) %>
14 <% include('/view/elements/tr.html', label=>'Number of files limit',
15 value=>$svc_acct->file_maxnum ) %>
17 <% include('/view/elements/tr.html', label=>'File size limit',
18 value=>$svc_acct->file_maxsize ) %>
20 <% include('/view/elements/tr.html', label=>'Password recovery',
21 value=>$svc_acct->password_recover ? 'YES' : 'NO' ) %>
23 <% include('/view/elements/tr.html', label=>'Allowed mail rules',
24 value=>$svc_acct->cgp_rulesallowed || 'default (No)') %>
26 <% include('/view/elements/tr.html', label=>'RPOP modifications',
27 value=>$svc_acct->cgp_rpopallowed ? 'YES' : 'NO' ) %>
29 <% include('/view/elements/tr.html', label=>'Accepts mail to "all"',
30 value=>$svc_acct->cgp_mailtoall ? 'YES' : 'NO' ) %>
32 <% include('/view/elements/tr.html', label=>'Add trailer to sent mail',
33 value=>$svc_acct->cgp_addmailtrailer ? 'YES' : 'NO' ) %>
35 % my $archive_after = $svc_acct->cgp_archiveafter;
38 % ? ( $archive_after / 86400 ). ' days'
39 % : ( $archive_after eq '0' ? 'Never' : 'default (730 days)' );
40 <% include('/view/elements/tr.html', label=>'Archive messages after',
41 value=>$archive_after, ) %>
45 <% include('/view/elements/tr.html', label=>'Message delete method',
46 value=>$svc_acct->cgp_deletemode ) %>
48 <% include('/view/elements/tr.html', label=>'On logout remove trash',
49 value=>$svc_acct->cgp_emptytrash ) %>
51 <% include('/view/elements/tr.html', label=>'Language',
52 value=>$svc_acct->cgp_language || 'default (English)' ) %>
53 <% include('/view/elements/tr.html', label=>'Time zone',
54 value=>$svc_acct->cgp_timezone || 'default (HostOS)' ) %>
55 <% include('/view/elements/tr.html', label=>'Layout',
56 value=>$svc_acct->cgp_skinname || 'default (***)' ) %>
58 <% include('/view/elements/tr.html', label=>'Pronto style',
59 value=>$svc_acct->cgp_prontoskinname ) %>
61 <% include('/view/elements/tr.html', label=>'Send read receipts',
62 value=>$svc_acct->cgp_sendmdnmode ) %>
65 <% include('/elements/init_overlib.html') %>
68 <TD ALIGN="right">Vacation message</TD>
69 <TD BGCOLOR="#FFFFFF">
70 <% $vacation_rule ? 'Active' : '' %>
71 <% include('/elements/popup_link.html',
72 'action' => $p.'edit/cgp_rule-vacation.html?'.
73 'svcnum='. $svc_acct->svcnum,
74 'label' => $vacation_rule ? '(edit)' : '(add)',
75 'actionlabel' => 'Vacation message',
87 <TD ALIGN="right">Redirect all mail</TD>
88 <TD BGCOLOR="#FFFFFF">
89 <% $redirect_rule ? 'Active' : '' %>
90 <% include('/elements/popup_link.html',
91 'action' => $p.'edit/cgp_rule-redirect_all.html?'.
92 'svcnum='. $svc_acct->svcnum,
93 'label' => $redirect_rule ? '(edit)' : '(add)',
94 'actionlabel' => 'Redirect all mail',
105 <% include('/view/elements/tr.html', label=>'Mail rules',
112 <% include('/view/elements/tr.html', label=>'Remote POP accounts',
121 #my $conf = new FS::Conf;
123 my $svc_acct = $opt{'svc_acct'};
124 #my $part_svc = $opt{'part_svc'};
126 my $rule_link = qq(<A HREF="${p}browse/cgp_rule.html?svcnum=). #"dum vim
127 $svc_acct->svcnum. '">View/edit mail rules</A>';
129 my $rpop_link = qq(<A HREF="${p}browse/acct_snarf.html?svcnum=). #"dee vim
130 $svc_acct->svcnum. '">View/edit remote POP accounts</A>';
132 my $vacation_rule = qsearchs('cgp_rule', { 'svcnum' => $svc_acct->svcnum,
133 'name' => '#Vacation'
137 my $redirect_rule = qsearchs('cgp_rule', { 'svcnum' => $svc_acct->svcnum,
138 'name' => '#Redirect'