squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

setup.php File Reference

Go to the source code of this file.

Namespaces

 plugins
 

Functions

 squirrelmail_plugin_init_filters ()
 
 filters_special_mailbox ( $mb)
 
 filters_optpage_register_block ()
 

Variables

global $UseSeparateImapConnection = false
 
global $AllowSpamFilters = true
 
global $SpamFilters_YourHop = ' '
 
global $SpamFilters_ShowCommercial = false
 
global $SpamFilters_DNScache
 
global $SpamFilters_BulkQuery = ''
 
global $SpamFilters_SharedCache = true
 
global $SpamFilters_CacheTTL = 7200
 

Function Documentation

◆ filters_optpage_register_block()

filters_optpage_register_block ( )

Register option blocks @access private

Definition at line 168 of file setup.php.

References $AllowSpamFilters, and _().

◆ filters_special_mailbox()

filters_special_mailbox (   $mb)

Report spam folder as special mailbox

Parameters
string$mbvariable used by hook
Returns
string spam folder name @access private

Definition at line 157 of file setup.php.

References $data_dir, $username, and getPref().

◆ squirrelmail_plugin_init_filters()

squirrelmail_plugin_init_filters ( )

Init plugin @access private

Definition at line 132 of file setup.php.

References $mailbox, $squirrelmail_plugin_hooks, SQ_FORM, and sqgetGlobalVar().

Variable Documentation

◆ $AllowSpamFilters

$AllowSpamFilters = true

User level spam filters control

Set this to false if you do not want the user to be able to enable spam filters @global bool $AllowSpamFilters

Definition at line 49 of file setup.php.

Referenced by filters_optpage_register_block().

◆ $SpamFilters_BulkQuery

$SpamFilters_BulkQuery = ''

Path to bulkquery program

Absolute path to the bulkquery program. Leave blank if you don't have bulkquery compiled, installed, and lwresd running. See the README file in the bulkquery directory for more information on using bulkquery. @global string $SpamFilters_BulkQuery

Definition at line 104 of file setup.php.

Referenced by filters_bulkquery(), and spam_filters().

◆ $SpamFilters_CacheTTL

$SpamFilters_CacheTTL = 7200

DNS query TTL

How long should DNS query results be cached for by default (in seconds)? @global integer $SpamFilters_CacheTTL

Definition at line 125 of file setup.php.

Referenced by filters_bulkquery(), and filters_spam_check_site().

◆ $SpamFilters_DNScache

global $SpamFilters_DNScache

SpamFiltring Cache

A cache of IPs we've already checked or are known bad boys or good boys ie. $SpamFilters_DNScache["210.54.220.18"] = true; would tell filters to not even bother doing the DNS queries for that IP and any email coming from it are SPAM - false would mean that any email coming from it would NOT be SPAM @global array $SpamFilters_DNScache

Definition at line 94 of file setup.php.

Referenced by filters_bulkquery(), filters_LoadCache(), filters_SaveCache(), filters_spam_check_site(), and spam_filters().

◆ $SpamFilters_SharedCache

$SpamFilters_SharedCache = true

Shared filtering cache control

Do you want to use a shared file for the DNS cache or a session variable? Using a shared file means that every user can benefit from any queries made by other users. The shared file is named "dnscache" and is in the data directory. @global bool $SpamFilters_SharedCache

Definition at line 116 of file setup.php.

Referenced by spam_filters().

◆ $SpamFilters_ShowCommercial

$SpamFilters_ShowCommercial = false

Commercial Spam Filters Control

Some of the SPAM filters are COMMERCIAL and require a fee. If your users select them and you're not allowed to use them, it will make SPAM filtering very slow. If you don't want them to even be offered to the users, you should set SpamFilters_ShowCommercial to false. @global bool $SpamFilters_ShowCommercial

Definition at line 81 of file setup.php.

Referenced by load_spam_filters().

◆ $SpamFilters_YourHop

$SpamFilters_YourHop = ' '

SpamFilters YourHop Setting

Set this to a string containing something unique to the line in the header you want me to find IPs to scan the databases with. For example, All the email coming IN from the internet to my site has a line in the header that looks like (all on one line): Received: [from usw-sf-list1.sourceforge.net (usw-sf-fw2.sourceforge.net [216.136.171.252]) by firewall.persistence.com (SYSADMIN-antispam 0.2) with Since this line indicates the FIRST hop the email takes into my network, I set my SpamFilters_YourHop to 'by firewall.persistence.com' but any case-sensitive string will do. You can set it to something found on every line in the header (like ' ') if you want to scan all IPs in the header (lots of false alarms here tho). @global string $SpamFilters_YourHop

Definition at line 69 of file setup.php.

Referenced by filters_bulkquery(), and spam_filters().

◆ $UseSeparateImapConnection

$UseSeparateImapConnection = false

SquirrelMail required files. Imap connection control

Set this to true if you have problems – check the README file Note: This doesn't work all of the time (No idea why) Seems to be related to UW @global bool $UseSeparateImapConnection

Definition at line 29 of file setup.php.

Referenced by start_filters().