|
@@ -15,19 +15,24 @@
|
|
define('config_php', true);
|
|
define('config_php', true);
|
|
|
|
|
|
// don't change
|
|
// don't change
|
|
|
|
+ global $config_version;
|
|
$config_version = "x62";
|
|
$config_version = "x62";
|
|
|
|
|
|
// Organization's logo picture (blank if none)
|
|
// Organization's logo picture (blank if none)
|
|
|
|
+ global $org_logo;
|
|
$org_logo = "../images/sm_logo.jpg";
|
|
$org_logo = "../images/sm_logo.jpg";
|
|
|
|
|
|
// Organization's name
|
|
// Organization's name
|
|
|
|
+ global $org_name;
|
|
$org_name = "SquirrelMail";
|
|
$org_name = "SquirrelMail";
|
|
|
|
|
|
// Webmail Title
|
|
// Webmail Title
|
|
// This is the title that goes at the top of the browser window
|
|
// This is the title that goes at the top of the browser window
|
|
|
|
+ global $org_title;
|
|
$org_title = "SquirrelMail $version";
|
|
$org_title = "SquirrelMail $version";
|
|
|
|
|
|
// The server that your imap server is on
|
|
// The server that your imap server is on
|
|
|
|
+ global $imapServerAddress, $imapPort;
|
|
$imapServerAddress = "localhost";
|
|
$imapServerAddress = "localhost";
|
|
$imapPort = 143;
|
|
$imapPort = 143;
|
|
|
|
|
|
@@ -35,22 +40,27 @@
|
|
// Example: in "luke@usa.om.org", usa.om.org is the domain.
|
|
// Example: in "luke@usa.om.org", usa.om.org is the domain.
|
|
// this is for all the messages sent out. Reply address
|
|
// this is for all the messages sent out. Reply address
|
|
// is generated by $username@$domain
|
|
// is generated by $username@$domain
|
|
|
|
+ global $domain;
|
|
$domain = "mydomain.com";
|
|
$domain = "mydomain.com";
|
|
|
|
|
|
// Your SMTP server and port number (usually the same as the IMAP server)
|
|
// Your SMTP server and port number (usually the same as the IMAP server)
|
|
|
|
+ global $smtpServerAddress, $smtpPort;
|
|
$smtpServerAddress = "localhost";
|
|
$smtpServerAddress = "localhost";
|
|
$smtpPort = 25;
|
|
$smtpPort = 25;
|
|
|
|
|
|
// Uncomment this if you want to deliver locally using sendmail instead
|
|
// Uncomment this if you want to deliver locally using sendmail instead
|
|
// of connecting to a SMTP-server
|
|
// of connecting to a SMTP-server
|
|
|
|
+// global $useSendmail, $sendmail_path;
|
|
// $useSendmail = true;
|
|
// $useSendmail = true;
|
|
// $sendmail_path = "/usr/sbin/sendmail";
|
|
// $sendmail_path = "/usr/sbin/sendmail";
|
|
|
|
|
|
// This is displayed right after they log in
|
|
// This is displayed right after they log in
|
|
|
|
+ global $motd;
|
|
$motd = "";
|
|
$motd = "";
|
|
|
|
|
|
// Whether or not to use a special color for special folders. If not, special
|
|
// Whether or not to use a special color for special folders. If not, special
|
|
// folders will be the same color as the other folders
|
|
// folders will be the same color as the other folders
|
|
|
|
+ global $use_special_folder_color;
|
|
$use_special_folder_color = true;
|
|
$use_special_folder_color = true;
|
|
|
|
|
|
// The type of IMAP server you are running
|
|
// The type of IMAP server you are running
|
|
@@ -60,6 +70,7 @@
|
|
// cyrus
|
|
// cyrus
|
|
// exchange
|
|
// exchange
|
|
// uw
|
|
// uw
|
|
|
|
+ global $imap_server_type;
|
|
$imap_server_type = "cyrus";
|
|
$imap_server_type = "cyrus";
|
|
|
|
|
|
// Many servers store mail in your home directory. With this, they
|
|
// Many servers store mail in your home directory. With this, they
|
|
@@ -74,9 +85,11 @@
|
|
// $default_folder_prefix = "Mail/folders/";
|
|
// $default_folder_prefix = "Mail/folders/";
|
|
//
|
|
//
|
|
// If you do not use this, please set it to "".
|
|
// If you do not use this, please set it to "".
|
|
|
|
+ global $default_folder_prefix;
|
|
$default_folder_prefix = "";
|
|
$default_folder_prefix = "";
|
|
// If you do not wish to give them the option to change this, set it to false.
|
|
// If you do not wish to give them the option to change this, set it to false.
|
|
// Otherwise, if it is true, they can change the folder prefix to be anything.
|
|
// Otherwise, if it is true, they can change the folder prefix to be anything.
|
|
|
|
+ global $show_prefix_option;
|
|
$show_prefix_option = false;
|
|
$show_prefix_option = false;
|
|
|
|
|
|
// The following are related to deleting messages.
|
|
// The following are related to deleting messages.
|
|
@@ -96,6 +109,8 @@
|
|
// $sent_folder
|
|
// $sent_folder
|
|
// - This is the path to where Sent messages will be stored.
|
|
// - This is the path to where Sent messages will be stored.
|
|
|
|
|
|
|
|
+ global $default_move_to_trash, $default_move_to_sent, $trash_folder,
|
|
|
|
+ $auto_expunge, $sent_folder;
|
|
$default_move_to_trash = true;
|
|
$default_move_to_trash = true;
|
|
$default_move_to_sent = true;
|
|
$default_move_to_sent = true;
|
|
$trash_folder = "INBOX.Trash";
|
|
$trash_folder = "INBOX.Trash";
|
|
@@ -108,6 +123,7 @@
|
|
// default mailboxes, but this obviously can be changed. To add one,
|
|
// default mailboxes, but this obviously can be changed. To add one,
|
|
// just add a new number to the array.
|
|
// just add a new number to the array.
|
|
|
|
|
|
|
|
+ global $special_folders;
|
|
$special_folders[0] = "INBOX"; // The first one has to be the inbox (whatever the name is)
|
|
$special_folders[0] = "INBOX"; // The first one has to be the inbox (whatever the name is)
|
|
$special_folders[1] = $trash_folder;
|
|
$special_folders[1] = $trash_folder;
|
|
$special_folders[2] = $sent_folder;
|
|
$special_folders[2] = $sent_folder;
|
|
@@ -115,10 +131,12 @@
|
|
$special_folders[4] = "INBOX.Templates";
|
|
$special_folders[4] = "INBOX.Templates";
|
|
|
|
|
|
// Whether or not to list the special folders first (true/false)
|
|
// Whether or not to list the special folders first (true/false)
|
|
|
|
+ global $list_special_folders_first;
|
|
$list_special_folders_first = true;
|
|
$list_special_folders_first = true;
|
|
|
|
|
|
// Are all your folders subfolders of INBOX (i.e. cyrus IMAP server)
|
|
// Are all your folders subfolders of INBOX (i.e. cyrus IMAP server)
|
|
// If you are not sure, set it to false.
|
|
// If you are not sure, set it to false.
|
|
|
|
+ global $default_sub_of_inbox;
|
|
$default_sub_of_inbox = true;
|
|
$default_sub_of_inbox = true;
|
|
|
|
|
|
// Some IMAP daemons (UW) handle folders weird. They only allow a
|
|
// Some IMAP daemons (UW) handle folders weird. They only allow a
|
|
@@ -130,13 +148,14 @@
|
|
// If this option confuses you, make it "true". You can't hurt
|
|
// If this option confuses you, make it "true". You can't hurt
|
|
// anything if it's true, but some servers will respond weird if it's
|
|
// anything if it's true, but some servers will respond weird if it's
|
|
// false. (Cyrus works fine whether it's true OR false).
|
|
// false. (Cyrus works fine whether it's true OR false).
|
|
-
|
|
|
|
|
|
+ global $show_contain_subfolders_option;
|
|
$show_contain_subfolders_option = false;
|
|
$show_contain_subfolders_option = false;
|
|
|
|
|
|
// This option controls what character set is used when sending mail
|
|
// This option controls what character set is used when sending mail
|
|
// and when sending HTMl to the browser. Do not set this to US-ASCII,
|
|
// and when sending HTMl to the browser. Do not set this to US-ASCII,
|
|
// use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
|
|
// use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
|
|
// since this implementation is faster than the alternatives.
|
|
// since this implementation is faster than the alternatives.
|
|
|
|
+ global $default_charset;
|
|
$default_charset = "iso-8859-1";
|
|
$default_charset = "iso-8859-1";
|
|
|
|
|
|
// Path to the data/ directory
|
|
// Path to the data/ directory
|
|
@@ -152,7 +171,7 @@
|
|
//
|
|
//
|
|
// Relative (to the config directory):
|
|
// Relative (to the config directory):
|
|
// $data_dir = "../data/";
|
|
// $data_dir = "../data/";
|
|
-
|
|
|
|
|
|
+ global $data_dir;
|
|
$data_dir = "../data/";
|
|
$data_dir = "../data/";
|
|
|
|
|
|
// Path to directory used for storing attachments while a mail is
|
|
// Path to directory used for storing attachments while a mail is
|
|
@@ -166,19 +185,19 @@
|
|
// is also impossible for the webserver to delete files lying around
|
|
// is also impossible for the webserver to delete files lying around
|
|
// there for too long.
|
|
// there for too long.
|
|
// - It should probably be another directory than data_dir.
|
|
// - It should probably be another directory than data_dir.
|
|
-
|
|
|
|
|
|
+ global $attachment_dir;
|
|
$attachment_dir = $data_dir;
|
|
$attachment_dir = $data_dir;
|
|
|
|
|
|
// This is the default size of the folder list. Default is 150,
|
|
// This is the default size of the folder list. Default is 150,
|
|
// but you can set it to whatever you wish.
|
|
// but you can set it to whatever you wish.
|
|
-
|
|
|
|
|
|
+ global $default_left_size;
|
|
$default_left_size = 150;
|
|
$default_left_size = 150;
|
|
|
|
|
|
// Some IMAP servers allow a username (like "bob") to log in if they use
|
|
// Some IMAP servers allow a username (like "bob") to log in if they use
|
|
// uppercase in their name (like "Bob" or "BOB"). This creates extra
|
|
// uppercase in their name (like "Bob" or "BOB"). This creates extra
|
|
// preference files. Toggling this option to true will transparently
|
|
// preference files. Toggling this option to true will transparently
|
|
// change all usernames to lowercase.
|
|
// change all usernames to lowercase.
|
|
-
|
|
|
|
|
|
+ global $force_username_lowercase;
|
|
$force_username_lowercase = false;
|
|
$force_username_lowercase = false;
|
|
|
|
|
|
|
|
|
|
@@ -190,6 +209,7 @@
|
|
//
|
|
//
|
|
// To add a new theme to the options that users can choose from, just add
|
|
// To add a new theme to the options that users can choose from, just add
|
|
// a new number to the array at the bottom, and follow the pattern.
|
|
// a new number to the array at the bottom, and follow the pattern.
|
|
|
|
+ global $theme;
|
|
|
|
|
|
// The first one HAS to be here, and is your system's default theme.
|
|
// The first one HAS to be here, and is your system's default theme.
|
|
// It can be any theme you want
|
|
// It can be any theme you want
|
|
@@ -247,6 +267,8 @@
|
|
// functions/abook_ldap_server.php for a list of possible
|
|
// functions/abook_ldap_server.php for a list of possible
|
|
// parameters
|
|
// parameters
|
|
//
|
|
//
|
|
|
|
+global $ldap_server;
|
|
|
|
+//
|
|
// EXAMPLE:
|
|
// EXAMPLE:
|
|
//
|
|
//
|
|
// $ldap_server[0] = Array(
|
|
// $ldap_server[0] = Array(
|
|
@@ -260,7 +282,7 @@
|
|
// address book searching.
|
|
// address book searching.
|
|
// true = javascript
|
|
// true = javascript
|
|
// false = html
|
|
// false = html
|
|
-
|
|
|
|
|
|
+ global $default_use_javascript_addr_book;
|
|
$default_use_javascript_addr_book = false;
|
|
$default_use_javascript_addr_book = false;
|
|
|
|
|
|
// these next two options set the defaults for the way that the users see
|
|
// these next two options set the defaults for the way that the users see
|
|
@@ -272,7 +294,7 @@
|
|
// $default_unseen_type specifies the type of notification to give the
|
|
// $default_unseen_type specifies the type of notification to give the
|
|
// users by default.
|
|
// users by default.
|
|
// 1=(4), 2=(4,25)
|
|
// 1=(4), 2=(4,25)
|
|
-
|
|
|
|
|
|
+ global $default_unseen_notify, $default_unseen_type;
|
|
$default_unseen_notify = 2;
|
|
$default_unseen_notify = 2;
|
|
$default_unseen_type = 1;
|
|
$default_unseen_type = 1;
|
|
|
|
|
|
@@ -280,9 +302,10 @@
|
|
// value in your time structure and if you are in a time zone that
|
|
// value in your time structure and if you are in a time zone that
|
|
// has a negative offset, you need to set this value to 1.
|
|
// has a negative offset, you need to set this value to 1.
|
|
// This is typically people in the US that are running Solaris 7.
|
|
// This is typically people in the US that are running Solaris 7.
|
|
-
|
|
|
|
|
|
+ global $invert_time;
|
|
$invert_time = false;
|
|
$invert_time = false;
|
|
|
|
|
|
|
|
+ global $plugins;
|
|
// To install plugins, just add elements to this array that have
|
|
// To install plugins, just add elements to this array that have
|
|
// the plugin directory name relative to the /plugins/ directory.
|
|
// the plugin directory name relative to the /plugins/ directory.
|
|
// For instance, for the "sqclock" plugin, you'd put a line like
|
|
// For instance, for the "sqclock" plugin, you'd put a line like
|