Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 271 lines (201 sloc) 10.324 kb
4e17e6c Thomas B. Initial revision
thomascube authored
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
5 | Main configuration file |
6 | |
7 | This file is part of the RoundCube Webmail client |
5349b78 Update copyright notice
svncommit authored
8 | Copyright (C) 2005-2007, RoundCube Dev. - Switzerland |
52c1f28 Thomas B. Minor bugfixes and SMTP support
thomascube authored
9 | Licensed under the GNU GPL |
4e17e6c Thomas B. Initial revision
thomascube authored
10 | |
11 +-----------------------------------------------------------------------+
12
13 */
14
15 $rcmail_config = array();
16
17
968bdc7 Thomas B. Improved SMTP script for sending mails. Now using the PEAR::Net_SMTP cla...
thomascube authored
18 // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
13c1afb Thomas B. Fixed some charset bugs
thomascube authored
19 $rcmail_config['debug_level'] = 1;
4e17e6c Thomas B. Initial revision
thomascube authored
20
6dc0269 Thomas B. Make message caching configurable
thomascube authored
21 // enable caching of messages and mailbox data in the local database.
22 // this is recommended if the IMAP server does not run on the same machine
23 $rcmail_config['enable_caching'] = TRUE;
24
cc95700 Thomas B. Added message cache garbage collector
thomascube authored
25 // lifetime of message cache
26 // possible units: s, m, h, d, w
27 $rcmail_config['message_cache_lifetime'] = '10d';
28
7902df4 Thomas B. Fixed SSL support; improved Courier compatibility; some visual enhanceme...
thomascube authored
29 // automatically create a new RoundCube user when log-in the first time.
7cc38e0 Thomas B. Added Finnish, Romanian and Chinese translation
thomascube authored
30 // a new user will be created once the IMAP login succeeds.
4e17e6c Thomas B. Initial revision
thomascube authored
31 // set to false if only registered users can use this service
32 $rcmail_config['auto_create_user'] = TRUE;
33
34 // the mail host chosen to perform the log-in
35 // leave blank to show a textbox at login, give a list of hosts
42b1135 Thomas B. Several bugfixes and feature improvements
thomascube authored
36 // to display a pulldown menu or set one host as string.
37 // To use SSL connection, enter ssl://hostname:993
4e17e6c Thomas B. Initial revision
thomascube authored
38 $rcmail_config['default_host'] = '';
39
42b1135 Thomas B. Several bugfixes and feature improvements
thomascube authored
40 // TCP port used for IMAP connections
41 $rcmail_config['default_port'] = 143;
42
0566adc Thomas B. Include host-specific configuration file
thomascube authored
43 // Automatically add this domain to user names for login
44 // Only for IMAP servers that require full e-mail addresses for login
45 // Specify an array with 'host' => 'domain' values to support multiple hosts
46 $rcmail_config['username_domain'] = '';
47
977a295 Thomas B. Usage of virtusertable; mail_domain for new users; Chinese and Turkish l...
thomascube authored
48 // This domain will be used to form e-mail addresses of new users
49 // Specify an array with 'host' => 'domain' values to support multiple hosts
13c1afb Thomas B. Fixed some charset bugs
thomascube authored
50 $rcmail_config['mail_domain'] = '';
977a295 Thomas B. Usage of virtusertable; mail_domain for new users; Chinese and Turkish l...
thomascube authored
51
52 // Path to a virtuser table file to resolve user names and e-mail addresses
53 $rcmail_config['virtuser_file'] = '';
54
f88d417 Thomas B. Applied several patches
thomascube authored
55 // Query to resolve user names and e-mail addresses from the database
56 // %u will be replaced with the current username for login.
57 // The query should select the user's e-mail address as first col
58 $rcmail_config['virtuser_query'] = '';
59
4e17e6c Thomas B. Initial revision
thomascube authored
60 // use this host for sending mails.
fd8c506 Thomas B. SMTPS support and minor bugfixes
thomascube authored
61 // to use SSL connection, set ssl://smtp.host.com
4e17e6c Thomas B. Initial revision
thomascube authored
62 // if left blank, the PHP mail() function is used
63 $rcmail_config['smtp_server'] = '';
64
fd8c506 Thomas B. SMTPS support and minor bugfixes
thomascube authored
65 // SMTP port (default is 25; 465 for SSL)
968bdc7 Thomas B. Improved SMTP script for sending mails. Now using the PEAR::Net_SMTP cla...
thomascube authored
66 $rcmail_config['smtp_port'] = 25;
67
d206c1f added smtp auth method setting through config file
svncommit authored
68 // SMTP username (if required) if you use %u as the username RoundCube
69 // will use the current username for login
4e17e6c Thomas B. Initial revision
thomascube authored
70 $rcmail_config['smtp_user'] = '';
71
d206c1f added smtp auth method setting through config file
svncommit authored
72 // SMTP password (if required) if you use %p as the password RoundCube
73 // will use the current user's password for login
4e17e6c Thomas B. Initial revision
thomascube authored
74 $rcmail_config['smtp_pass'] = '';
75
d206c1f added smtp auth method setting through config file
svncommit authored
76 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
77 // best server supported one)
78 $rcmail_config['smtp_auth_type'] = '';
79
aca3d25 Make smtp HELO/EHLO hostname configurable (closes #1484067)
svncommit authored
80 // SMTP HELO host
81 // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
82 // Leave this blank and you will get the server variable 'server_name' or
83 // localhost if that isn't defined.
84 $rcmail_config['smtp_helo_host'] = '';
85
4e17e6c Thomas B. Initial revision
thomascube authored
86 // Log sent messages
87 $rcmail_config['smtp_log'] = TRUE;
88
89 // these cols are shown in the message list
90 // available cols are: subject, from, to, cc, replyto, date, size, encoding
91 $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
92
93 // relative path to the skin folder
94 $rcmail_config['skin_path'] = 'skins/default/';
95
5349b78 Update copyright notice
svncommit authored
96 // includes should be interpreted as PHP files
e9ac143 Thomas B. Copy changes from r892 and r903
thomascube authored
97 $rcmail_config['skin_include_php'] = FALSE;
5eee009 Thomas B. Allow vars and PHP code in templates; improved page title; fixed #148439...
thomascube authored
98
4e17e6c Thomas B. Initial revision
thomascube authored
99 // use this folder to store temp files (must be writebale for apache user)
100 $rcmail_config['temp_dir'] = 'temp/';
101
fd8c506 Thomas B. SMTPS support and minor bugfixes
thomascube authored
102 // use this folder to store log files (must be writebale for apache user)
103 $rcmail_config['log_dir'] = 'logs/';
104
7902df4 Thomas B. Fixed SSL support; improved Courier compatibility; some visual enhanceme...
thomascube authored
105 // session lifetime in minutes
106 $rcmail_config['session_lifetime'] = 10;
107
4e17e6c Thomas B. Initial revision
thomascube authored
108 // check client IP in session athorization
aad6e2a Thomas B. New session authentication, should fix bugs #1483951 and #1484299; testi...
thomascube authored
109 $rcmail_config['ip_check'] = false;
110
111 // Use an additional frequently changing cookie to athenticate user sessions.
112 // There have been problems reported with this feature.
113 $rcmail_config['double_auth'] = false;
4e17e6c Thomas B. Initial revision
thomascube authored
114
bac7d17 Thomas B. Fixed bugs #1364122, #1468895, ticket #1483811 and other minor bugs
thomascube authored
115 // this key is used to encrypt the users imap password which is stored
116 // in the session record (and the client cookie if remember password is enabled).
117 // please provide a string of exactly 24 chars.
118 $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
119
58e3602 Thomas B. Bugfixes for encoding and sending with attachments
thomascube authored
120 // the default locale setting
f3b6599 Thomas B. Added patches for default language and sorting function
thomascube authored
121 $rcmail_config['locale_string'] = 'en';
4e17e6c Thomas B. Initial revision
thomascube authored
122
123 // use this format for short date display
124 $rcmail_config['date_short'] = 'D H:i';
125
126 // use this format for detailed date/time formatting
127 $rcmail_config['date_long'] = 'd.m.Y H:i';
128
8c8b2a4 Allow 12 hour date to display for emails sent today (Doug Mandell).
svncommit authored
129 // use this format for today's date display
130 $rcmail_config['date_today'] = 'H:i';
131
4e17e6c Thomas B. Initial revision
thomascube authored
132 // add this user-agent to message headers when sending
1cded85 Thomas B. Re-design of caching (new database table added\!); some bugfixes; Postgr...
thomascube authored
133 $rcmail_config['useragent'] = 'RoundCube Webmail/0.1b';
4e17e6c Thomas B. Initial revision
thomascube authored
134
15a9d1c Thomas B. Optimized loading time; added periodic mail check; added EXPUNGE command
thomascube authored
135 // use this name to compose page titles
136 $rcmail_config['product_name'] = 'RoundCube Webmail';
137
4e17e6c Thomas B. Initial revision
thomascube authored
138 // only list folders within this path
139 $rcmail_config['imap_root'] = '';
140
1966c53 Added Drafts support (Feature #1326839) (richs)
svncommit authored
141 // store draft message is this mailbox
142 // leave blank if draft messages should not be stored
143 $rcmail_config['drafts_mbox'] = 'Drafts';
144
b4b0817 Workaround for drag-drop using whitespace in FF, Junk emptying, misc fix...
svncommit authored
145 // store spam messages in this mailbox
146 $rcmail_config['junk_mbox'] = 'Junk';
147
4e17e6c Thomas B. Initial revision
thomascube authored
148 // store sent message is this mailbox
149 // leave blank if sent messages should not be stored
150 $rcmail_config['sent_mbox'] = 'Sent';
151
152 // move messages to this folder when deleting them
153 // leave blank if they should be deleted directly
154 $rcmail_config['trash_mbox'] = 'Trash';
155
fa4cd20 Thomas B. Several bugfixes; see CHANGELOG for details
thomascube authored
156 // display these folders separately in the mailbox list.
157 // these folders will automatically be created if they do not exist
4e17e6c Thomas B. Initial revision
thomascube authored
158 $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
159
c8c1e0e Renameable folders, mail-checking changes, other fixes (richs)
svncommit authored
160 // protect the default folders from renames, deletes, and subscription changes
161 $rcmail_config['protect_default_folders'] = TRUE;
162
3baec23 Thomas B. Additional config parameter to show/hide deleted messages
thomascube authored
163 // Set TRUE if deleted messages should not be displayed
164 // This will make the application run slower
165 $rcmail_config['skip_deleted'] = FALSE;
166
4b3af37 Added new delete behavior options.
svncommit authored
167 // Set true to Mark deleted messages as read as well as deleted
168 // False means that a message's read status is not affected by marking it as deleted
169 $rcmail_config['read_when_deleted'] = TRUE;
170
171 // When a Trash folder is not present and a message is deleted, flag
172 // the message for deletion rather than deleting it immediately. Setting this to
173 // false causes deleted messages to be permanantly removed if there is no Trash folder
174 $rcmail_config['flag_for_deletion'] = TRUE;
175
9960666 Thomas B. Added support for Nox Spell Server; plus small bugfixes
thomascube authored
176 // Make use of the built-in spell checker. It is based on GoogieSpell.
e9ac143 Thomas B. Copy changes from r892 and r903
thomascube authored
177 // Since Google only accepts connections over https your PHP installatation
178 // requires to be compiled with Open SSL support
ed5d29f Thomas B. Finalized GoogieSpell integration
thomascube authored
179 $rcmail_config['enable_spellcheck'] = TRUE;
180
9960666 Thomas B. Added support for Nox Spell Server; plus small bugfixes
thomascube authored
181 // For a locally installed Nox Spell Server, please specify the URI to call it.
182 // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
183 // Leave empty to use the Google spell checking service, what means
184 // that the message content will be sent to Google in order to check spelling
185 $rcmail_config['spellcheck_uri'] = '';
186
187 // These languages can be selected for spell checking.
188 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
189 // Leave empty for default set of Google spell check languages
190 $rcmail_config['spellcheck_languages'] = NULL;
191
4b0f65a Thomas B. Fixed minor bugs
thomascube authored
192 // path to a text file which will be added to each sent message
193 // paths are relative to the RoundCube root folder
194 $rcmail_config['generic_message_footer'] = '';
195
196 // this string is used as a delimiter for message headers when sending
4647e1b Thomas B. Started implementing search function
thomascube authored
197 // leave empty for auto-detection
198 $rcmail_config['mail_header_delimiter'] = NULL;
b076a46 Thomas B. Finished message sorting and fixed some skin issues
thomascube authored
199
eea43f7 better explanation of ldap_public in config file. changed check for ldap...
svncommit authored
200 // in order to enable public ldap search, create a config array
201 // like the Verisign example below. if you would like to test,
202 // simply uncomment the Verisign example.
203 /**
f115416 Thomas B. Merged branch devel-addressbook from r443 back to trunk
thomascube authored
204 * example config for Verisign directory
eea43f7 better explanation of ldap_public in config file. changed check for ldap...
svncommit authored
205 *
f115416 Thomas B. Merged branch devel-addressbook from r443 back to trunk
thomascube authored
206 * $rcmail_config['ldap_public']['Verisign'] = array(
207 * 'name' => 'Verisign.com',
208 * 'hosts' => array('directory.verisign.com'),
209 * 'port' => 389,
210 * 'base_dn' => '',
e3caaf5 Thomas B. Use global filters and bind username/ for Ldap searches (#1484159)
thomascube authored
211 * 'bind_dn' => '',
212 * 'bind_pass' => '',
03b2717 Thomas B. Applied patch for LDAP version (#1484552)
thomascube authored
213 * 'ldap_version' => 3, // using LDAPv3
f115416 Thomas B. Merged branch devel-addressbook from r443 back to trunk
thomascube authored
214 * 'search_fields' => array('mail', 'cn'), // fields to search in
215 * 'name_field' => 'cn', // this field represents the contact's name
216 * 'email_field' => 'mail', // this field represents the contact's e-mail
6b603da Thomas B. LDAP improvements
thomascube authored
217 * 'surname_field' => 'sn', // this field represents the contact's last name
218 * 'firstname_field' => 'gn', // this field represents the contact's first name
f115416 Thomas B. Merged branch devel-addressbook from r443 back to trunk
thomascube authored
219 * 'scope' => 'sub', // search mode: sub|base|list
6b603da Thomas B. LDAP improvements
thomascube authored
220 * 'filter' => '', // used for basic listing (if not empty) and will be &'d with search queries. ex: (status=act)
f115416 Thomas B. Merged branch devel-addressbook from r443 back to trunk
thomascube authored
221 * 'fuzzy_search' => true); // server allows wildcard search
eea43f7 better explanation of ldap_public in config file. changed check for ldap...
svncommit authored
222 */
d1d2c4f adding files and modifications for public ldap search
svncommit authored
223
b190970 Thomas B. Introducing preview pane and conditional skin tags
thomascube authored
224 // don't allow these settings to be overriden by the user
225 $rcmail_config['dont_override'] = array();
226
d656f1c Thomas B. Made automatic draft saving configurable
thomascube authored
227 // list of configuration option names that need to be available in Javascript.
228 $rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion');
229
9606ffb Thomas B. Changed behavior to include host-specific configuration (Bug #1483849)
thomascube authored
230 // try to load host-specific configuration
231 $rcmail_config['include_host_config'] = FALSE;
232
4e17e6c Thomas B. Initial revision
thomascube authored
233
234 /***** these settings can be overwritten by user's preferences *****/
235
236 // show up to X items in list view
237 $rcmail_config['pagesize'] = 40;
238
239 // use this timezone to display date/time
d7d6638 Thomas B. Use server's timezone for defaults (#1484288)
thomascube authored
240 $rcmail_config['timezone'] = intval(date('O'))/100 - date('I');
4e17e6c Thomas B. Initial revision
thomascube authored
241
5349b78 Update copyright notice
svncommit authored
242 // is daylight saving On?
d7d6638 Thomas B. Use server's timezone for defaults (#1484288)
thomascube authored
243 $rcmail_config['dst_active'] = (bool)date('I');
4647e1b Thomas B. Started implementing search function
thomascube authored
244
4e17e6c Thomas B. Initial revision
thomascube authored
245 // prefer displaying HTML messages
246 $rcmail_config['prefer_html'] = TRUE;
247
b190970 Thomas B. Introducing preview pane and conditional skin tags
thomascube authored
248 // compose html formatted messages by default
249 $rcmail_config['htmleditor'] = TRUE;
250
30233b8 Thomas B. Minor bugfixes and correction of confusing License notfications
thomascube authored
251 // show pretty dates as standard
252 $rcmail_config['prettydate'] = TRUE;
253
86f1721 Thomas B. Added sort order saving patch by Jacob Brunson
thomascube authored
254 // default sort col
255 $rcmail_config['message_sort_col'] = 'date';
256
257 // default sort order
258 $rcmail_config['message_sort_order'] = 'DESC';
259
d656f1c Thomas B. Made automatic draft saving configurable
thomascube authored
260 // save compose message every 300 seconds (5min)
261 $rcmail_config['draft_autosave'] = 300;
0566adc Thomas B. Include host-specific configuration file
thomascube authored
262
b190970 Thomas B. Introducing preview pane and conditional skin tags
thomascube authored
263 // default setting if preview pane is enabled
264 $rcmail_config['preview_pane'] = FALSE;
265
7dce969 Till! + added new config option: #1484484
till authored
266 // don't let users set pagesize to more than this value if set
267 $rcmail_config['max_pagesize'] = 200;
268
4e17e6c Thomas B. Initial revision
thomascube authored
269 // end of config file
1966c53 Added Drafts support (Feature #1326839) (richs)
svncommit authored
270 ?>
Something went wrong with that request. Please try again.