Andy Wermke
2013-04-04 029d18f13bcf01aa2f1f08dbdfc6400c081bf7cb
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
7902df 244 $rcmail_config['session_lifetime'] = 10;
T 245
ae7027 246 // Session domain: .example.org
cf2da2 247 $rcmail_config['session_domain'] = '';
T 248
ae7027 249 // Session name. Default: 'roundcube_sessid'
bd34ca 250 $rcmail_config['session_name'] = null;
A 251
ae7027 252 // Session path. Defaults to PHP session.cookie_path setting.
AM 253 $rcmail_config['session_path'] = null;
254
63e992 255 // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
T 256 // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
257 // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
258 $rcmail_config['session_storage'] = 'db';
259
260 // Use these hosts for accessing memcached
71ee56 261 // Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
AM 262 $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
63e992 263
4e17e6 264 // check client IP in session athorization
aad6e2 265 $rcmail_config['ip_check'] = false;
4e17e6 266
a77cf2 267 // check referer of incoming requests
T 268 $rcmail_config['referer_check'] = false;
269
c170bf 270 // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
T 271 // Possible values: sameorigin|deny. Set to false in order to disable sending them
67eecd 272 $rcmail_config['x_frame_options'] = 'sameorigin';
c170bf 273
bac7d1 274 // this key is used to encrypt the users imap password which is stored
T 275 // in the session record (and the client cookie if remember password is enabled).
276 // please provide a string of exactly 24 chars.
277 $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
278
2d08c5 279 // Automatically add this domain to user names for login
A 280 // Only for IMAP servers that require full e-mail addresses for login
281 // Specify an array with 'host' => 'domain' values to support multiple hosts
6a642d 282 // Supported replacement variables:
A 283 // %h - user's IMAP hostname
d359dc 284 // %n - hostname ($_SERVER['SERVER_NAME'])
B 285 // %t - hostname without the first part
286 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 287 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 288 // For example %n = mail.domain.tld, %t = domain.tld
2d08c5 289 $rcmail_config['username_domain'] = '';
A 290
291 // This domain will be used to form e-mail addresses of new users
292 // Specify an array with 'host' => 'domain' values to support multiple hosts
bb8721 293 // Supported replacement variables:
A 294 // %h - user's IMAP hostname
295 // %n - http hostname ($_SERVER['SERVER_NAME'])
296 // %d - domain (http hostname without the first part)
11be93 297 // %z - IMAP domain (IMAP hostname without the first part)
d359dc 298 // For example %n = mail.domain.tld, %t = domain.tld
2d08c5 299 $rcmail_config['mail_domain'] = '';
A 300
301 // Password charset.
302 // Use it if your authentication backend doesn't support UTF-8.
303 // Defaults to ISO-8859-1 for backward compatibility
304 $rcmail_config['password_charset'] = 'ISO-8859-1';
305
306 // How many seconds must pass between emails sent by a user
307 $rcmail_config['sendmail_delay'] = 0;
308
751b22 309 // Maximum number of recipients per message. Default: 0 (no limit)
A 310 $rcmail_config['max_recipients'] = 0; 
311
d1851b 312 // Maximum allowednumber of members of an address group. Default: 0 (no limit)
T 313 // If 'max_recipients' is set this value should be less or equal
314 $rcmail_config['max_group_members'] = 0; 
315
2d08c5 316 // add this user-agent to message headers when sending
6b6f2e 317 $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
2d08c5 318
A 319 // use this name to compose page titles
6b6f2e 320 $rcmail_config['product_name'] = 'Roundcube Webmail';
2d08c5 321
A 322 // try to load host-specific configuration
323 // see http://trac.roundcube.net/wiki/Howto_Config for more details
324 $rcmail_config['include_host_config'] = false;
325
326 // path to a text file which will be added to each sent message
e019f2 327 // paths are relative to the Roundcube root folder
2d08c5 328 $rcmail_config['generic_message_footer'] = '';
A 329
5852c1 330 // path to a text file which will be added to each sent HTML message
e019f2 331 // paths are relative to the Roundcube root folder
5852c1 332 $rcmail_config['generic_message_footer_html'] = '';
A 333
2d08c5 334 // add a received header to outgoing mails containing the creators IP and hostname
A 335 $rcmail_config['http_received_header'] = false;
336
337 // Whether or not to encrypt the IP address and the host name
338 // these could, in some circles, be considered as sensitive information;
339 // however, for the administrator, these could be invaluable help
340 // when tracking down issues.
341 $rcmail_config['http_received_header_encrypt'] = false;
342
ac8edb 343 // This string is used as a delimiter for message headers when sending
A 344 // a message via mail() function. Leave empty for auto-detection
2d08c5 345 $rcmail_config['mail_header_delimiter'] = NULL;
A 346
6b6f2e 347 // number of chars allowed for line when wrapping text.
T 348 // text wrapping is done when composing/sending messages
c769c6 349 $rcmail_config['line_length'] = 72;
6b6f2e 350
T 351 // send plaintext messages as format=flowed
352 $rcmail_config['send_format_flowed'] = true;
2d08c5 353
A 354 // Set identities access level:
355 // 0 - many identities with possibility to edit all params
356 // 1 - many identities with possibility to edit all params but not email address
357 // 2 - one identity with possibility to edit all params
358 // 3 - one identity with possibility to edit all params but not email address
359 $rcmail_config['identities_level'] = 0;
360
f7b58a 361 // Mimetypes supported by the browser.
T 362 // attachments of these types will open in a preview window
363 // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
364 $rcmail_config['client_mimetypes'] = null;  # null == default
365
0a8397 366 // Path to a local mime magic database file for PHPs finfo extension.
TB 367 // Set to null if the default path should be used.
368 $rcmail_config['mime_magic'] = null;
369
370 // Path to local mime.types mapping table.
371 // This is used to derive mime-types from the filename extension or vice versa.
372 // Such a file is usually part of the apache webserver.
373 $rcmail_config['mime_types'] = null;
2d08c5 374
0501b6 375 // path to imagemagick identify binary
T 376 $rcmail_config['im_identify_path'] = null;
377
378 // path to imagemagick convert binary
379 $rcmail_config['im_convert_path'] = null;
380
031491 381 // Size of thumbnails from image attachments displayed below the message content.
TB 382 // Note: whether images are displayed at all depends on the 'inline_images' option.
383 // Set to 0 to display images in full size.
384 $rcmail_config['image_thumbnail_size'] = 240;
385
0501b6 386 // maximum size of uploaded contact photos in pixel
T 387 $rcmail_config['contact_photo_size'] = 160;
388
2d08c5 389 // Enable DNS checking for e-mail address validation
A 390 $rcmail_config['email_dns_check'] = false;
391
e04e31 392 // Disables saving sent messages in Sent folder (like gmail) (Default: false)
AM 393 // Note: useful when SMTP server stores sent mail in user mailbox
394 $rcmail_config['no_save_sent_messages'] = false;
395
2d08c5 396 // ----------------------------------
A 397 // PLUGINS
398 // ----------------------------------
399
400 // List of active plugins (in plugins/ directory)
401 $rcmail_config['plugins'] = array();
402
403 // ----------------------------------
404 // USER INTERFACE
405 // ----------------------------------
406
f52c93 407 // default messages sort column. Use empty value for default server's sorting, 
e0efd8 408 // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
f52c93 409 $rcmail_config['message_sort_col'] = '';
2d08c5 410
f52c93 411 // default messages sort order
2d08c5 412 $rcmail_config['message_sort_order'] = 'DESC';
A 413
414 // These cols are shown in the message list. Available cols are:
e0efd8 415 // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
AM 416 $rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
2d08c5 417
c8ae24 418 // the default locale setting (leave empty for auto-detection)
T 419 // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
420 $rcmail_config['language'] = null;
4e17e6 421
1cc9e2 422 // use this format for date display (date or strftime format)
T 423 $rcmail_config['date_format'] = 'Y-m-d';
424
425 // give this choice of date formats to the user to select from
426 $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');
427
428 // use this format for time display (date or strftime format)
429 $rcmail_config['time_format'] = 'H:i';
430
431 // give this choice of time formats to the user to select from
432 $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
433
434 // use this format for short date display (derived from date_format and time_format)
4e17e6 435 $rcmail_config['date_short'] = 'D H:i';
T 436
1cc9e2 437 // use this format for detailed date/time formatting (derived from date_format and time_format)
T 438 $rcmail_config['date_long'] = 'Y-m-d H:i';
4e17e6 439
1966c5 440 // store draft message is this mailbox
S 441 // leave blank if draft messages should not be stored
d08333 442 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
1966c5 443 $rcmail_config['drafts_mbox'] = 'Drafts';
S 444
b4b081 445 // store spam messages in this mailbox
d08333 446 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
b4b081 447 $rcmail_config['junk_mbox'] = 'Junk';
S 448
4e17e6 449 // store sent message is this mailbox
T 450 // leave blank if sent messages should not be stored
d08333 451 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
4e17e6 452 $rcmail_config['sent_mbox'] = 'Sent';
T 453
454 // move messages to this folder when deleting them
455 // leave blank if they should be deleted directly
d08333 456 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
4e17e6 457 $rcmail_config['trash_mbox'] = 'Trash';
T 458
fa4cd2 459 // display these folders separately in the mailbox list.
83ce4b 460 // these folders will also be displayed with localized names
d08333 461 // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
bf9dde 462 $rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
4e17e6 463
95ebcd 464 // automatically create the above listed default folders on first login
2d08c5 465 $rcmail_config['create_default_folders'] = false;
b2ff3d 466
c8c1e0 467 // protect the default folders from renames, deletes, and subscription changes
2d08c5 468 $rcmail_config['protect_default_folders'] = true;
c8c1e0 469
2d08c5 470 // if in your system 0 quota means no limit set this option to true 
A 471 $rcmail_config['quota_zero_as_unlimited'] = false;
876b15 472
996066 473 // Make use of the built-in spell checker. It is based on GoogieSpell.
e9ac14 474 // Since Google only accepts connections over https your PHP installatation
T 475 // requires to be compiled with Open SSL support
2d08c5 476 $rcmail_config['enable_spellcheck'] = true;
ed5d29 477
66df08 478 // Enables spellchecker exceptions dictionary.
A 479 // Setting it to 'shared' will make the dictionary shared by all users.
480 $rcmail_config['spellcheck_dictionary'] = false;
481
5d2b7f 482 // Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
T 483 // but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
484 $rcmail_config['spellcheck_engine'] = 'googie';
485
996066 486 // For a locally installed Nox Spell Server, please specify the URI to call it.
T 487 // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
488 // Leave empty to use the Google spell checking service, what means
489 // that the message content will be sent to Google in order to check spelling
490 $rcmail_config['spellcheck_uri'] = '';
491
492 // These languages can be selected for spell checking.
493 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
01a8c5 494 // Leave empty for default set of available language.
996066 495 $rcmail_config['spellcheck_languages'] = NULL;
T 496
66df08 497 // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
A 498 $rcmail_config['spellcheck_ignore_caps'] = false;
499
500 // Makes that words with numbers will be ignored (e.g. g00gle)
501 $rcmail_config['spellcheck_ignore_nums'] = false;
502
503 // Makes that words with symbols will be ignored (e.g. g@@gle)
504 $rcmail_config['spellcheck_ignore_syms'] = false;
505
62c861 506 // Use this char/string to separate recipients when composing a new message
T 507 $rcmail_config['recipients_separator'] = ',';
508
2d08c5 509 // don't let users set pagesize to more than this value if set
A 510 $rcmail_config['max_pagesize'] = 200;
967b34 511
f22654 512 // Minimal value of user's 'refresh_interval' setting (in seconds)
AM 513 $rcmail_config['min_refresh_interval'] = 60;
2471d3 514
4171c5 515 // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
A 516 // By default refresh time is set to 1 second. You can set this value to true
517 // or any integer value indicating number of seconds.
518 $rcmail_config['upload_progress'] = false;
519
63fda8 520 // Specifies for how many seconds the Undo button will be available
A 521 // after object delete action. Currently used with supporting address book sources.
522 // Setting it to 0, disables the feature.
523 $rcmail_config['undo_timeout'] = 0;
524
2d08c5 525 // ----------------------------------
A 526 // ADDRESSBOOK SETTINGS
527 // ----------------------------------
aec82b 528
6153e2 529 // This indicates which type of address book to use. Possible choises:
5526f9 530 // 'sql' (default), 'ldap' and ''.
6153e2 531 // If set to 'ldap' then it will look at using the first writable LDAP
4f9c83 532 // address book as the primary address book and it will not display the
S 533 // SQL address book in the 'Address Book' view.
5526f9 534 // If set to '' then no address book will be displayed or only the
JD 535 // addressbook which is created by a plugin (like CardDAV).
6153e2 536 $rcmail_config['address_book_type'] = 'sql';
4f9c83 537
S 538 // In order to enable public ldap search, configure an array like the Verisign
539 // example further below. if you would like to test, simply uncomment the example.
ecf295 540 // Array key must contain only safe characters, ie. a-zA-Z0-9_
5f25a1 541 $rcmail_config['ldap_public'] = array();
T 542
4f9c83 543 // If you are going to use LDAP for individual address books, you will need to 
S 544 // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
545 //
546 // The recommended directory structure for LDAP is to store all the address book entries
547 // under the users main entry, e.g.:
548 //
549 //  o=root
550 //   ou=people
551 //    uid=user@domain
3b9a53 552 //  mail=contact@contactdomain
T 553 //
4f9c83 554 // So the base_dn would be uid=%fu,ou=people,o=root
S 555 // The bind_dn would be the same as based_dn or some super user login.
3b9a53 556 /* 
f11541 557  * example config for Verisign directory
eea43f 558  *
3b9a53 559 $rcmail_config['ldap_public']['Verisign'] = array(
T 560   'name'          => 'Verisign.com',
bb8721 561   // Replacement variables supported in host names:
A 562   // %h - user's IMAP hostname
d359dc 563   // %n - hostname ($_SERVER['SERVER_NAME'])
B 564   // %t - hostname without the first part
565   // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
11be93 566   // %z - IMAP domain (IMAP hostname without the first part)
d359dc 567   // For example %n = mail.domain.tld, %t = domain.tld
3b9a53 568   'hosts'         => array('directory.verisign.com'),
T 569   'port'          => 389,
1148c6 570   'use_tls'          => false,
0c5210 571   'ldap_version'  => 3,       // using LDAPv3
3b9a53 572   'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
T 573   // %fu - The full username provided, assumes the username is an email
574   //       address, uses the username_domain value if not an email address.
575   // %u  - The username prior to the '@'.
576   // %d  - The domain name after the '@'.
f76765 577   // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
1148c6 578   // %dn - DN found by ldap search when search_filter/search_base_dn are used
3b9a53 579   'base_dn'       => '',
T 580   'bind_dn'       => '',
581   'bind_pass'     => '',
1148c6 582   // It's possible to bind for an individual address book
A 583   // The login name is used to search for the DN to bind with
584   'search_base_dn' => '',
585   'search_filter'  => '',   // e.g. '(&(objectClass=posixAccount)(uid=%u))'
2d08ec 586   // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
A 587   'search_bind_dn' => '',
588   'search_bind_pw' => '',
c041d5 589   // Default for %dn variable if search doesn't return DN value
A 590   'search_dn_default' => '',
4d982d 591   // Optional authentication identifier to be used as SASL authorization proxy
A 592   // bind_dn need to be empty
593   'auth_cid'       => '',
594   // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
595   'auth_method'    => '',
2d3e2b 596   // Indicates if the addressbook shall be hidden from the list.
5c9d1f 597   // With this option enabled you can still search/view contacts.
A 598   'hidden'        => false,
2d3e2b 599   // Indicates if the addressbook shall not list contacts but only allows searching.
T 600   'searchonly'    => false,
0c5210 601   // Indicates if we can write to the LDAP directory or not.
3b9a53 602   // If writable is true then these fields need to be populated:
T 603   // LDAP_Object_Classes, required_fields, LDAP_rdn
0c5210 604   'writable'       => false,
A 605   // To create a new contact these are the object classes to specify
606   // (or any other classes you wish to use).
607   'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
608   // The RDN field that is used for new entries, this field needs
609   // to be one of the search_fields, the base of base_dn is appended
610   // to the RDN to insert into the LDAP directory.
ca3d76 611   'LDAP_rdn'       => 'cn',
0c5210 612   // The required fields needed to build a new contact as required by
A 613   // the object classes (can include additional fields not required by the object classes).
614   'required_fields' => array('cn', 'sn', 'mail'),
615   'search_fields'   => array('mail', 'cn'),  // fields to search in
616   // mapping of contact fields to directory attributes
a605b2 617   //   for every attribute one can specify the number of values (limit) allowed.
T 618   //   default is 1, a wildcard * means unlimited
0c5210 619   'fieldmap' => array(
a605b2 620     // Roundcube  => LDAP:limit
0501b6 621     'name'        => 'cn',
T 622     'surname'     => 'sn',
623     'firstname'   => 'givenName',
b2c3c3 624     'jobtitle'    => 'title',
a605b2 625     'email'       => 'mail:*',
0501b6 626     'phone:home'  => 'homePhone',
T 627     'phone:work'  => 'telephoneNumber',
628     'phone:mobile' => 'mobile',
ca3d76 629     'phone:pager' => 'pager',
0501b6 630     'street'      => 'street',
T 631     'zipcode'     => 'postalCode',
ca3d76 632     'region'      => 'st',
0501b6 633     'locality'    => 'l',
a605b2 634     // if you country is a complex object, you need to configure 'sub_fields' below
T 635     'country'      => 'c',
b563fc 636     'organization' => 'o',
a605b2 637     'department'   => 'ou',
T 638     'jobtitle'     => 'title',
639     'notes'        => 'description',
640     // these currently don't work:
641     // 'phone:workfax' => 'facsimileTelephoneNumber',
642     // 'photo'         => 'jpegPhoto',
643     // 'manager'       => 'manager',
644     // 'assistant'     => 'secretary',
0501b6 645   ),
a605b2 646   // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
T 647   'sub_fields' => array(),
3f250a 648   // Generate values for the following LDAP attributes automatically when creating a new record
TB 649   'autovalues' => array(
650   // 'uid'  => 'md5(microtime())',               // You may specify PHP code snippets which are then eval'ed 
651   // 'mail' => '{givenname}.{sn}@mydomain.com',  // or composite strings with placeholders for existing attributes
652   ),
3b9a53 653   'sort'          => 'cn',    // The field to sort the listing by.
T 654   'scope'         => 'sub',   // search mode: sub|base|list
d1e08f 655   'filter'        => '(objectClass=inetOrgPerson)',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
650601 656   'fuzzy_search'  => true,    // server allows wildcard search
15d762 657   'vlv'           => false,   // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
6af7e0 658   '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 659   'sizelimit'     => '0',     // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
T 660   'timelimit'     => '0',     // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
3b4b03 661   'referrals'     => true|false,  // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
d1e08f 662
T 663   // definition for contact groups (uncomment if no groups are supported)
664   // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
665   // if the groups base_dn is empty, the contact base_dn is used for the groups as well
15d762 666   // -> in this case, assure that groups and contacts are separated due to the concernig filters! 
6039aa 667   'groups'        => array(
f763fb 668     'base_dn'     => '',
aa9ddf 669     'scope'       => 'sub',   // search mode: sub|base|list
6039aa 670     'filter'      => '(objectClass=groupOfNames)',
d1e08f 671     'object_classes' => array("top", "groupOfNames"),
ad27eb 672     'member_attr'  => 'member',   // name of the member attribute, e.g. uniqueMember
T 673     'name_attr'    => 'cn',       // attribute to be used as group name
6039aa 674   ),
93c018 675 );
3b9a53 676 */
d1d2c4 677
2c8e84 678 // An ordered array of the ids of the addressbooks that should be searched
T 679 // when populating address autocomplete fields server-side. ex: array('sql','Verisign');
680 $rcmail_config['autocomplete_addressbooks'] = array('sql');
681
c296b8 682 // The minimum number of characters required to be typed in an autocomplete field
A 683 // before address books will be searched. Most useful for LDAP directories that
684 // may need to do lengthy results building given overly-broad searches
685 $rcmail_config['autocomplete_min_length'] = 1;
686
0213f8 687 // Number of parallel autocomplete requests.
A 688 // If there's more than one address book, n parallel (async) requests will be created,
689 // where each request will search in one address book. By default (0), all address
690 // books are searched in one request.
691 $rcmail_config['autocomplete_threads'] = 0;
692
693 // Max. numer of entries in autocomplete popup. Default: 15.
694 $rcmail_config['autocomplete_max'] = 15;
695
0501b6 696 // show address fields in this order
T 697 // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
698 $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
699
f21a04 700 // Matching mode for addressbook search (including autocompletion)
A 701 // 0 - partial (*abc*), default
702 // 1 - strict (abc)
703 // 2 - prefix (abc*)
704 // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
705 $rcmail_config['addressbook_search_mode'] = 0;
706
2d08c5 707 // ----------------------------------
A 708 // USER PREFERENCES
709 // ----------------------------------
4e17e6 710
e55ab0 711 // Use this charset as fallback for message decoding
A 712 $rcmail_config['default_charset'] = 'ISO-8859-1';
713
67effe 714 // skin name: folder from skins/
9f1652 715 $rcmail_config['skin'] = 'larry';
e58df3 716
08ffd9 717 // show up to X items in messages list view
A 718 $rcmail_config['mail_pagesize'] = 50;
719
720 // show up to X items in contacts list view
721 $rcmail_config['addressbook_pagesize'] = 50;
4e17e6 722
438753 723 // sort contacts by this col (preferably either one of name, firstname, surname)
T 724 $rcmail_config['addressbook_sort_col'] = 'surname';
725
f9a967 726 // the way how contact names are displayed in the list
T 727 // 0: display name
728 // 1: (prefix) firstname middlename surname (suffix)
729 // 2: (prefix) surname firstname middlename (suffix)
730 // 3: (prefix) surname, firstname middlename (suffix)
731 $rcmail_config['addressbook_name_listing'] = 0;
732
4e17e6 733 // use this timezone to display date/time
5879c0 734 // valid timezone identifers are listed here: php.net/manual/en/timezones.php
T 735 // 'auto' will use the browser's timezone settings
c8ae24 736 $rcmail_config['timezone'] = 'auto';
4647e1 737
4e17e6 738 // prefer displaying HTML messages
2d08c5 739 $rcmail_config['prefer_html'] = true;
4e17e6 740
2a4135 741 // display remote inline images
A 742 // 0 - Never, always ask
743 // 1 - Ask if sender is not in address book
744 // 2 - Always show inline images
745 $rcmail_config['show_images'] = 0;
712b30 746
271efe 747 // open messages in new window
TB 748 $rcmail_config['message_extwin'] = false;
749
750 // open message compose form in new window
751 $rcmail_config['compose_extwin'] = false;
752
b19097 753 // compose html formatted messages by default
8eefbb 754 // 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
868deb 755 $rcmail_config['htmleditor'] = 0;
b19097 756
30233b 757 // show pretty dates as standard
2d08c5 758 $rcmail_config['prettydate'] = true;
4e17e6 759
d656f1 760 // save compose message every 300 seconds (5min)
T 761 $rcmail_config['draft_autosave'] = 300;
0566ad 762
b19097 763 // default setting if preview pane is enabled
2d08c5 764 $rcmail_config['preview_pane'] = false;
b19097 765
bc4960 766 // Mark as read when viewed in preview pane (delay in seconds)
T 767 // Set to -1 if messages in preview pane should not be marked as read
768 $rcmail_config['preview_pane_mark_read'] = 0;
769
eaa394 770 // Clear Trash on logout
2d08c5 771 $rcmail_config['logout_purge'] = false;
eaa394 772
A 773 // Compact INBOX on logout
2d08c5 774 $rcmail_config['logout_expunge'] = false;
50c753 775
166b61 776 // Display attached images below the message body 
2d08c5 777 $rcmail_config['inline_images'] = true;
5e0045 778
ffae15 779 // Encoding of long/non-ascii attachment names:
A 780 // 0 - Full RFC 2231 compatible
781 // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
782 // 2 - Full 2047 compatible
21c277 783 $rcmail_config['mime_param_folding'] = 1;
ffae15 784
2d08c5 785 // Set true if deleted messages should not be displayed
2b5852 786 // This will make the application run slower
2d08c5 787 $rcmail_config['skip_deleted'] = false;
2b5852 788
A 789 // Set true to Mark deleted messages as read as well as deleted
790 // False means that a message's read status is not affected by marking it as deleted
2d08c5 791 $rcmail_config['read_when_deleted'] = true;
2b5852 792
ca8a17 793 // Set to true to never delete messages immediately
A 794 // Use 'Purge' to remove messages marked as deleted
2d08c5 795 $rcmail_config['flag_for_deletion'] = false;
2b5852 796
aa8359 797 // Default interval for auto-refresh requests (in seconds)
AM 798 // These are requests for system state updates e.g. checking for new messages, etc.
799 // Setting it to 0 disables the feature.
f22654 800 $rcmail_config['refresh_interval'] = 60;
95d90f 801
2fd975 802 // If true all folders will be checked for recent messages
2d08c5 803 $rcmail_config['check_all_folders'] = false;
2fd975 804
e54bb7 805 // If true, after message delete/move, the next message will be displayed
b1f30d 806 $rcmail_config['display_next'] = true;
e54bb7 807
f52c93 808 // 0 - Do not expand threads 
T 809 // 1 - Expand all threads automatically 
810 // 2 - Expand only threads with unread messages 
811 $rcmail_config['autoexpand_threads'] = 0;
1cead0 812
651c7b 813 // When replying:
AM 814 // -1 - don't cite the original message
815 // 0  - place cursor below the original message
816 // 1  - place cursor above original message (top posting)
817 $rcmail_config['reply_mode'] = 0;
50f56d 818
0207c4 819 // When replying strip original signature from message
2d08c5 820 $rcmail_config['strip_existing_sig'] = true;
0207c4 821
50f56d 822 // Show signature:
0207c4 823 // 0 - Never
T 824 // 1 - Always
50f56d 825 // 2 - New messages only
0207c4 826 // 3 - Forwards and Replies only
T 827 $rcmail_config['show_sig'] = 1;
828
829 // When replying or forwarding place sender's signature above existing message
2d08c5 830 $rcmail_config['sig_above'] = false;
50f56d 831
47ad83 832 // Use MIME encoding (quoted-printable) for 8bit characters in message body
2d08c5 833 $rcmail_config['force_7bit'] = false;
47ad83 834
b975da 835 // Defaults of the search field configuration.
T 836 // The array can contain a per-folder list of header fields which should be considered when searching
837 // The entry with key '*' stands for all folders which do not have a specific list set.
bf9dde 838 // Please note that folder names should to be in sync with $rcmail_config['default_folders']
b975da 839 $rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
T 840
3cacf9 841 // Defaults of the addressbook search field configuration.
A 842 $rcmail_config['addressbook_search_mods'] = null;  // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
843
b7f952 844 // 'Delete always'
A 845 // This setting reflects if mail should be always deleted
846 // when moving to Trash fails. This is necessary in some setups
847 // when user is over quota and Trash is included in the quota.
848 $rcmail_config['delete_always'] = false;
849
1b30a7 850 // Directly delete messages in Junk instead of moving to Trash
A 851 $rcmail_config['delete_junk'] = false;
852
f22ea7 853 // Behavior if a received message requests a message delivery notification (read receipt)
A 854 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
855 // 3 = send automatically if sender is in addressbook, otherwise ask the user
856 // 4 = send automatically if sender is in addressbook, otherwise ignore
857 $rcmail_config['mdn_requests'] = 0;
b25dfd 858
f22ea7 859 // Return receipt checkbox default state
A 860 $rcmail_config['mdn_default'] = 0;
861
862 // Delivery Status Notification checkbox default state
863 $rcmail_config['dsn_default'] = 0;
864
eeb85f 865 // Place replies in the folder of the message being replied to
A 866 $rcmail_config['reply_same_folder'] = false;
867
a509bb 868 // Sets default mode of Forward feature to "forward as attachment"
A 869 $rcmail_config['forward_attachment'] = false;
870
d73448 871 // Defines address book (internal index) to which new contacts will be added
A 872 // By default it is the first writeable addressbook.
873 // Note: Use '0' for built-in address book.
874 $rcmail_config['default_addressbook'] = null;
875
1d5779 876 // Enables spell checking before sending a message.
A 877 $rcmail_config['spellcheck_before_send'] = false;
878
710b1b 879 // Skip alternative email addresses in autocompletion (show one address per contact)
A 880 $rcmail_config['autocomplete_single'] = false;
881
7e263e 882 // Default font for composed HTML message.
A 883 // Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
884 // Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
885 $rcmail_config['default_font'] = '';
886
f22ea7 887 // end of config file