Aleksander Machniak
2016-05-06 acf633c73bc8df9a5036bc52d7568f4213ab73c7
commit | author | age
4e17e6 1 <?php
T 2
3 /*
4  +-----------------------------------------------------------------------+
acc005 5  | Main configuration file with default settings                         |
4e17e6 6  |                                                                       |
e019f2 7  | This file is part of the Roundcube Webmail client                     |
acc005 8  | Copyright (C) 2005-2013, 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
acc005 16 $config = array();
AM 17
18 // ----------------------------------
19 // SQL DATABASE
20 // ----------------------------------
21
22 // Database connection string (DSN) for read+write operations
23 // Format (compatible with PEAR MDB2): db_provider://user:password@host/database
24 // Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
25 // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
26 // NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
9bacb2 27 $config['db_dsnw'] = 'mysql://roundcube:@localhost/roundcubemail';
acc005 28
AM 29 // Database DSN for read-only operations (if empty write database will be used)
30 // useful for database replication
31 $config['db_dsnr'] = '';
32
92d18c 33 // Disable the use of already established dsnw connections for subsequent reads
TB 34 $config['db_dsnw_noread'] = false;
35
acc005 36 // use persistent db-connections
AM 37 // beware this will not "always" work as expected
38 // see: http://www.php.net/manual/en/features.persistent-connections.php
39 $config['db_persistent'] = false;
40
41 // you can define specific table (and sequence) names prefix
42 $config['db_prefix'] = '';
43
a69f99 44 // Mapping of table names and connections to use for ALL operations.
TB 45 // This can be used in a setup with replicated databases and a DB master
46 // where read/write access to cache tables should not go to master.
47 $config['db_table_dsn'] = array(
48 //    'cache' => 'r',
49 //    'cache_index' => 'r',
50 //    'cache_thread' => 'r',
51 //    'cache_messages' => 'r',
52 );
53
4e17e6 54
2d08c5 55 // ----------------------------------
A 56 // LOGGING/DEBUGGING
57 // ----------------------------------
58
e077c1 59 // system error reporting, sum of: 1 = log; 4 = show, 8 = trace
acc005 60 $config['debug_level'] = 1;
4e17e6 61
b77d0d 62 // log driver:  'syslog' or 'file'.
acc005 63 $config['log_driver'] = 'file';
b77d0d 64
0ad27c 65 // date format for log entries
A 66 // (read http://php.net/manual/en/function.date.php for all format characters)  
acc005 67 $config['log_date_format'] = 'd-M-Y H:i:s O';
0ad27c 68
b77d0d 69 // Syslog ident string to use, if using the 'syslog' log driver.
acc005 70 $config['syslog_id'] = 'roundcube';
b77d0d 71
A 72 // Syslog facility to use, if using the 'syslog' log driver.
73 // For possible values see installer or http://php.net/manual/en/function.openlog.php
acc005 74 $config['syslog_facility'] = LOG_USER;
b77d0d 75
3786a4 76 // Activate this option if logs should be written to per-user directories.
TB 77 // Data will only be logged if a directry <log_dir>/<username>/ exists and is writable.
78 $config['per_user_logging'] = false;
79
3e3429 80 // Log sent messages to <log_dir>/sendmail or to syslog
acc005 81 $config['smtp_log'] = true;
b77d0d 82
060467 83 // Log successful/failed logins to <log_dir>/userlogins or to syslog
acc005 84 $config['log_logins'] = false;
b77d0d 85
fcc7f8 86 // Log session authentication errors to <log_dir>/session or to syslog
acc005 87 $config['log_session'] = false;
fcc7f8 88
2d08c5 89 // Log SQL queries to <log_dir>/sql or to syslog
acc005 90 $config['sql_debug'] = false;
cc97ea 91
2d08c5 92 // Log IMAP conversation to <log_dir>/imap or to syslog
acc005 93 $config['imap_debug'] = false;
6dc026 94
2d08c5 95 // Log LDAP conversation to <log_dir>/ldap or to syslog
acc005 96 $config['ldap_debug'] = false;
cc9570 97
2d08c5 98 // Log SMTP conversation to <log_dir>/smtp or to syslog
acc005 99 $config['smtp_debug'] = false;
f5d61d 100
2d08c5 101 // ----------------------------------
A 102 // IMAP
103 // ----------------------------------
4e17e6 104
768e33 105 // The mail host chosen to perform the log-in.
AM 106 // Leave blank to show a textbox at login, give a list of hosts
42b113 107 // to display a pulldown menu or set one host as string.
f86e8f 108 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
bb8721 109 // Supported replacement variables:
d359dc 110 // %n - hostname ($_SERVER['SERVER_NAME'])
B 111 // %t - hostname without the first part
112 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
b04c51 113 // %s - domain name after the '@' from e-mail address provided at login screen
d359dc 114 // For example %n = mail.domain.tld, %t = domain.tld
768e33 115 // WARNING: After hostname change update of mail_host column in users table is
AM 116 //          required to match old user data records with the new host.
9bacb2 117 $config['default_host'] = 'localhost';
4e17e6 118
42b113 119 // TCP port used for IMAP connections
acc005 120 $config['default_port'] = 143;
42b113 121
00f347 122 // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use
4dd417 123 // best server supported one)
acc005 124 $config['imap_auth_type'] = null;
b026c3 125
3b55da 126 // IMAP socket context options
AM 127 // See http://php.net/manual/en/context.ssl.php
128 // The example below enables server certificate validation
129 //$config['imap_conn_options'] = array(
130 //  'ssl'         => array(
131 //     'verify_peer'  => true,
132 //     'verify_depth' => 3,
133 //     'cafile'       => '/etc/openssl/certs/ca.crt',
134 //   ),
135 // );
136 $config['imap_conn_options'] = null;
137
138 // IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
139 $config['imap_timeout'] = 0;
140
141 // Optional IMAP authentication identifier to be used as authorization proxy
142 $config['imap_auth_cid'] = null;
143
144 // Optional IMAP authentication password to be used for imap_auth_cid
145 $config['imap_auth_pw'] = null;
146
00290a 147 // If you know your imap's folder delimiter, you can specify it here.
A 148 // Otherwise it will be determined automatically
acc005 149 $config['imap_delimiter'] = null;
030c84 150
00290a 151 // If IMAP server doesn't support NAMESPACE extension, but you're
A 152 // using shared folders or personal root folder is non-empty, you'll need to
153 // set these options. All can be strings or arrays of strings.
e3af1f 154 // Folders need to be ended with directory separator, e.g. "INBOX."
A 155 // (special directory "~" is an exception to this rule)
02491a 156 // These can be used also to overwrite server's namespaces
acc005 157 $config['imap_ns_personal'] = null;
AM 158 $config['imap_ns_other']    = null;
159 $config['imap_ns_shared']   = null;
00290a 160
d8c440 161 // By default IMAP capabilities are readed after connection to IMAP server
A 162 // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
163 // after login. Set to True if you've got this case.
acc005 164 $config['imap_force_caps'] = false;
d8c440 165
f75f65 166 // By default list of subscribed folders is determined using LIST-EXTENDED
A 167 // extension if available. Some servers (dovecot 1.x) returns wrong results
168 // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
169 // Enable this option to force LSUB command usage instead.
ed3e51 170 // Deprecated: Use imap_disabled_caps = array('LIST-EXTENDED')
acc005 171 $config['imap_force_lsub'] = false;
f75f65 172
3c5489 173 // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
AM 174 // Enable this option to force listing of folders in all namespaces
acc005 175 $config['imap_force_ns'] = false;
3c5489 176
ed3e51 177 // List of disabled imap extensions.
AM 178 // Use if your IMAP server has broken implementation of some feature
179 // and you can't remove it from CAPABILITY string on server-side.
180 // For example UW-IMAP server has broken ESEARCH.
181 // Note: Because the list is cached, re-login is required after change.
7c6848 182 $config['imap_disabled_caps'] = array();
a1fe6b 183
8edb3d 184 // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
acc005 185 $config['imap_cache'] = null;
5cf5ee 186
A 187 // Enables messages cache. Only 'db' cache is supported.
702ce0 188 // This requires an IMAP server that supports QRESYNC and CONDSTORE
AM 189 // extensions (RFC7162). See synchronize() in program/lib/Roundcube/rcube_imap_cache.php
190 // for further info, or if you experience syncing problems.
acc005 191 $config['messages_cache'] = false;
5cf5ee 192
61ccdf 193 // Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w
acc005 194 $config['imap_cache_ttl'] = '10d';
61ccdf 195
67ac6e 196 // Lifetime of messages cache. Possible units: s, m, h, d, w
acc005 197 $config['messages_cache_ttl'] = '10d';
5cf5ee 198
21601b 199 // Maximum cached message size in kilobytes.
AM 200 // Note: On MySQL this should be less than (max_allowed_packet - 30%)
201 $config['messages_cache_threshold'] = 50;
202
203
2d08c5 204 // ----------------------------------
A 205 // SMTP
206 // ----------------------------------
f88d41 207
c3b676 208 // SMTP server host (for sending mails).
2d08c5 209 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
c3b676 210 // If left blank, the PHP mail() function is used
bb8721 211 // Supported replacement variables:
A 212 // %h - user's IMAP hostname
d359dc 213 // %n - hostname ($_SERVER['SERVER_NAME'])
B 214 // %t - hostname without the first part
215 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 216 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 217 // For example %n = mail.domain.tld, %t = domain.tld
acc005 218 $config['smtp_server'] = '';
4e17e6 219
e52aae 220 // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
T 221 // deprecated SSL over SMTP (aka SMTPS))
acc005 222 $config['smtp_port'] = 25;
968bdc 223
e019f2 224 // SMTP username (if required) if you use %u as the username Roundcube
d206c1 225 // will use the current username for login
acc005 226 $config['smtp_user'] = '';
4e17e6 227
e019f2 228 // SMTP password (if required) if you use %p as the password Roundcube
d206c1 229 // will use the current user's password for login
acc005 230 $config['smtp_pass'] = '';
4e17e6 231
d206c1 232 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
S 233 // best server supported one)
acc005 234 $config['smtp_auth_type'] = '';
d206c1 235
63d4d6 236 // Optional SMTP authentication identifier to be used as authorization proxy
acc005 237 $config['smtp_auth_cid'] = null;
63d4d6 238
a1fe6b 239 // Optional SMTP authentication password to be used for smtp_auth_cid
acc005 240 $config['smtp_auth_pw'] = null;
a39212 241
aca3d2 242 // SMTP HELO host 
S 243 // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages 
244 // Leave this blank and you will get the server variable 'server_name' or 
b07426 245 // localhost if that isn't defined.
acc005 246 $config['smtp_helo_host'] = '';
aca3d2 247
bc94e2 248 // SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
cd9e41 249 // Note: There's a known issue where using ssl connection with
AM 250 // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
acc005 251 $config['smtp_timeout'] = 0;
b07426 252
357f9c 253 // SMTP socket context options
AM 254 // See http://php.net/manual/en/context.ssl.php
255 // The example below enables server certificate validation, and
256 // requires 'smtp_timeout' to be non zero.
257 // $config['smtp_conn_options'] = array(
258 //   'ssl'         => array(
3b55da 259 //     'verify_peer'  => true,
AM 260 //     'verify_depth' => 3,
261 //     'cafile'       => '/etc/openssl/certs/ca.crt',
357f9c 262 //   ),
AM 263 // );
264 $config['smtp_conn_options'] = null;
265
3b55da 266
b07426 267 // ----------------------------------
AM 268 // LDAP
269 // ----------------------------------
270
271 // Type of LDAP cache. Supported values: 'db', 'apc' and 'memcache'.
acc005 272 $config['ldap_cache'] = 'db';
b07426 273
AM 274 // Lifetime of LDAP cache. Possible units: s, m, h, d, w
acc005 275 $config['ldap_cache_ttl'] = '10m';
f07d23 276
2d08c5 277 // ----------------------------------
A 278 // SYSTEM
279 // ----------------------------------
64608b 280
2d08c5 281 // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
A 282 // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
acc005 283 $config['enable_installer'] = false;
4e17e6 284
e04e31 285 // don't allow these settings to be overriden by the user
acc005 286 $config['dont_override'] = array();
e04e31 287
4a05e8 288 // define which settings should be listed under the 'advanced' block
TB 289 // which is hidden by default
290 $config['advanced_prefs'] = array();
291
c04b23 292 // provide an URL where a user can get support for this Roundcube installation
T 293 // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
acc005 294 $config['support_url'] = '';
c04b23 295
T 296 // replace Roundcube logo with this image
297 // specify an URL relative to the document root of this Roundcube installation
d81d69 298 // an array can be used to specify different logos for specific template files, '*' for default logo
P 299 // for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png")
acc005 300 $config['skin_logo'] = null;
c04b23 301
T 302 // automatically create a new Roundcube user when log-in the first time.
303 // a new user will be created once the IMAP login succeeds.
304 // set to false if only registered users can use this service
acc005 305 $config['auto_create_user'] = true;
c04b23 306
565c47 307 // Enables possibility to log in using email address from user identities
acc005 308 $config['user_aliases'] = false;
565c47 309
2d08c5 310 // use this folder to store log files (must be writeable for apache user)
A 311 // This is used by the 'file' log driver.
57def0 312 $config['log_dir'] = RCUBE_INSTALL_PATH . 'logs/';
d559cb 313
2d08c5 314 // use this folder to store temp files (must be writeable for apache user)
57def0 315 $config['temp_dir'] = RCUBE_INSTALL_PATH . 'temp/';
19862b 316
de8687 317 // expire files in temp_dir after 48 hours
DC 318 // possible units: s, m, h, d, w
319 $config['temp_dir_ttl'] = '48h';
320
2d08c5 321 // enforce connections over https
A 322 // with this option enabled, all non-secure connections will be redirected.
323 // set the port for the ssl connection as value of this option if it differs from the default 443
acc005 324 $config['force_https'] = false;
acb08f 325
00e18b 326 // tell PHP that it should work as under secure connection
A 327 // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
328 // e.g. when you're running Roundcube behind a https proxy
377bc6 329 // this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
acc005 330 $config['use_https'] = false;
00e18b 331
1cca4f 332 // Allow browser-autocompletion on login form.
A 333 // 0 - disabled, 1 - username and host only, 2 - username, host, password
acc005 334 $config['login_autocomplete'] = 0;
fbe24e 335
c72325 336 // Forces conversion of logins to lower case.
AM 337 // 0 - disabled, 1 - only domain part, 2 - domain and local part.
df95e7 338 // If users authentication is case-insensitive this must be enabled.
AM 339 // Note: After enabling it all user records need to be updated, e.g. with query:
340 //       UPDATE users SET username = LOWER(username);
acc005 341 $config['login_lc'] = 2;
ae39c4 342
95d90f 343 // Includes should be interpreted as PHP files
acc005 344 $config['skin_include_php'] = false;
fd8c50 345
b6267d 346 // display software version on login screen
acc005 347 $config['display_version'] = false;
b6267d 348
95d90f 349 // Session lifetime in minutes
acc005 350 $config['session_lifetime'] = 10;
7902df 351
ae7027 352 // Session domain: .example.org
acc005 353 $config['session_domain'] = '';
cf2da2 354
ae7027 355 // Session name. Default: 'roundcube_sessid'
acc005 356 $config['session_name'] = null;
bd34ca 357
8d2963 358 // Session authentication cookie name. Default: 'roundcube_sessauth'
TB 359 $config['session_auth_name'] = null;
360
ae7027 361 // Session path. Defaults to PHP session.cookie_path setting.
acc005 362 $config['session_path'] = null;
ae7027 363
42de33 364 // Backend to use for session storage. Can either be 'db' (default), 'memcache' or 'php'
TB 365 // If set to 'memcache', a list of servers need to be specified in 'memcache_hosts'
63e992 366 // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
42de33 367 // Setting this value to 'php' will use the default session save handler configured in PHP
acc005 368 $config['session_storage'] = 'db';
63e992 369
T 370 // Use these hosts for accessing memcached
71ee56 371 // Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
acc005 372 $config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
63e992 373
8a4234 374 // check client IP in session authorization
acc005 375 $config['ip_check'] = false;
4e17e6 376
f58a29 377 // List of trusted proxies
FE 378 // X_FORWARDED_* and X_REAL_IP headers are only accepted from these IPs
379 $config['proxy_whitelist'] = array();
380
a77cf2 381 // check referer of incoming requests
acc005 382 $config['referer_check'] = false;
a77cf2 383
c170bf 384 // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
T 385 // Possible values: sameorigin|deny. Set to false in order to disable sending them
acc005 386 $config['x_frame_options'] = 'sameorigin';
c170bf 387
bac7d1 388 // this key is used to encrypt the users imap password which is stored
T 389 // in the session record (and the client cookie if remember password is enabled).
390 // please provide a string of exactly 24 chars.
acc005 391 $config['des_key'] = 'rcmail-!24ByteDESkey*Str';
bac7d1 392
2d08c5 393 // Automatically add this domain to user names for login
A 394 // Only for IMAP servers that require full e-mail addresses for login
395 // Specify an array with 'host' => 'domain' values to support multiple hosts
6a642d 396 // Supported replacement variables:
A 397 // %h - user's IMAP hostname
d359dc 398 // %n - hostname ($_SERVER['SERVER_NAME'])
B 399 // %t - hostname without the first part
400 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 401 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 402 // For example %n = mail.domain.tld, %t = domain.tld
acc005 403 $config['username_domain'] = '';
2d08c5 404
96f59c 405 // Force domain configured in username_domain to be used for login.
AM 406 // Any domain in username will be replaced by username_domain.
407 $config['username_domain_forced'] = false;
408
2d08c5 409 // This domain will be used to form e-mail addresses of new users
A 410 // Specify an array with 'host' => 'domain' values to support multiple hosts
bb8721 411 // Supported replacement variables:
A 412 // %h - user's IMAP hostname
413 // %n - http hostname ($_SERVER['SERVER_NAME'])
414 // %d - domain (http hostname without the first part)
11be93 415 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 416 // For example %n = mail.domain.tld, %t = domain.tld
acc005 417 $config['mail_domain'] = '';
2d08c5 418
A 419 // Password charset.
420 // Use it if your authentication backend doesn't support UTF-8.
421 // Defaults to ISO-8859-1 for backward compatibility
acc005 422 $config['password_charset'] = 'ISO-8859-1';
2d08c5 423
A 424 // How many seconds must pass between emails sent by a user
acc005 425 $config['sendmail_delay'] = 0;
2d08c5 426
751b22 427 // Maximum number of recipients per message. Default: 0 (no limit)
acc005 428 $config['max_recipients'] = 0; 
751b22 429
d1851b 430 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
T 431 // If 'max_recipients' is set this value should be less or equal
acc005 432 $config['max_group_members'] = 0; 
d1851b 433
9bacb2 434 // Name your service. This is displayed on the login screen and in the window title
acc005 435 $config['product_name'] = 'Roundcube Webmail';
2d08c5 436
9bacb2 437 // Add this user-agent to message headers when sending
TB 438 $config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
2d08c5 439
A 440 // try to load host-specific configuration
441 // see http://trac.roundcube.net/wiki/Howto_Config for more details
acc005 442 $config['include_host_config'] = false;
2d08c5 443
A 444 // path to a text file which will be added to each sent message
e019f2 445 // paths are relative to the Roundcube root folder
acc005 446 $config['generic_message_footer'] = '';
2d08c5 447
5852c1 448 // path to a text file which will be added to each sent HTML message
e019f2 449 // paths are relative to the Roundcube root folder
acc005 450 $config['generic_message_footer_html'] = '';
5852c1 451
2d08c5 452 // add a received header to outgoing mails containing the creators IP and hostname
acc005 453 $config['http_received_header'] = false;
2d08c5 454
A 455 // Whether or not to encrypt the IP address and the host name
456 // these could, in some circles, be considered as sensitive information;
457 // however, for the administrator, these could be invaluable help
458 // when tracking down issues.
acc005 459 $config['http_received_header_encrypt'] = false;
2d08c5 460
ac8edb 461 // This string is used as a delimiter for message headers when sending
A 462 // a message via mail() function. Leave empty for auto-detection
acc005 463 $config['mail_header_delimiter'] = NULL;
2d08c5 464
6b6f2e 465 // number of chars allowed for line when wrapping text.
T 466 // text wrapping is done when composing/sending messages
acc005 467 $config['line_length'] = 72;
6b6f2e 468
T 469 // send plaintext messages as format=flowed
acc005 470 $config['send_format_flowed'] = true;
2d08c5 471
232535 472 // According to RFC2298, return receipt envelope sender address must be empty.
AM 473 // If this option is true, Roundcube will use user's identity as envelope sender for MDN responses.
acc005 474 $config['mdn_use_from'] = false;
232535 475
2d08c5 476 // Set identities access level:
A 477 // 0 - many identities with possibility to edit all params
478 // 1 - many identities with possibility to edit all params but not email address
479 // 2 - one identity with possibility to edit all params
480 // 3 - one identity with possibility to edit all params but not email address
f12585 481 // 4 - one identity with possibility to edit only signature
acc005 482 $config['identities_level'] = 0;
2d08c5 483
f7b58a 484 // Mimetypes supported by the browser.
T 485 // attachments of these types will open in a preview window
486 // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
acc005 487 $config['client_mimetypes'] = null;  # null == default
f7b58a 488
0a8397 489 // Path to a local mime magic database file for PHPs finfo extension.
TB 490 // Set to null if the default path should be used.
acc005 491 $config['mime_magic'] = null;
0a8397 492
9e1605 493 // Absolute path to a local mime.types mapping table file.
0a8397 494 // This is used to derive mime-types from the filename extension or vice versa.
9e1605 495 // Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
TB 496 // download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
acc005 497 $config['mime_types'] = null;
2d08c5 498
0501b6 499 // path to imagemagick identify binary
acc005 500 $config['im_identify_path'] = null;
0501b6 501
T 502 // path to imagemagick convert binary
acc005 503 $config['im_convert_path'] = null;
0501b6 504
031491 505 // Size of thumbnails from image attachments displayed below the message content.
TB 506 // Note: whether images are displayed at all depends on the 'inline_images' option.
507 // Set to 0 to display images in full size.
acc005 508 $config['image_thumbnail_size'] = 240;
031491 509
0501b6 510 // maximum size of uploaded contact photos in pixel
acc005 511 $config['contact_photo_size'] = 160;
0501b6 512
2d08c5 513 // Enable DNS checking for e-mail address validation
acc005 514 $config['email_dns_check'] = false;
2d08c5 515
e04e31 516 // Disables saving sent messages in Sent folder (like gmail) (Default: false)
AM 517 // Note: useful when SMTP server stores sent mail in user mailbox
acc005 518 $config['no_save_sent_messages'] = false;
e04e31 519
2d08c5 520 // ----------------------------------
A 521 // PLUGINS
522 // ----------------------------------
523
524 // List of active plugins (in plugins/ directory)
acc005 525 $config['plugins'] = array();
2d08c5 526
A 527 // ----------------------------------
528 // USER INTERFACE
529 // ----------------------------------
530
f52c93 531 // default messages sort column. Use empty value for default server's sorting, 
e0efd8 532 // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
acc005 533 $config['message_sort_col'] = '';
2d08c5 534
f52c93 535 // default messages sort order
acc005 536 $config['message_sort_order'] = 'DESC';
2d08c5 537
A 538 // These cols are shown in the message list. Available cols are:
e0efd8 539 // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
acc005 540 $config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
2d08c5 541
c8ae24 542 // the default locale setting (leave empty for auto-detection)
T 543 // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
acc005 544 $config['language'] = null;
4e17e6 545
1cc9e2 546 // use this format for date display (date or strftime format)
acc005 547 $config['date_format'] = 'Y-m-d';
1cc9e2 548
T 549 // give this choice of date formats to the user to select from
b32fab 550 // Note: do not use ambiguous formats like m/d/Y
AM 551 $config['date_formats'] = array('Y-m-d', 'Y/m/d', 'Y.m.d', 'd-m-Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
1cc9e2 552
T 553 // use this format for time display (date or strftime format)
acc005 554 $config['time_format'] = 'H:i';
1cc9e2 555
T 556 // give this choice of time formats to the user to select from
acc005 557 $config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
1cc9e2 558
T 559 // use this format for short date display (derived from date_format and time_format)
acc005 560 $config['date_short'] = 'D H:i';
4e17e6 561
1cc9e2 562 // use this format for detailed date/time formatting (derived from date_format and time_format)
acc005 563 $config['date_long'] = 'Y-m-d H:i';
4e17e6 564
1966c5 565 // store draft message is this mailbox
S 566 // leave blank if draft messages should not be stored
d08333 567 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
acc005 568 $config['drafts_mbox'] = 'Drafts';
1966c5 569
b4b081 570 // store spam messages in this mailbox
d08333 571 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
acc005 572 $config['junk_mbox'] = 'Junk';
b4b081 573
4e17e6 574 // store sent message is this mailbox
T 575 // leave blank if sent messages should not be stored
d08333 576 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
acc005 577 $config['sent_mbox'] = 'Sent';
4e17e6 578
T 579 // move messages to this folder when deleting them
580 // leave blank if they should be deleted directly
d08333 581 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
acc005 582 $config['trash_mbox'] = 'Trash';
4e17e6 583
fa4cd2 584 // display these folders separately in the mailbox list.
83ce4b 585 // these folders will also be displayed with localized names
d08333 586 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
acc005 587 $config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
4e17e6 588
85e65c 589 // Disable localization of the default folder names listed above
acc005 590 $config['show_real_foldernames'] = false;
52deb1 591
95ebcd 592 // automatically create the above listed default folders on first login
acc005 593 $config['create_default_folders'] = false;
b2ff3d 594
c8c1e0 595 // protect the default folders from renames, deletes, and subscription changes
acc005 596 $config['protect_default_folders'] = true;
c8c1e0 597
2d08c5 598 // if in your system 0 quota means no limit set this option to true 
acc005 599 $config['quota_zero_as_unlimited'] = false;
876b15 600
996066 601 // Make use of the built-in spell checker. It is based on GoogieSpell.
e9ac14 602 // Since Google only accepts connections over https your PHP installatation
T 603 // requires to be compiled with Open SSL support
acc005 604 $config['enable_spellcheck'] = true;
ed5d29 605
66df08 606 // Enables spellchecker exceptions dictionary.
A 607 // Setting it to 'shared' will make the dictionary shared by all users.
acc005 608 $config['spellcheck_dictionary'] = false;
66df08 609
b52166 610 // Set the spell checking engine. Possible values:
TB 611 // - 'googie'  - the default
612 // - 'pspell'  - requires the PHP Pspell module and aspell installed
613 // - 'enchant' - requires the PHP Enchant module
614 // - 'atd'     - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
615 // Since Google shut down their public spell checking service, you need to 
616 // connect to a Nox Spell Server when using 'googie' here. Therefore specify the 'spellcheck_uri'
acc005 617 $config['spellcheck_engine'] = 'googie';
5d2b7f 618
b52166 619 // For locally installed Nox Spell Server or After the Deadline services,
TB 620 // please specify the URI to call it.
621 // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or
622 // the After the Deadline package from http://www.afterthedeadline.com.
623 // Leave empty to use the public API of service.afterthedeadline.com
acc005 624 $config['spellcheck_uri'] = '';
996066 625
T 626 // These languages can be selected for spell checking.
627 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
01a8c5 628 // Leave empty for default set of available language.
acc005 629 $config['spellcheck_languages'] = NULL;
996066 630
66df08 631 // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
acc005 632 $config['spellcheck_ignore_caps'] = false;
66df08 633
A 634 // Makes that words with numbers will be ignored (e.g. g00gle)
acc005 635 $config['spellcheck_ignore_nums'] = false;
66df08 636
A 637 // Makes that words with symbols will be ignored (e.g. g@@gle)
acc005 638 $config['spellcheck_ignore_syms'] = false;
66df08 639
62c861 640 // Use this char/string to separate recipients when composing a new message
acc005 641 $config['recipients_separator'] = ',';
62c861 642
a4dc96 643 // Number of lines at the end of a message considered to contain the signature.
TB 644 // Increase this value if signatures are not properly detected and colored
645 $config['sig_max_lines'] = 15;
646
2d08c5 647 // don't let users set pagesize to more than this value if set
acc005 648 $config['max_pagesize'] = 200;
967b34 649
f22654 650 // Minimal value of user's 'refresh_interval' setting (in seconds)
acc005 651 $config['min_refresh_interval'] = 60;
2471d3 652
4171c5 653 // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
A 654 // By default refresh time is set to 1 second. You can set this value to true
655 // or any integer value indicating number of seconds.
acc005 656 $config['upload_progress'] = false;
4171c5 657
63fda8 658 // Specifies for how many seconds the Undo button will be available
A 659 // after object delete action. Currently used with supporting address book sources.
660 // Setting it to 0, disables the feature.
acc005 661 $config['undo_timeout'] = 0;
63fda8 662
9c41ba 663 // A static list of canned responses which are immutable for the user
TB 664 $config['compose_responses_static'] = array(
665 //  array('name' => 'Canned Response 1', 'text' => 'Static Response One'),
666 //  array('name' => 'Canned Response 2', 'text' => 'Static Response Two'),
667 );
668
2d08c5 669 // ----------------------------------
A 670 // ADDRESSBOOK SETTINGS
671 // ----------------------------------
aec82b 672
6153e2 673 // This indicates which type of address book to use. Possible choises:
5526f9 674 // 'sql' (default), 'ldap' and ''.
6153e2 675 // If set to 'ldap' then it will look at using the first writable LDAP
4f9c83 676 // address book as the primary address book and it will not display the
S 677 // SQL address book in the 'Address Book' view.
5526f9 678 // If set to '' then no address book will be displayed or only the
JD 679 // addressbook which is created by a plugin (like CardDAV).
acc005 680 $config['address_book_type'] = 'sql';
4f9c83 681
S 682 // In order to enable public ldap search, configure an array like the Verisign
683 // example further below. if you would like to test, simply uncomment the example.
ecf295 684 // Array key must contain only safe characters, ie. a-zA-Z0-9_
acc005 685 $config['ldap_public'] = array();
5f25a1 686
4f9c83 687 // If you are going to use LDAP for individual address books, you will need to 
S 688 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
689 //
690 // The recommended directory structure for LDAP is to store all the address book entries
691 // under the users main entry, e.g.:
692 //
693 //  o=root
694 //   ou=people
695 //    uid=user@domain
3b9a53 696 //  mail=contact@contactdomain
T 697 //
4f9c83 698 // So the base_dn would be uid=%fu,ou=people,o=root
S 699 // The bind_dn would be the same as based_dn or some super user login.
3b9a53 700 /* 
f11541 701  * example config for Verisign directory
eea43f 702  *
acc005 703 $config['ldap_public']['Verisign'] = array(
3b9a53 704   'name'          => 'Verisign.com',
bb8721 705   // Replacement variables supported in host names:
A 706   // %h - user's IMAP hostname
d359dc 707   // %n - hostname ($_SERVER['SERVER_NAME'])
B 708   // %t - hostname without the first part
709   // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 710   // %z - IMAP domain (IMAP hostname without the first part)
d359dc 711   // For example %n = mail.domain.tld, %t = domain.tld
3b9a53 712   'hosts'         => array('directory.verisign.com'),
T 713   'port'          => 389,
c64bee 714   'use_tls'       => false,
0c5210 715   'ldap_version'  => 3,       // using LDAPv3
e114a6 716   'network_timeout' => 10,    // The timeout (in seconds) for connect + bind arrempts. This is only supported in PHP >= 5.3.0 with OpenLDAP 2.x
3b9a53 717   'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
221b40 718   // When 'user_specific' is enabled following variables can be used in base_dn/bind_dn config:
3b9a53 719   // %fu - The full username provided, assumes the username is an email
T 720   //       address, uses the username_domain value if not an email address.
721   // %u  - The username prior to the '@'.
722   // %d  - The domain name after the '@'.
f76765 723   // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
1148c6 724   // %dn - DN found by ldap search when search_filter/search_base_dn are used
3b9a53 725   'base_dn'       => '',
T 726   'bind_dn'       => '',
727   'bind_pass'     => '',
1148c6 728   // It's possible to bind for an individual address book
A 729   // The login name is used to search for the DN to bind with
730   'search_base_dn' => '',
731   'search_filter'  => '',   // e.g. '(&(objectClass=posixAccount)(uid=%u))'
2d08ec 732   // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
A 733   'search_bind_dn' => '',
734   'search_bind_pw' => '',
3ce7c5 735   // Optional map of replacement strings => attributes used when binding for an individual address book
TB 736   'search_bind_attrib' => array(),  // e.g. array('%udc' => 'ou')
c041d5 737   // Default for %dn variable if search doesn't return DN value
A 738   'search_dn_default' => '',
4d982d 739   // Optional authentication identifier to be used as SASL authorization proxy
A 740   // bind_dn need to be empty
741   'auth_cid'       => '',
742   // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
743   'auth_method'    => '',
2d3e2b 744   // Indicates if the addressbook shall be hidden from the list.
5c9d1f 745   // With this option enabled you can still search/view contacts.
A 746   'hidden'        => false,
2d3e2b 747   // Indicates if the addressbook shall not list contacts but only allows searching.
T 748   'searchonly'    => false,
0c5210 749   // Indicates if we can write to the LDAP directory or not.
3b9a53 750   // If writable is true then these fields need to be populated:
T 751   // LDAP_Object_Classes, required_fields, LDAP_rdn
0c5210 752   'writable'       => false,
A 753   // To create a new contact these are the object classes to specify
754   // (or any other classes you wish to use).
755   'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
756   // The RDN field that is used for new entries, this field needs
757   // to be one of the search_fields, the base of base_dn is appended
758   // to the RDN to insert into the LDAP directory.
ca3d76 759   'LDAP_rdn'       => 'cn',
0c5210 760   // The required fields needed to build a new contact as required by
A 761   // the object classes (can include additional fields not required by the object classes).
762   'required_fields' => array('cn', 'sn', 'mail'),
763   'search_fields'   => array('mail', 'cn'),  // fields to search in
764   // mapping of contact fields to directory attributes
a605b2 765   //   for every attribute one can specify the number of values (limit) allowed.
T 766   //   default is 1, a wildcard * means unlimited
0c5210 767   'fieldmap' => array(
a605b2 768     // Roundcube  => LDAP:limit
0501b6 769     'name'        => 'cn',
T 770     'surname'     => 'sn',
771     'firstname'   => 'givenName',
b2c3c3 772     'jobtitle'    => 'title',
a605b2 773     'email'       => 'mail:*',
0501b6 774     'phone:home'  => 'homePhone',
T 775     'phone:work'  => 'telephoneNumber',
776     'phone:mobile' => 'mobile',
ca3d76 777     'phone:pager' => 'pager',
e43cc4 778     'phone:workfax' => 'facsimileTelephoneNumber',
0501b6 779     'street'      => 'street',
T 780     'zipcode'     => 'postalCode',
ca3d76 781     'region'      => 'st',
0501b6 782     'locality'    => 'l',
a605b2 783     // if you country is a complex object, you need to configure 'sub_fields' below
T 784     'country'      => 'c',
b563fc 785     'organization' => 'o',
a605b2 786     'department'   => 'ou',
T 787     'jobtitle'     => 'title',
788     'notes'        => 'description',
e43cc4 789     'photo'        => 'jpegPhoto',
a605b2 790     // these currently don't work:
T 791     // 'manager'       => 'manager',
792     // 'assistant'     => 'secretary',
0501b6 793   ),
a605b2 794   // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
T 795   'sub_fields' => array(),
3f250a 796   // Generate values for the following LDAP attributes automatically when creating a new record
TB 797   'autovalues' => array(
798   // 'uid'  => 'md5(microtime())',               // You may specify PHP code snippets which are then eval'ed 
799   // 'mail' => '{givenname}.{sn}@mydomain.com',  // or composite strings with placeholders for existing attributes
800   ),
a6d418 801   'sort'           => 'cn',         // The field to sort the listing by.
TB 802   'scope'          => 'sub',        // search mode: sub|base|list
803   'filter'         => '(objectClass=inetOrgPerson)',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
804   'fuzzy_search'   => true,         // server allows wildcard search
805   'vlv'            => false,        // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
806   'vlv_search'     => false,        // Use Virtual List View functions for autocompletion searches (if server supports it)
807   '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
808   'config_root_dn' => 'cn=config',  // Root DN to search config entries (e.g. vlv indexes)
809   'sizelimit'      => '0',          // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
810   'timelimit'      => '0',          // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
811   'referrals'      => false,        // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
f92ccc 812   'dereference'    => 0,            // Sets the LDAP_OPT_DEREF option. One of: LDAP_DEREF_NEVER, LDAP_DEREF_SEARCHING, LDAP_DEREF_FINDING, LDAP_DEREF_ALWAYS
AM 813                                     // Used where addressbook contains aliases to objects elsewhere in the LDAP tree.
d1e08f 814
T 815   // definition for contact groups (uncomment if no groups are supported)
816   // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
817   // if the groups base_dn is empty, the contact base_dn is used for the groups as well
15d762 818   // -> in this case, assure that groups and contacts are separated due to the concernig filters! 
a6d418 819   'groups'  => array(
3ce7c5 820     'base_dn'           => '',
TB 821     'scope'             => 'sub',       // Search mode: sub|base|list
822     'filter'            => '(objectClass=groupOfNames)',
823     'object_classes'    => array('top', 'groupOfNames'),   // Object classes to be assigned to new groups
824     'member_attr'       => 'member',   // Name of the default member attribute, e.g. uniqueMember
825     'name_attr'         => 'cn',       // Attribute to be used as group name
826     'email_attr'        => 'mail',     // Group email address attribute (e.g. for mailing lists)
827     'member_filter'     => '(objectclass=*)',  // Optional filter to use when querying for group members
828     'vlv'               => false,      // Use VLV controls to list groups
829     'class_member_attr' => array(      // Mapping of group object class to member attribute used in these objects
830       'groupofnames'       => 'member',
831       'groupofuniquenames' => 'uniquemember'
832     ),
6039aa 833   ),
e43cc4 834   // this configuration replaces the regular groups listing in the directory tree with
TB 835   // a hard-coded list of groups, each listing entries with the configured base DN and filter.
836   // if the 'groups' option from above is set, it'll be shown as the first entry with the name 'Groups'
837   'group_filters' => array(
838     'departments' => array(
839       'name'    => 'Company Departments',
840       'scope'   => 'list',
841       'base_dn' => 'ou=Groups,dc=mydomain,dc=com',
842       'filter'  => '(|(objectclass=groupofuniquenames)(objectclass=groupofurls))',
9eaf68 843       'name_attr' => 'cn',
e43cc4 844     ),
TB 845     'customers' => array(
846       'name'    => 'Customers',
847       'scope'   => 'sub',
848       'base_dn' => 'ou=Customers,dc=mydomain,dc=com',
849       'filter'  => '(objectClass=inetOrgPerson)',
9eaf68 850       'name_attr' => 'sn',
e43cc4 851     ),
2c8e84 852   ),
T 853 );
854 */
c296b8 855
A 856 // An ordered array of the ids of the addressbooks that should be searched
857 // when populating address autocomplete fields server-side. ex: array('sql','Verisign');
acc005 858 $config['autocomplete_addressbooks'] = array('sql');
b19097 859
c296b8 860 // The minimum number of characters required to be typed in an autocomplete field
A 861 // before address books will be searched. Most useful for LDAP directories that
862 // may need to do lengthy results building given overly-broad searches
acc005 863 $config['autocomplete_min_length'] = 1;
c296b8 864
0213f8 865 // Number of parallel autocomplete requests.
A 866 // If there's more than one address book, n parallel (async) requests will be created,
867 // where each request will search in one address book. By default (0), all address
868 // books are searched in one request.
acc005 869 $config['autocomplete_threads'] = 0;
0213f8 870
A 871 // Max. numer of entries in autocomplete popup. Default: 15.
acc005 872 $config['autocomplete_max'] = 15;
0213f8 873
0501b6 874 // show address fields in this order
T 875 // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
acc005 876 $config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
0501b6 877
f21a04 878 // Matching mode for addressbook search (including autocompletion)
A 879 // 0 - partial (*abc*), default
880 // 1 - strict (abc)
881 // 2 - prefix (abc*)
882 // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
acc005 883 $config['addressbook_search_mode'] = 0;
f21a04 884
2d08c5 885 // ----------------------------------
A 886 // USER PREFERENCES
887 // ----------------------------------
4e17e6 888
e55ab0 889 // Use this charset as fallback for message decoding
acc005 890 $config['default_charset'] = 'ISO-8859-1';
e55ab0 891
67effe 892 // skin name: folder from skins/
acc005 893 $config['skin'] = 'larry';
e58df3 894
3863a9 895 // Enables using standard browser windows (that can be handled as tabs)
AM 896 // instead of popup windows
acc005 897 $config['standard_windows'] = false;
3863a9 898
08ffd9 899 // show up to X items in messages list view
acc005 900 $config['mail_pagesize'] = 50;
08ffd9 901
A 902 // show up to X items in contacts list view
acc005 903 $config['addressbook_pagesize'] = 50;
4e17e6 904
438753 905 // sort contacts by this col (preferably either one of name, firstname, surname)
acc005 906 $config['addressbook_sort_col'] = 'surname';
438753 907
f9a967 908 // the way how contact names are displayed in the list
T 909 // 0: display name
910 // 1: (prefix) firstname middlename surname (suffix)
911 // 2: (prefix) surname firstname middlename (suffix)
912 // 3: (prefix) surname, firstname middlename (suffix)
acc005 913 $config['addressbook_name_listing'] = 0;
f9a967 914
4e17e6 915 // use this timezone to display date/time
5879c0 916 // valid timezone identifers are listed here: php.net/manual/en/timezones.php
T 917 // 'auto' will use the browser's timezone settings
acc005 918 $config['timezone'] = 'auto';
4647e1 919
4e17e6 920 // prefer displaying HTML messages
acc005 921 $config['prefer_html'] = true;
4e17e6 922
2a4135 923 // display remote inline images
A 924 // 0 - Never, always ask
925 // 1 - Ask if sender is not in address book
926 // 2 - Always show inline images
acc005 927 $config['show_images'] = 0;
712b30 928
271efe 929 // open messages in new window
acc005 930 $config['message_extwin'] = false;
271efe 931
TB 932 // open message compose form in new window
acc005 933 $config['compose_extwin'] = false;
271efe 934
b19097 935 // compose html formatted messages by default
8eefbb 936 // 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
acc005 937 $config['htmleditor'] = 0;
b19097 938
30233b 939 // show pretty dates as standard
acc005 940 $config['prettydate'] = true;
4e17e6 941
d656f1 942 // save compose message every 300 seconds (5min)
acc005 943 $config['draft_autosave'] = 300;
0566ad 944
b19097 945 // default setting if preview pane is enabled
acc005 946 $config['preview_pane'] = false;
b19097 947
bc4960 948 // Mark as read when viewed in preview pane (delay in seconds)
T 949 // Set to -1 if messages in preview pane should not be marked as read
acc005 950 $config['preview_pane_mark_read'] = 0;
bc4960 951
eaa394 952 // Clear Trash on logout
acc005 953 $config['logout_purge'] = false;
eaa394 954
A 955 // Compact INBOX on logout
acc005 956 $config['logout_expunge'] = false;
50c753 957
166b61 958 // Display attached images below the message body 
acc005 959 $config['inline_images'] = true;
5e0045 960
ffae15 961 // Encoding of long/non-ascii attachment names:
A 962 // 0 - Full RFC 2231 compatible
963 // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
964 // 2 - Full 2047 compatible
acc005 965 $config['mime_param_folding'] = 1;
ffae15 966
2d08c5 967 // Set true if deleted messages should not be displayed
2b5852 968 // This will make the application run slower
acc005 969 $config['skip_deleted'] = false;
2b5852 970
A 971 // Set true to Mark deleted messages as read as well as deleted
972 // False means that a message's read status is not affected by marking it as deleted
acc005 973 $config['read_when_deleted'] = true;
2b5852 974
ca8a17 975 // Set to true to never delete messages immediately
A 976 // Use 'Purge' to remove messages marked as deleted
acc005 977 $config['flag_for_deletion'] = false;
2b5852 978
aa8359 979 // Default interval for auto-refresh requests (in seconds)
AM 980 // These are requests for system state updates e.g. checking for new messages, etc.
981 // Setting it to 0 disables the feature.
acc005 982 $config['refresh_interval'] = 60;
95d90f 983
2fd975 984 // If true all folders will be checked for recent messages
acc005 985 $config['check_all_folders'] = false;
2fd975 986
e54bb7 987 // If true, after message delete/move, the next message will be displayed
acc005 988 $config['display_next'] = true;
e54bb7 989
d17496 990 // Default messages listing mode. One of 'threads' or 'list'.
AM 991 $config['default_list_mode'] = 'list';
992
993 // 0 - Do not expand threads
994 // 1 - Expand all threads automatically
995 // 2 - Expand only threads with unread messages
acc005 996 $config['autoexpand_threads'] = 0;
1cead0 997
651c7b 998 // When replying:
AM 999 // -1 - don't cite the original message
1000 // 0  - place cursor below the original message
1001 // 1  - place cursor above original message (top posting)
acc005 1002 $config['reply_mode'] = 0;
50f56d 1003
0207c4 1004 // When replying strip original signature from message
acc005 1005 $config['strip_existing_sig'] = true;
0207c4 1006
50f56d 1007 // Show signature:
0207c4 1008 // 0 - Never
T 1009 // 1 - Always
50f56d 1010 // 2 - New messages only
0207c4 1011 // 3 - Forwards and Replies only
acc005 1012 $config['show_sig'] = 1;
0207c4 1013
47ad83 1014 // Use MIME encoding (quoted-printable) for 8bit characters in message body
acc005 1015 $config['force_7bit'] = false;
47ad83 1016
b975da 1017 // Defaults of the search field configuration.
T 1018 // The array can contain a per-folder list of header fields which should be considered when searching
1019 // The entry with key '*' stands for all folders which do not have a specific list set.
acc005 1020 // Please note that folder names should to be in sync with $config['default_folders']
AM 1021 $config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
b975da 1022
3cacf9 1023 // Defaults of the addressbook search field configuration.
acc005 1024 $config['addressbook_search_mods'] = null;  // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
3cacf9 1025
b7f952 1026 // 'Delete always'
A 1027 // This setting reflects if mail should be always deleted
1028 // when moving to Trash fails. This is necessary in some setups
1029 // when user is over quota and Trash is included in the quota.
acc005 1030 $config['delete_always'] = false;
b7f952 1031
1b30a7 1032 // Directly delete messages in Junk instead of moving to Trash
acc005 1033 $config['delete_junk'] = false;
1b30a7 1034
f22ea7 1035 // Behavior if a received message requests a message delivery notification (read receipt)
A 1036 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
1037 // 3 = send automatically if sender is in addressbook, otherwise ask the user
1038 // 4 = send automatically if sender is in addressbook, otherwise ignore
acc005 1039 $config['mdn_requests'] = 0;
b25dfd 1040
f22ea7 1041 // Return receipt checkbox default state
acc005 1042 $config['mdn_default'] = 0;
f22ea7 1043
A 1044 // Delivery Status Notification checkbox default state
f1fba2 1045 // Note: This can be used only if smtp_server is non-empty
acc005 1046 $config['dsn_default'] = 0;
f22ea7 1047
eeb85f 1048 // Place replies in the folder of the message being replied to
acc005 1049 $config['reply_same_folder'] = false;
eeb85f 1050
a509bb 1051 // Sets default mode of Forward feature to "forward as attachment"
acc005 1052 $config['forward_attachment'] = false;
a509bb 1053
d73448 1054 // Defines address book (internal index) to which new contacts will be added
A 1055 // By default it is the first writeable addressbook.
1056 // Note: Use '0' for built-in address book.
acc005 1057 $config['default_addressbook'] = null;
d73448 1058
1d5779 1059 // Enables spell checking before sending a message.
acc005 1060 $config['spellcheck_before_send'] = false;
1d5779 1061
710b1b 1062 // Skip alternative email addresses in autocompletion (show one address per contact)
acc005 1063 $config['autocomplete_single'] = false;
710b1b 1064
7e263e 1065 // Default font for composed HTML message.
A 1066 // Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
1067 // Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
acc005 1068 $config['default_font'] = 'Verdana';
7e263e 1069
7dff44 1070 // Default font size for composed HTML message.
D 1071 // Supported sizes: 8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt
189958 1072 $config['default_font_size'] = '10pt';
7dff44 1073
969cb0 1074 // Enables display of email address with name instead of a name (and address in title)
acc005 1075 $config['message_show_email'] = false;
b972b4 1076
AM 1077 // Default behavior of Reply-All button:
1078 // 0 - Reply-All always
1079 // 1 - Reply-List if mailing list is detected
1080 $config['reply_all_mode'] = 0;