squirrelmail-webmail
1.4.22
|
Go to the documentation of this file. 32 define(
'SM_PATH',
'../../');
35 require_once(
SM_PATH .
'include/validate.php');
36 require_once(
SM_PATH .
'functions/page_header.php');
37 require_once(
SM_PATH .
'functions/imap.php');
38 require_once(
SM_PATH .
'include/load_prefs.php');
39 require_once(
SM_PATH .
'functions/html.php');
40 require_once(
SM_PATH .
'plugins/filters/filters.php');
59 if (isset($filters_spam_folder_set)) {
62 echo
_(
"You must select a spam folder.");
67 if (isset($filters_spam_scan_set)) {
70 echo
_(
"You must select a scan type.");
89 html_tag(
'th',
_(
"Spam Filtering"),
'center' )
91 'center',
$color[0],
'width="95%" border="0" cellpadding="2" cellspacing="0"' );
96 sprintf(
_(
"WARNING! Tell the administrator to set the %s variable."),
'"SpamFilters_YourHop"') .
110 if ((isset(
$boxes[$i][
'flags'][0]) &&
$boxes[$i][
'flags'][0] !=
'noselect') &&
111 (isset(
$boxes[$i][
'flags'][1]) &&
$boxes[$i][
'flags'][1] !=
'noselect') &&
112 (isset(
$boxes[$i][
'flags'][2]) &&
$boxes[$i][
'flags'][2] !=
'noselect')) {
117 echo
'<form method="post" action="spamoptions.php">'.
119 html_tag(
'table',
'',
'',
'',
'width="85%" border="0" cellpadding="2" cellspacing="0"' ) .
121 html_tag(
'th',
_(
"Move spam to:"),
'right',
'',
'nowrap' ) .
123 '<select name="filters_spam_folder_set">';
135 _(
"Moving spam directly to the trash may not be a good idea at first, since messages from friends and mailing lists might accidentally be marked as spam. Whatever folder you set this to, make sure that it gets cleaned out periodically, so that you don't have an excessively large mailbox hanging around.") ,
139 html_tag(
'th',
_(
"What to Scan:"),
'right',
'',
'nowrap' ) .
141 '<select name="filters_spam_scan_set">'.
144 echo
' selected="selected"';
146 echo
'>' .
_(
"All messages") .
'</option>'.
147 '<option value="new"';
149 echo
' selected="selected"';
151 echo
'>' .
_(
"Unread messages only") .
'</option>' .
158 _(
"The more messages scanned, the longer it takes. It's recommended to scan unread messages only. If a change to the filters is made, it's recommended to set it to scan all messages, then go view the INBOX, then come back and set it to scan unread messages only. That way, the new spam filters will be applied and even the spam you didn't catch with the old filters will be scanned.") ,
166 html_tag(
'th', $Key,
'right',
'',
'nowrap' ) .
"\n" .
168 '<input type="checkbox" name="' .
172 echo
' checked="checked"';
178 '" target="_blank">';
192 html_tag(
'td',
'<input type="submit" name="spam_submit" value="' .
_(
"Save") .
'" />',
'center',
'',
'colspan="2"' )
199 echo
html_tag(
'p',
'',
'center' ) .
200 '[<a href="spamoptions.php?action=spam">' .
_(
"Edit") .
'</a>]' .
201 ' - [<a href="../../src/options.php">' .
_(
"Done") .
'</a>]</center><br /><br />';
204 printf(
_(
"Spam scan is limited to %s."),
'<b>' . ( (
$filters_spam_scan ==
'new')?
_(
"Unread messages only"):
_(
"All messages") ) .
'</b>' );
206 '<table border="0" cellpadding="3" cellspacing="0" align="center" bgcolor="' .
$color[0] .
"\">\n";
221 html_tag(
'td',
' - ',
'left' ) .
227 '" target="_blank">';
sqgetGlobalVar($name, &$value, $search=SQ_INORDER)
getPref($data_dir, $username, $string, $default='')
global $SpamFilters_YourHop
html_tag( $tag, $val='', $align='', $bgcolor='', $xtra='')
sqimap_login($username, $password, $imap_server_address, $imap_port, $hide)
if(sqgetGlobalVar('spam_submit', $spam_submit, SQ_POST)) $filters_spam_folder
setPref($data_dir, $username, $string, $set_to)
powered by Systran sprintf(_("Number of supported language pairs: %s"), '36').' '
sqimap_logout($imap_stream)
removePref($data_dir, $username, $string)
sqimap_mailbox_option_list($imap_stream, $show_selected=0, $folder_skip=0, $boxes=0, $flag='noselect', $use_long_format=false)
imap_utf7_decode_local($s)
sqimap_mailbox_list($imap_stream, $force=false)
if($spamcop_quick_report) $selected