defaults.inc.php 51 KB

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