X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Ffilters%2Fspamoptions.php;h=16b25835a824fbf49fc3f846c4663bb6787e5bba;hp=5b3a09f3735834b45533162d0d179de3e4435844;hb=fb0bcfdbbcbd1bfb5e8183c4b48b0ef184d21dbb;hpb=0a1dc88e11c9c6b1734eaa35849e3476dc425c6d diff --git a/plugins/filters/spamoptions.php b/plugins/filters/spamoptions.php index 5b3a09f3..16b25835 100644 --- a/plugins/filters/spamoptions.php +++ b/plugins/filters/spamoptions.php @@ -1,74 +1,49 @@ $Value) { @@ -94,7 +69,7 @@ echo html_tag( 'table', if ($SpamFilters_YourHop == ' ') { echo '
' . html_tag( 'div', '' . - sprintf(_("WARNING! Tell your admin to set the %s variable"),'SpamFilters_YourHop') . + sprintf(_("WARNING! Tell the administrator to set the %s variable."), '"SpamFilters_YourHop"') . '' , 'center' ) . '
'; @@ -102,7 +77,7 @@ if ($SpamFilters_YourHop == ' ') { if (isset($action) && $action == 'spam') { - $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); + $imapConnection = sqimap_login($username, false, $imapServerAddress, $imapPort, 0); $boxes = sqimap_mailbox_list($imapConnection); sqimap_logout($imapConnection); $numboxes = count($boxes); @@ -116,10 +91,10 @@ if (isset($action) && $action == 'spam') { } echo '
'. - '
'. + '
'. html_tag( 'table', '', '', '', 'width="85%" border="0" cellpadding="2" cellspacing="0"' ) . html_tag( 'tr' ) . - html_tag( 'th', _("Move spam to:"), 'right', '', 'nowrap' ) . + html_tag( 'th', _("Move spam to:"), 'right', '', 'style="white-space: nowrap;"' ) . html_tag( 'td', '', 'left' ) . ''. ''. '' . + echo '>' . _("Unread messages only") . '' . ''. ''. ''. html_tag( 'tr', html_tag( 'td', ' ' ) . html_tag( 'td', - _("The more messages you scan, the longer it takes. I would suggest that you scan only new messages. If you make a change to your filters, I would set it to scan all messages, then go view my INBOX, then come back and set it to scan only new messages. That way, your new spam filters will be applied and you'll scan even the spam you read with the new filters.") , + _("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.") , 'left' ) ); @@ -164,13 +139,13 @@ if (isset($action) && $action == 'spam') { foreach ($spam_filters as $Key => $Value) { echo html_tag( 'tr' ) . - html_tag( 'th', $Key, 'right', '', 'nowrap' ) ."\n" . + html_tag( 'th', $Key, 'right', '', 'style="white-space: nowrap;"' ) ."\n" . html_tag( 'td' ) . ' - '; if ($spam_filters[$Key]['link']) { @@ -193,16 +168,16 @@ if (isset($action) && $action == 'spam') { html_tag( 'td', '', 'center', '', 'colspan="2"' ) ) . "\n" . ''. - '
'. + ''. '
'; } else { // action is not set or action is not spam echo html_tag( 'p', '', 'center' ) . '[' . _("Edit") . ']' . - ' - [' . _("Done") . ']

'; - printf( _("Spam is sent to %s"), ($filters_spam_folder?''.imap_utf7_decode_local($filters_spam_folder).'':'['._("not set yet").']' ) ); - echo '
'; - printf( _("Spam scan is limited to %s"), (($filters_spam_scan == 'new')?_("New Messages Only"):_("All Messages") ) ); + ' - [' . _("Done") . ']

'; + printf( _("Spam is sent to %s."), ($filters_spam_folder?''.htmlspecialchars(imap_utf7_decode_local($filters_spam_folder)).'':'['._("not set yet").']' ) ); + echo '
'; + printf( _("Spam scan is limited to %s."), '' . ( ($filters_spam_scan == 'new')?_("Unread messages only"):_("All messages") ) . '' ); echo '

'. '\n"; @@ -218,7 +193,7 @@ if (isset($action) && $action == 'spam') { echo _("OFF"); } - echo '' . + echo '' . html_tag( 'td', ' - ', 'left' ) . html_tag( 'td', '', 'left' );