From 5e2e38954c46c4897499e7ce16654e8de5b15b52 Mon Sep 17 00:00:00 2001 From: bbice Date: Sun, 2 Dec 2001 09:19:25 +0000 Subject: [PATCH] Changed default value for SpamFilters_YourHop git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1824 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/filters/filters.php | 4 ++++ plugins/filters/spamoptions.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index 52f5dfae..6eb1881c 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -274,6 +274,10 @@ $IsSpam ++; break; // no sense in checking more IPs } + // If we've checked one IP and YourHop is just a space + if ($SpamFilters_YourHop == ' ') { + break; // don't check any more + } } } } diff --git a/plugins/filters/spamoptions.php b/plugins/filters/spamoptions.php index 06790a75..b8d71946 100644 --- a/plugins/filters/spamoptions.php +++ b/plugins/filters/spamoptions.php @@ -52,6 +52,10 @@ '' . _("Spam Filtering") . ''. ''; + if ($SpamFilters_YourHop == ' ') { + echo '
WARNING! Tell your admin to set the SpamFilters_YourHop variable

'; + } + if (isset($action) && $action == 'spam') { $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); -- 2.25.1