Aleksander Machniak
2012-10-24 e04e3144407b7a863999d8aeaf6c3a653219359f
commit | author | age
4e17e6 1 <?php
T 2
3 /*
4  +-----------------------------------------------------------------------+
5  | Main configuration file                                               |
6  |                                                                       |
e019f2 7  | This file is part of the Roundcube Webmail client                     |
62c861 8  | Copyright (C) 2005-2011, The Roundcube Dev Team                       |
7fe381 9  |                                                                       |
T 10  | Licensed under the GNU General Public License version 3 or            |
11  | any later version with exceptions for skins & plugins.                |
12  | See the README file for a full license statement.                     |
4e17e6 13  |                                                                       |
T 14  +-----------------------------------------------------------------------+
15
16 */
17
18 $rcmail_config = array();
19
2d08c5 20 // ----------------------------------
A 21 // LOGGING/DEBUGGING
22 // ----------------------------------
23
e077c1 24 // system error reporting, sum of: 1 = log; 4 = show, 8 = trace
13c1af 25 $rcmail_config['debug_level'] = 1;
4e17e6 26
b77d0d 27 // log driver:  'syslog' or 'file'.
A 28 $rcmail_config['log_driver'] = 'file';
29
0ad27c 30 // date format for log entries
A 31 // (read http://php.net/manual/en/function.date.php for all format characters)  
32 $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
33
b77d0d 34 // Syslog ident string to use, if using the 'syslog' log driver.
A 35 $rcmail_config['syslog_id'] = 'roundcube';
36
37 // Syslog facility to use, if using the 'syslog' log driver.
38 // For possible values see installer or http://php.net/manual/en/function.openlog.php
39 $rcmail_config['syslog_facility'] = LOG_USER;
40
3e3429 41 // Log sent messages to <log_dir>/sendmail or to syslog
2d08c5 42 $rcmail_config['smtp_log'] = true;
b77d0d 43
3e3429 44 // Log successful logins to <log_dir>/userlogins or to syslog
2d08c5 45 $rcmail_config['log_logins'] = false;
b77d0d 46
fcc7f8 47 // Log session authentication errors to <log_dir>/session or to syslog
T 48 $rcmail_config['log_session'] = false;
49
2d08c5 50 // Log SQL queries to <log_dir>/sql or to syslog
A 51 $rcmail_config['sql_debug'] = false;
cc97ea 52
2d08c5 53 // Log IMAP conversation to <log_dir>/imap or to syslog
A 54 $rcmail_config['imap_debug'] = false;
6dc026 55
2d08c5 56 // Log LDAP conversation to <log_dir>/ldap or to syslog
A 57 $rcmail_config['ldap_debug'] = false;
cc9570 58
2d08c5 59 // Log SMTP conversation to <log_dir>/smtp or to syslog
A 60 $rcmail_config['smtp_debug'] = false;
f5d61d 61
2d08c5 62 // ----------------------------------
A 63 // IMAP
64 // ----------------------------------
4e17e6 65
T 66 // the mail host chosen to perform the log-in
67 // leave blank to show a textbox at login, give a list of hosts
42b113 68 // to display a pulldown menu or set one host as string.
f86e8f 69 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
bb8721 70 // Supported replacement variables:
d359dc 71 // %n - hostname ($_SERVER['SERVER_NAME'])
B 72 // %t - hostname without the first part
73 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
b04c51 74 // %s - domain name after the '@' from e-mail address provided at login screen
d359dc 75 // For example %n = mail.domain.tld, %t = domain.tld
4e17e6 76 $rcmail_config['default_host'] = '';
T 77
42b113 78 // TCP port used for IMAP connections
T 79 $rcmail_config['default_port'] = 143;
80
00f347 81 // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use
4dd417 82 // best server supported one)
b026c3 83 $rcmail_config['imap_auth_type'] = null;
T 84
00290a 85 // If you know your imap's folder delimiter, you can specify it here.
A 86 // Otherwise it will be determined automatically
030c84 87 $rcmail_config['imap_delimiter'] = null;
A 88
00290a 89 // If IMAP server doesn't support NAMESPACE extension, but you're
A 90 // using shared folders or personal root folder is non-empty, you'll need to
91 // set these options. All can be strings or arrays of strings.
e3af1f 92 // Folders need to be ended with directory separator, e.g. "INBOX."
A 93 // (special directory "~" is an exception to this rule)
02491a 94 // These can be used also to overwrite server's namespaces
00290a 95 $rcmail_config['imap_ns_personal'] = null;
A 96 $rcmail_config['imap_ns_other']    = null;
97 $rcmail_config['imap_ns_shared']   = null;
98
d8c440 99 // By default IMAP capabilities are readed after connection to IMAP server
A 100 // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
101 // after login. Set to True if you've got this case.
102 $rcmail_config['imap_force_caps'] = false;
103
f75f65 104 // By default list of subscribed folders is determined using LIST-EXTENDED
A 105 // extension if available. Some servers (dovecot 1.x) returns wrong results
106 // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
107 // Enable this option to force LSUB command usage instead.
108 $rcmail_config['imap_force_lsub'] = false;
109
3c5489 110 // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
AM 111 // Enable this option to force listing of folders in all namespaces
112 $rcmail_config['imap_force_ns'] = false;
113
f07d23 114 // IMAP connection timeout, in seconds. Default: 0 (no limit)
A 115 $rcmail_config['imap_timeout'] = 0;
116
a1fe6b 117 // Optional IMAP authentication identifier to be used as authorization proxy
A 118 $rcmail_config['imap_auth_cid'] = null;
119
120 // Optional IMAP authentication password to be used for imap_auth_cid
121 $rcmail_config['imap_auth_pw'] = null;
122
8edb3d 123 // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
5cf5ee 124 $rcmail_config['imap_cache'] = null;
A 125
126 // Enables messages cache. Only 'db' cache is supported.
127 $rcmail_config['messages_cache'] = false;
128
129
2d08c5 130 // ----------------------------------
A 131 // SMTP
132 // ----------------------------------
f88d41 133
c3b676 134 // SMTP server host (for sending mails).
2d08c5 135 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
c3b676 136 // If left blank, the PHP mail() function is used
bb8721 137 // Supported replacement variables:
A 138 // %h - user's IMAP hostname
d359dc 139 // %n - hostname ($_SERVER['SERVER_NAME'])
B 140 // %t - hostname without the first part
141 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 142 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 143 // For example %n = mail.domain.tld, %t = domain.tld
4e17e6 144 $rcmail_config['smtp_server'] = '';
T 145
e52aae 146 // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
T 147 // deprecated SSL over SMTP (aka SMTPS))
968bdc 148 $rcmail_config['smtp_port'] = 25;
T 149
e019f2 150 // SMTP username (if required) if you use %u as the username Roundcube
d206c1 151 // will use the current username for login
4e17e6 152 $rcmail_config['smtp_user'] = '';
T 153
e019f2 154 // SMTP password (if required) if you use %p as the password Roundcube
d206c1 155 // will use the current user's password for login
4e17e6 156 $rcmail_config['smtp_pass'] = '';
T 157
d206c1 158 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
S 159 // best server supported one)
160 $rcmail_config['smtp_auth_type'] = '';
161
63d4d6 162 // Optional SMTP authentication identifier to be used as authorization proxy
A 163 $rcmail_config['smtp_auth_cid'] = null;
164
a1fe6b 165 // Optional SMTP authentication password to be used for smtp_auth_cid
63d4d6 166 $rcmail_config['smtp_auth_pw'] = null;
a39212 167
aca3d2 168 // SMTP HELO host 
S 169 // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
170 // Leave this blank and you will get the server variable 'server_name' or 
171 // localhost if that isn't defined. 
172 $rcmail_config['smtp_helo_host'] = '';
173
f07d23 174 // SMTP connection timeout, in seconds. Default: 0 (no limit)
A 175 $rcmail_config['smtp_timeout'] = 0;
176
2d08c5 177 // ----------------------------------
A 178 // SYSTEM
179 // ----------------------------------
64608b 180
2d08c5 181 // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
A 182 // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
183 $rcmail_config['enable_installer'] = false;
4e17e6 184
e04e31 185 // don't allow these settings to be overriden by the user
AM 186 $rcmail_config['dont_override'] = array();
187
c04b23 188 // provide an URL where a user can get support for this Roundcube installation
T 189 // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
190 $rcmail_config['support_url'] = '';
191
192 // replace Roundcube logo with this image
193 // specify an URL relative to the document root of this Roundcube installation
194 $rcmail_config['skin_logo'] = null;
195
196 // automatically create a new Roundcube user when log-in the first time.
197 // a new user will be created once the IMAP login succeeds.
198 // set to false if only registered users can use this service
199 $rcmail_config['auto_create_user'] = true;
200
565c47 201 // Enables possibility to log in using email address from user identities
AM 202 $rcmail_config['user_aliases'] = false;
203
2d08c5 204 // use this folder to store log files (must be writeable for apache user)
A 205 // This is used by the 'file' log driver.
206 $rcmail_config['log_dir'] = 'logs/';
d559cb 207
2d08c5 208 // use this folder to store temp files (must be writeable for apache user)
A 209 $rcmail_config['temp_dir'] = 'temp/';
010274 210
2d08c5 211 // lifetime of message cache
A 212 // possible units: s, m, h, d, w
213 $rcmail_config['message_cache_lifetime'] = '10d';
19862b 214
2d08c5 215 // enforce connections over https
A 216 // with this option enabled, all non-secure connections will be redirected.
217 // set the port for the ssl connection as value of this option if it differs from the default 443
218 $rcmail_config['force_https'] = false;
acb08f 219
00e18b 220 // tell PHP that it should work as under secure connection
A 221 // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
222 // e.g. when you're running Roundcube behind a https proxy
377bc6 223 // this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
00e18b 224 $rcmail_config['use_https'] = false;
A 225
1cca4f 226 // Allow browser-autocompletion on login form.
A 227 // 0 - disabled, 1 - username and host only, 2 - username, host, password
228 $rcmail_config['login_autocomplete'] = 0;
fbe24e 229
c72325 230 // Forces conversion of logins to lower case.
AM 231 // 0 - disabled, 1 - only domain part, 2 - domain and local part.
df95e7 232 // If users authentication is case-insensitive this must be enabled.
AM 233 // Note: After enabling it all user records need to be updated, e.g. with query:
234 //       UPDATE users SET username = LOWER(username);
235 $rcmail_config['login_lc'] = 2;
ae39c4 236
95d90f 237 // Includes should be interpreted as PHP files
2d08c5 238 $rcmail_config['skin_include_php'] = false;
fd8c50 239
b6267d 240 // display software version on login screen
TB 241 $rcmail_config['display_version'] = false;
242
95d90f 243 // Session lifetime in minutes
A 244 // must be greater than 'keep_alive'/60
7902df 245 $rcmail_config['session_lifetime'] = 10;
T 246
ae7027 247 // Session domain: .example.org
cf2da2 248 $rcmail_config['session_domain'] = '';
T 249
ae7027 250 // Session name. Default: 'roundcube_sessid'
bd34ca 251 $rcmail_config['session_name'] = null;
A 252
ae7027 253 // Session path. Defaults to PHP session.cookie_path setting.
AM 254 $rcmail_config['session_path'] = null;
255
63e992 256 // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
T 257 // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
258 // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
259 $rcmail_config['session_storage'] = 'db';
260
261 // Use these hosts for accessing memcached
71ee56 262 // Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
AM 263 $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
63e992 264
4e17e6 265 // check client IP in session athorization
aad6e2 266 $rcmail_config['ip_check'] = false;
4e17e6 267
a77cf2 268 // check referer of incoming requests
T 269 $rcmail_config['referer_check'] = false;
270
c170bf 271 // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
T 272 // Possible values: sameorigin|deny. Set to false in order to disable sending them
67eecd 273 $rcmail_config['x_frame_options'] = 'sameorigin';
c170bf 274
bac7d1 275 // this key is used to encrypt the users imap password which is stored
T 276 // in the session record (and the client cookie if remember password is enabled).
277 // please provide a string of exactly 24 chars.
278 $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
279
2d08c5 280 // Automatically add this domain to user names for login
A 281 // Only for IMAP servers that require full e-mail addresses for login
282 // Specify an array with 'host' => 'domain' values to support multiple hosts
6a642d 283 // Supported replacement variables:
A 284 // %h - user's IMAP hostname
d359dc 285 // %n - hostname ($_SERVER['SERVER_NAME'])
B 286 // %t - hostname without the first part
287 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 288 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 289 // For example %n = mail.domain.tld, %t = domain.tld
2d08c5 290 $rcmail_config['username_domain'] = '';
A 291
292 // This domain will be used to form e-mail addresses of new users
293 // Specify an array with 'host' => 'domain' values to support multiple hosts
bb8721 294 // Supported replacement variables:
A 295 // %h - user's IMAP hostname
296 // %n - http hostname ($_SERVER['SERVER_NAME'])
297 // %d - domain (http hostname without the first part)
11be93 298 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 299 // For example %n = mail.domain.tld, %t = domain.tld
2d08c5 300 $rcmail_config['mail_domain'] = '';
A 301
302 // Password charset.
303 // Use it if your authentication backend doesn't support UTF-8.
304 // Defaults to ISO-8859-1 for backward compatibility
305 $rcmail_config['password_charset'] = 'ISO-8859-1';
306
307 // How many seconds must pass between emails sent by a user
308 $rcmail_config['sendmail_delay'] = 0;
309
751b22 310 // Maximum number of recipients per message. Default: 0 (no limit)
A 311 $rcmail_config['max_recipients'] = 0; 
312
d1851b 313 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
T 314 // If 'max_recipients' is set this value should be less or equal
315 $rcmail_config['max_group_members'] = 0; 
316
2d08c5 317 // add this user-agent to message headers when sending
6b6f2e 318 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
2d08c5 319
A 320 // use this name to compose page titles
6b6f2e 321 $rcmail_config['product_name'] = 'Roundcube Webmail';
2d08c5 322
A 323 // try to load host-specific configuration
324 // see http://trac.roundcube.net/wiki/Howto_Config for more details
325 $rcmail_config['include_host_config'] = false;
326
327 // path to a text file which will be added to each sent message
e019f2 328 // paths are relative to the Roundcube root folder
2d08c5 329 $rcmail_config['generic_message_footer'] = '';
A 330
5852c1 331 // path to a text file which will be added to each sent HTML message
e019f2 332 // paths are relative to the Roundcube root folder
5852c1 333 $rcmail_config['generic_message_footer_html'] = '';
A 334
2d08c5 335 // add a received header to outgoing mails containing the creators IP and hostname
A 336 $rcmail_config['http_received_header'] = false;
337
338 // Whether or not to encrypt the IP address and the host name
339 // these could, in some circles, be considered as sensitive information;
340 // however, for the administrator, these could be invaluable help
341 // when tracking down issues.
342 $rcmail_config['http_received_header_encrypt'] = false;
343
ac8edb 344 // This string is used as a delimiter for message headers when sending
A 345 // a message via mail() function. Leave empty for auto-detection
2d08c5 346 $rcmail_config['mail_header_delimiter'] = NULL;
A 347
6b6f2e 348 // number of chars allowed for line when wrapping text.
T 349 // text wrapping is done when composing/sending messages
c769c6 350 $rcmail_config['line_length'] = 72;
6b6f2e 351
T 352 // send plaintext messages as format=flowed
353 $rcmail_config['send_format_flowed'] = true;
2d08c5 354
A 355 // Set identities access level:
356 // 0 - many identities with possibility to edit all params
357 // 1 - many identities with possibility to edit all params but not email address
358 // 2 - one identity with possibility to edit all params
359 // 3 - one identity with possibility to edit all params but not email address
360 $rcmail_config['identities_level'] = 0;
361
f7b58a 362 // Mimetypes supported by the browser.
T 363 // attachments of these types will open in a preview window
364 // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
365 $rcmail_config['client_mimetypes'] = null;  # null == default
366
2d08c5 367 // mime magic database
A 368 $rcmail_config['mime_magic'] = '/usr/share/misc/magic';
369
0501b6 370 // path to imagemagick identify binary
T 371 $rcmail_config['im_identify_path'] = null;
372
373 // path to imagemagick convert binary
374 $rcmail_config['im_convert_path'] = null;
375
376 // maximum size of uploaded contact photos in pixel
377 $rcmail_config['contact_photo_size'] = 160;
378
2d08c5 379 // Enable DNS checking for e-mail address validation
A 380 $rcmail_config['email_dns_check'] = false;
381
e04e31 382 // Disables saving sent messages in Sent folder (like gmail) (Default: false)
AM 383 // Note: useful when SMTP server stores sent mail in user mailbox
384 $rcmail_config['no_save_sent_messages'] = false;
385
2d08c5 386 // ----------------------------------
A 387 // PLUGINS
388 // ----------------------------------
389
390 // List of active plugins (in plugins/ directory)
391 $rcmail_config['plugins'] = array();
392
393 // ----------------------------------
394 // USER INTERFACE
395 // ----------------------------------
396
f52c93 397 // default messages sort column. Use empty value for default server's sorting, 
e0efd8 398 // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
f52c93 399 $rcmail_config['message_sort_col'] = '';
2d08c5 400
f52c93 401 // default messages sort order
2d08c5 402 $rcmail_config['message_sort_order'] = 'DESC';
A 403
404 // These cols are shown in the message list. Available cols are:
e0efd8 405 // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
AM 406 $rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
2d08c5 407
c8ae24 408 // the default locale setting (leave empty for auto-detection)
T 409 // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
410 $rcmail_config['language'] = null;
4e17e6 411
1cc9e2 412 // use this format for date display (date or strftime format)
T 413 $rcmail_config['date_format'] = 'Y-m-d';
414
415 // give this choice of date formats to the user to select from
416 $rcmail_config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
417
418 // use this format for time display (date or strftime format)
419 $rcmail_config['time_format'] = 'H:i';
420
421 // give this choice of time formats to the user to select from
422 $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
423
424 // use this format for short date display (derived from date_format and time_format)
4e17e6 425 $rcmail_config['date_short'] = 'D H:i';
T 426
1cc9e2 427 // use this format for detailed date/time formatting (derived from date_format and time_format)
T 428 $rcmail_config['date_long'] = 'Y-m-d H:i';
4e17e6 429
1966c5 430 // store draft message is this mailbox
S 431 // leave blank if draft messages should not be stored
d08333 432 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
1966c5 433 $rcmail_config['drafts_mbox'] = 'Drafts';
S 434
b4b081 435 // store spam messages in this mailbox
d08333 436 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
b4b081 437 $rcmail_config['junk_mbox'] = 'Junk';
S 438
4e17e6 439 // store sent message is this mailbox
T 440 // leave blank if sent messages should not be stored
d08333 441 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
4e17e6 442 $rcmail_config['sent_mbox'] = 'Sent';
T 443
444 // move messages to this folder when deleting them
445 // leave blank if they should be deleted directly
d08333 446 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
4e17e6 447 $rcmail_config['trash_mbox'] = 'Trash';
T 448
fa4cd2 449 // display these folders separately in the mailbox list.
83ce4b 450 // these folders will also be displayed with localized names
d08333 451 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
bf9dde 452 $rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
4e17e6 453
95ebcd 454 // automatically create the above listed default folders on first login
2d08c5 455 $rcmail_config['create_default_folders'] = false;
b2ff3d 456
c8c1e0 457 // protect the default folders from renames, deletes, and subscription changes
2d08c5 458 $rcmail_config['protect_default_folders'] = true;
c8c1e0 459
2d08c5 460 // if in your system 0 quota means no limit set this option to true 
A 461 $rcmail_config['quota_zero_as_unlimited'] = false;
876b15 462
996066 463 // Make use of the built-in spell checker. It is based on GoogieSpell.
e9ac14 464 // Since Google only accepts connections over https your PHP installatation
T 465 // requires to be compiled with Open SSL support
2d08c5 466 $rcmail_config['enable_spellcheck'] = true;
ed5d29 467
66df08 468 // Enables spellchecker exceptions dictionary.
A 469 // Setting it to 'shared' will make the dictionary shared by all users.
470 $rcmail_config['spellcheck_dictionary'] = false;
471
5d2b7f 472 // Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
T 473 // but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
474 $rcmail_config['spellcheck_engine'] = 'googie';
475
996066 476 // For a locally installed Nox Spell Server, please specify the URI to call it.
T 477 // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
478 // Leave empty to use the Google spell checking service, what means
479 // that the message content will be sent to Google in order to check spelling
480 $rcmail_config['spellcheck_uri'] = '';
481
482 // These languages can be selected for spell checking.
483 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
01a8c5 484 // Leave empty for default set of available language.
996066 485 $rcmail_config['spellcheck_languages'] = NULL;
T 486
66df08 487 // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
A 488 $rcmail_config['spellcheck_ignore_caps'] = false;
489
490 // Makes that words with numbers will be ignored (e.g. g00gle)
491 $rcmail_config['spellcheck_ignore_nums'] = false;
492
493 // Makes that words with symbols will be ignored (e.g. g@@gle)
494 $rcmail_config['spellcheck_ignore_syms'] = false;
495
62c861 496 // Use this char/string to separate recipients when composing a new message
T 497 $rcmail_config['recipients_separator'] = ',';
498
2d08c5 499 // don't let users set pagesize to more than this value if set
A 500 $rcmail_config['max_pagesize'] = 200;
967b34 501
2d08c5 502 // Minimal value of user's 'keep_alive' setting (in seconds)
A 503 // Must be less than 'session_lifetime'
504 $rcmail_config['min_keep_alive'] = 60;
2471d3 505
4171c5 506 // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
A 507 // By default refresh time is set to 1 second. You can set this value to true
508 // or any integer value indicating number of seconds.
509 $rcmail_config['upload_progress'] = false;
510
63fda8 511 // Specifies for how many seconds the Undo button will be available
A 512 // after object delete action. Currently used with supporting address book sources.
513 // Setting it to 0, disables the feature.
514 $rcmail_config['undo_timeout'] = 0;
515
2d08c5 516 // ----------------------------------
A 517 // ADDRESSBOOK SETTINGS
518 // ----------------------------------
aec82b 519
6153e2 520 // This indicates which type of address book to use. Possible choises:
A 521 // 'sql' (default) and 'ldap'.
522 // If set to 'ldap' then it will look at using the first writable LDAP
4f9c83 523 // address book as the primary address book and it will not display the
S 524 // SQL address book in the 'Address Book' view.
6153e2 525 $rcmail_config['address_book_type'] = 'sql';
4f9c83 526
S 527 // In order to enable public ldap search, configure an array like the Verisign
528 // example further below. if you would like to test, simply uncomment the example.
ecf295 529 // Array key must contain only safe characters, ie. a-zA-Z0-9_
5f25a1 530 $rcmail_config['ldap_public'] = array();
T 531
4f9c83 532 // If you are going to use LDAP for individual address books, you will need to 
S 533 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
534 //
535 // The recommended directory structure for LDAP is to store all the address book entries
536 // under the users main entry, e.g.:
537 //
538 //  o=root
539 //   ou=people
540 //    uid=user@domain
3b9a53 541 //  mail=contact@contactdomain
T 542 //
4f9c83 543 // So the base_dn would be uid=%fu,ou=people,o=root
S 544 // The bind_dn would be the same as based_dn or some super user login.
3b9a53 545 /* 
f11541 546  * example config for Verisign directory
eea43f 547  *
3b9a53 548 $rcmail_config['ldap_public']['Verisign'] = array(
T 549   'name'          => 'Verisign.com',
bb8721 550   // Replacement variables supported in host names:
A 551   // %h - user's IMAP hostname
d359dc 552   // %n - hostname ($_SERVER['SERVER_NAME'])
B 553   // %t - hostname without the first part
554   // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 555   // %z - IMAP domain (IMAP hostname without the first part)
d359dc 556   // For example %n = mail.domain.tld, %t = domain.tld
3b9a53 557   'hosts'         => array('directory.verisign.com'),
T 558   'port'          => 389,
1148c6 559   'use_tls'          => false,
0c5210 560   'ldap_version'  => 3,       // using LDAPv3
3b9a53 561   'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
T 562   // %fu - The full username provided, assumes the username is an email
563   //       address, uses the username_domain value if not an email address.
564   // %u  - The username prior to the '@'.
565   // %d  - The domain name after the '@'.
f76765 566   // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
1148c6 567   // %dn - DN found by ldap search when search_filter/search_base_dn are used
3b9a53 568   'base_dn'       => '',
T 569   'bind_dn'       => '',
570   'bind_pass'     => '',
1148c6 571   // It's possible to bind for an individual address book
A 572   // The login name is used to search for the DN to bind with
573   'search_base_dn' => '',
574   'search_filter'  => '',   // e.g. '(&(objectClass=posixAccount)(uid=%u))'
2d08ec 575   // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
A 576   'search_bind_dn' => '',
577   'search_bind_pw' => '',
c041d5 578   // Default for %dn variable if search doesn't return DN value
A 579   'search_dn_default' => '',
4d982d 580   // Optional authentication identifier to be used as SASL authorization proxy
A 581   // bind_dn need to be empty
582   'auth_cid'       => '',
583   // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
584   'auth_method'    => '',
2d3e2b 585   // Indicates if the addressbook shall be hidden from the list.
5c9d1f 586   // With this option enabled you can still search/view contacts.
A 587   'hidden'        => false,
2d3e2b 588   // Indicates if the addressbook shall not list contacts but only allows searching.
T 589   'searchonly'    => false,
0c5210 590   // Indicates if we can write to the LDAP directory or not.
3b9a53 591   // If writable is true then these fields need to be populated:
T 592   // LDAP_Object_Classes, required_fields, LDAP_rdn
0c5210 593   'writable'       => false,
A 594   // To create a new contact these are the object classes to specify
595   // (or any other classes you wish to use).
596   'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
597   // The RDN field that is used for new entries, this field needs
598   // to be one of the search_fields, the base of base_dn is appended
599   // to the RDN to insert into the LDAP directory.
ca3d76 600   'LDAP_rdn'       => 'cn',
0c5210 601   // The required fields needed to build a new contact as required by
A 602   // the object classes (can include additional fields not required by the object classes).
603   'required_fields' => array('cn', 'sn', 'mail'),
604   'search_fields'   => array('mail', 'cn'),  // fields to search in
605   // mapping of contact fields to directory attributes
a605b2 606   //   for every attribute one can specify the number of values (limit) allowed.
T 607   //   default is 1, a wildcard * means unlimited
0c5210 608   'fieldmap' => array(
a605b2 609     // Roundcube  => LDAP:limit
0501b6 610     'name'        => 'cn',
T 611     'surname'     => 'sn',
612     'firstname'   => 'givenName',
b2c3c3 613     'jobtitle'    => 'title',
a605b2 614     'email'       => 'mail:*',
0501b6 615     'phone:home'  => 'homePhone',
T 616     'phone:work'  => 'telephoneNumber',
617     'phone:mobile' => 'mobile',
ca3d76 618     'phone:pager' => 'pager',
0501b6 619     'street'      => 'street',
T 620     'zipcode'     => 'postalCode',
ca3d76 621     'region'      => 'st',
0501b6 622     'locality'    => 'l',
a605b2 623     // if you country is a complex object, you need to configure 'sub_fields' below
T 624     'country'      => 'c',
b563fc 625     'organization' => 'o',
a605b2 626     'department'   => 'ou',
T 627     'jobtitle'     => 'title',
628     'notes'        => 'description',
629     // these currently don't work:
630     // 'phone:workfax' => 'facsimileTelephoneNumber',
631     // 'photo'         => 'jpegPhoto',
632     // 'manager'       => 'manager',
633     // 'assistant'     => 'secretary',
0501b6 634   ),
a605b2 635   // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
T 636   'sub_fields' => array(),
3b9a53 637   'sort'          => 'cn',    // The field to sort the listing by.
T 638   'scope'         => 'sub',   // search mode: sub|base|list
d1e08f 639   'filter'        => '(objectClass=inetOrgPerson)',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
650601 640   'fuzzy_search'  => true,    // server allows wildcard search
15d762 641   'vlv'           => false,   // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
6af7e0 642   'numsub_filter' => '(objectClass=organizationalUnit)',   // with VLV, we also use numSubOrdinates to query the total number of records. Set this filter to get all numSubOrdinates attributes for counting
6039aa 643   'sizelimit'     => '0',     // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
T 644   'timelimit'     => '0',     // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
3b4b03 645   'referrals'     => true|false,  // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
d1e08f 646
T 647   // definition for contact groups (uncomment if no groups are supported)
648   // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
649   // if the groups base_dn is empty, the contact base_dn is used for the groups as well
15d762 650   // -> in this case, assure that groups and contacts are separated due to the concernig filters! 
6039aa 651   'groups'        => array(
f763fb 652     'base_dn'     => '',
aa9ddf 653     'scope'       => 'sub',   // search mode: sub|base|list
6039aa 654     'filter'      => '(objectClass=groupOfNames)',
d1e08f 655     'object_classes' => array("top", "groupOfNames"),
ad27eb 656     'member_attr'  => 'member',   // name of the member attribute, e.g. uniqueMember
T 657     'name_attr'    => 'cn',       // attribute to be used as group name
6039aa 658   ),
93c018 659 );
3b9a53 660 */
d1d2c4 661
2c8e84 662 // An ordered array of the ids of the addressbooks that should be searched
T 663 // when populating address autocomplete fields server-side. ex: array('sql','Verisign');
664 $rcmail_config['autocomplete_addressbooks'] = array('sql');
665
c296b8 666 // The minimum number of characters required to be typed in an autocomplete field
A 667 // before address books will be searched. Most useful for LDAP directories that
668 // may need to do lengthy results building given overly-broad searches
669 $rcmail_config['autocomplete_min_length'] = 1;
670
0213f8 671 // Number of parallel autocomplete requests.
A 672 // If there's more than one address book, n parallel (async) requests will be created,
673 // where each request will search in one address book. By default (0), all address
674 // books are searched in one request.
675 $rcmail_config['autocomplete_threads'] = 0;
676
677 // Max. numer of entries in autocomplete popup. Default: 15.
678 $rcmail_config['autocomplete_max'] = 15;
679
0501b6 680 // show address fields in this order
T 681 // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
682 $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
683
f21a04 684 // Matching mode for addressbook search (including autocompletion)
A 685 // 0 - partial (*abc*), default
686 // 1 - strict (abc)
687 // 2 - prefix (abc*)
688 // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
689 $rcmail_config['addressbook_search_mode'] = 0;
690
2d08c5 691 // ----------------------------------
A 692 // USER PREFERENCES
693 // ----------------------------------
4e17e6 694
e55ab0 695 // Use this charset as fallback for message decoding
A 696 $rcmail_config['default_charset'] = 'ISO-8859-1';
697
67effe 698 // skin name: folder from skins/
9f1652 699 $rcmail_config['skin'] = 'larry';
e58df3 700
08ffd9 701 // show up to X items in messages list view
A 702 $rcmail_config['mail_pagesize'] = 50;
703
704 // show up to X items in contacts list view
705 $rcmail_config['addressbook_pagesize'] = 50;
4e17e6 706
438753 707 // sort contacts by this col (preferably either one of name, firstname, surname)
T 708 $rcmail_config['addressbook_sort_col'] = 'surname';
709
f9a967 710 // the way how contact names are displayed in the list
T 711 // 0: display name
712 // 1: (prefix) firstname middlename surname (suffix)
713 // 2: (prefix) surname firstname middlename (suffix)
714 // 3: (prefix) surname, firstname middlename (suffix)
715 $rcmail_config['addressbook_name_listing'] = 0;
716
4e17e6 717 // use this timezone to display date/time
5879c0 718 // valid timezone identifers are listed here: php.net/manual/en/timezones.php
T 719 // 'auto' will use the browser's timezone settings
c8ae24 720 $rcmail_config['timezone'] = 'auto';
4647e1 721
4e17e6 722 // prefer displaying HTML messages
2d08c5 723 $rcmail_config['prefer_html'] = true;
4e17e6 724
2a4135 725 // display remote inline images
A 726 // 0 - Never, always ask
727 // 1 - Ask if sender is not in address book
728 // 2 - Always show inline images
729 $rcmail_config['show_images'] = 0;
712b30 730
b19097 731 // compose html formatted messages by default
8eefbb 732 // 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
868deb 733 $rcmail_config['htmleditor'] = 0;
b19097 734
30233b 735 // show pretty dates as standard
2d08c5 736 $rcmail_config['prettydate'] = true;
4e17e6 737
d656f1 738 // save compose message every 300 seconds (5min)
T 739 $rcmail_config['draft_autosave'] = 300;
0566ad 740
b19097 741 // default setting if preview pane is enabled
2d08c5 742 $rcmail_config['preview_pane'] = false;
b19097 743
bc4960 744 // Mark as read when viewed in preview pane (delay in seconds)
T 745 // Set to -1 if messages in preview pane should not be marked as read
746 $rcmail_config['preview_pane_mark_read'] = 0;
747
eaa394 748 // Clear Trash on logout
2d08c5 749 $rcmail_config['logout_purge'] = false;
eaa394 750
A 751 // Compact INBOX on logout
2d08c5 752 $rcmail_config['logout_expunge'] = false;
50c753 753
166b61 754 // Display attached images below the message body 
2d08c5 755 $rcmail_config['inline_images'] = true;
5e0045 756
ffae15 757 // Encoding of long/non-ascii attachment names:
A 758 // 0 - Full RFC 2231 compatible
759 // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
760 // 2 - Full 2047 compatible
21c277 761 $rcmail_config['mime_param_folding'] = 1;
ffae15 762
2d08c5 763 // Set true if deleted messages should not be displayed
2b5852 764 // This will make the application run slower
2d08c5 765 $rcmail_config['skip_deleted'] = false;
2b5852 766
A 767 // Set true to Mark deleted messages as read as well as deleted
768 // False means that a message's read status is not affected by marking it as deleted
2d08c5 769 $rcmail_config['read_when_deleted'] = true;
2b5852 770
ca8a17 771 // Set to true to never delete messages immediately
A 772 // Use 'Purge' to remove messages marked as deleted
2d08c5 773 $rcmail_config['flag_for_deletion'] = false;
2b5852 774
95d90f 775 // Default interval for keep-alive/check-recent requests (in seconds)
A 776 // Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
777 $rcmail_config['keep_alive'] = 60;
778
2fd975 779 // If true all folders will be checked for recent messages
2d08c5 780 $rcmail_config['check_all_folders'] = false;
2fd975 781
e54bb7 782 // If true, after message delete/move, the next message will be displayed
b1f30d 783 $rcmail_config['display_next'] = true;
e54bb7 784
f52c93 785 // 0 - Do not expand threads 
T 786 // 1 - Expand all threads automatically 
787 // 2 - Expand only threads with unread messages 
788 $rcmail_config['autoexpand_threads'] = 0;
1cead0 789
651c7b 790 // When replying:
AM 791 // -1 - don't cite the original message
792 // 0  - place cursor below the original message
793 // 1  - place cursor above original message (top posting)
794 $rcmail_config['reply_mode'] = 0;
50f56d 795
0207c4 796 // When replying strip original signature from message
2d08c5 797 $rcmail_config['strip_existing_sig'] = true;
0207c4 798
50f56d 799 // Show signature:
0207c4 800 // 0 - Never
T 801 // 1 - Always
50f56d 802 // 2 - New messages only
0207c4 803 // 3 - Forwards and Replies only
T 804 $rcmail_config['show_sig'] = 1;
805
806 // When replying or forwarding place sender's signature above existing message
2d08c5 807 $rcmail_config['sig_above'] = false;
50f56d 808
47ad83 809 // Use MIME encoding (quoted-printable) for 8bit characters in message body
2d08c5 810 $rcmail_config['force_7bit'] = false;
47ad83 811
b975da 812 // Defaults of the search field configuration.
T 813 // The array can contain a per-folder list of header fields which should be considered when searching
814 // The entry with key '*' stands for all folders which do not have a specific list set.
bf9dde 815 // Please note that folder names should to be in sync with $rcmail_config['default_folders']
b975da 816 $rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
T 817
3cacf9 818 // Defaults of the addressbook search field configuration.
A 819 $rcmail_config['addressbook_search_mods'] = null;  // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
820
b7f952 821 // 'Delete always'
A 822 // This setting reflects if mail should be always deleted
823 // when moving to Trash fails. This is necessary in some setups
824 // when user is over quota and Trash is included in the quota.
825 $rcmail_config['delete_always'] = false;
826
1b30a7 827 // Directly delete messages in Junk instead of moving to Trash
A 828 $rcmail_config['delete_junk'] = false;
829
f22ea7 830 // Behavior if a received message requests a message delivery notification (read receipt)
A 831 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
832 // 3 = send automatically if sender is in addressbook, otherwise ask the user
833 // 4 = send automatically if sender is in addressbook, otherwise ignore
834 $rcmail_config['mdn_requests'] = 0;
b25dfd 835
f22ea7 836 // Return receipt checkbox default state
A 837 $rcmail_config['mdn_default'] = 0;
838
839 // Delivery Status Notification checkbox default state
840 $rcmail_config['dsn_default'] = 0;
841
eeb85f 842 // Place replies in the folder of the message being replied to
A 843 $rcmail_config['reply_same_folder'] = false;
844
a509bb 845 // Sets default mode of Forward feature to "forward as attachment"
A 846 $rcmail_config['forward_attachment'] = false;
847
d73448 848 // Defines address book (internal index) to which new contacts will be added
A 849 // By default it is the first writeable addressbook.
850 // Note: Use '0' for built-in address book.
851 $rcmail_config['default_addressbook'] = null;
852
1d5779 853 // Enables spell checking before sending a message.
A 854 $rcmail_config['spellcheck_before_send'] = false;
855
710b1b 856 // Skip alternative email addresses in autocompletion (show one address per contact)
A 857 $rcmail_config['autocomplete_single'] = false;
858
7e263e 859 // Default font for composed HTML message.
A 860 // Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
861 // Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
862 $rcmail_config['default_font'] = '';
863
f22ea7 864 // end of config file