Changed default value for SpamFilters_YourHop
authorbbice <bbice@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 2 Dec 2001 09:19:25 +0000 (09:19 +0000)
committerbbice <bbice@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 2 Dec 2001 09:19:25 +0000 (09:19 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1824 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/filters/filters.php
plugins/filters/spamoptions.php

index 52f5dfa..6eb1881 100644 (file)
                         $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
+                       }
                         }
                         }
                     }
index 06790a7..b8d7194 100644 (file)
            '<tr><th align=center>' . _("Spam Filtering") . '</th></tr>'.
        '</table>';
 
+    if ($SpamFilters_YourHop == ' ') {
+       echo '<BR><center><b>WARNING! Tell your admin to set the SpamFilters_YourHop variable</b></center><BR>';
+    }
+
 
    if (isset($action) && $action == 'spam') {
        $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);