Implemented: FS#2107 - Add option to disable mailbox quota statistics
| | |
| | | relayhost_password= |
| | | mailbox_size_limit=0 |
| | | message_size_limit=0 |
| | | mailbox_quota_stats=y |
| | | realtime_blackhole_list= |
| | | |
| | | [getmail] |
| | |
| | | 'width' => '10', |
| | | 'maxlength' => '15' |
| | | ), |
| | | 'mailbox_quota_stats' => array ( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'CHECKBOX', |
| | | 'default' => 'y', |
| | | 'value' => array(0 => 'n',1 => 'y') |
| | | ), |
| | | 'realtime_blackhole_list' => array( |
| | | 'datatype' => 'VARCHAR', |
| | | 'formtype' => 'TEXT', |
| | |
| | | $wb["apps_vhost_settings_txt"] = 'Apps Vhost Settings'; |
| | | $wb["awstats_settings_txt"] = 'AWStats Settings'; |
| | | $wb["firewall_txt"] = 'Firewall'; |
| | | $wb["mailbox_quota_stats_txt"] = 'Mailbox quota statistic'; |
| | | ?> |
| | |
| | | <label for="message_size_limit">{tmpl_var name='message_size_limit_txt'}</label> |
| | | <input name="message_size_limit" id="message_size_limit" value="{tmpl_var name='message_size_limit'}" size="10" maxlength="15" type="text" class="textInput formLengthLimit" /> MB |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <p class="label">{tmpl_var name='mailbox_quota_stats_txt'}</p> |
| | | <div class="multiField"> |
| | | {tmpl_var name='mailbox_quota_stats'} |
| | | </div> |
| | | </div> |
| | | <div class="ctrlHolder"> |
| | | <label for="realtime_blackhole_list">{tmpl_var name='realtime_blackhole_list_txt'}</label> |
| | | <input name="realtime_blackhole_list" id="realtime_blackhole_list" value="{tmpl_var name='realtime_blackhole_list'}" size="40" maxlength="255" type="text" class="textInput" /> {tmpl_var name='realtime_blackhole_list_note_txt'} |
| | |
| | | } |
| | | |
| | | private function _monitorEmailQuota() { |
| | | global $app; |
| | | global $app, $conf; |
| | | |
| | | /* |
| | | * This monitoring is expensive, so do it only every 15 minutes |
| | |
| | | $min = @date('i'); |
| | | if ($min % 15 != 0) return; |
| | | |
| | | $app->uses('getconf'); |
| | | $mail_config = $app->getconf->get_server_config($conf['server_id'], 'mail'); |
| | | if($mail_config['mailbox_quota_stats'] == 'n') return; |
| | | |
| | | |
| | | /* |
| | | * First we get the Monitoring-data from the tools |