0, 'attachment' => 1, 'plaintext' => 2); $report_safe = $report_safe_array[$settings['send_spam']]; $local_cf = << 'wl', 'blacklist' => 'bl') as $list => $key) { foreach ($config['installedpackages']["sassassin{$key}"]['config'] as $item) { if (!empty($item)) $local_cf .= "{$list}_from {$item['address']}\n"; } } file_put_contents('/usr/local/etc/mail/spamassassin/local.cf', $local_cf); restart_service('spamassassin'); if (get_pkg_id('p3scan') != -1) { require_once('p3scan.inc'); p3scan_resync(); } } function sassassin_validate_input($post, $input_errors) { if (!is_numeric($post['threshold'])) $input_errors[] = 'The field \'Spam threshold\' should contain a numeric value.'; } ?>