Guest User

RC 1.0

a guest
Oct 1st, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 31.95 KB | None | 0 0
  1. [code]<?php
  2.  
  3. /*
  4.  +-----------------------------------------------------------------------+
  5.  | Main configuration file with default settings                         |
  6.  |                                                                       |
  7.  | This file is part of the Roundcube Webmail client                     |
  8.  | Copyright (C) 2005-2013, The Roundcube Dev Team                       |
  9.  |                                                                       |
  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.                     |
  13.  +-----------------------------------------------------------------------+
  14. */
  15.  
  16. $config = array();
  17.  
  18. // ----------------------------------
  19. // SQL DATABASE
  20. // ----------------------------------
  21.  
  22. // Database connection string (DSN) for read+write operations
  23. // Format (compatible with PEAR MDB2): db_provider://user:password@host/database
  24. // Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
  25. // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
  26. // NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
  27. $config['db_dsnw'] = 'mysql://roundcube:@localhost/roundcubemail';
  28.  
  29. // Database DSN for read-only operations (if empty write database will be used)
  30. // useful for database replication
  31. $config['db_dsnr'] = '';
  32.  
  33. // Disable the use of already established dsnw connections for subsequent reads
  34. $config['db_dsnw_noread'] = false;
  35.  
  36. // use persistent db-connections
  37. // beware this will not "always" work as expected
  38. // see: http://www.php.net/manual/en/features.persistent-connections.php
  39. $config['db_persistent'] = false;
  40.  
  41. // you can define specific table (and sequence) names prefix
  42. $config['db_prefix'] = '';
  43.  
  44. // Mapping of table names and connections to use for ALL operations.
  45. // This can be used in a setup with replicated databases and a DB master
  46. // where read/write access to cache tables should not go to master.
  47. $config['db_table_dsn'] = array(
  48. //    'cache' => 'r',
  49. //    'cache_index' => 'r',
  50. //    'cache_thread' => 'r',
  51. //    'cache_messages' => 'r',
  52. );
  53.  
  54.  
  55. // ----------------------------------
  56. // LOGGING/DEBUGGING
  57. // ----------------------------------
  58.  
  59. // system error reporting, sum of: 1 = log; 4 = show, 8 = trace
  60. $config['debug_level'] = 1;
  61.  
  62. // log driver:  'syslog' or 'file'.
  63. $config['log_driver'] = 'file';
  64.  
  65. // date format for log entries
  66. // (read http://php.net/manual/en/function.date.php for all format characters)  
  67. $config['log_date_format'] = 'd-M-Y H:i:s O';
  68.  
  69. // Syslog ident string to use, if using the 'syslog' log driver.
  70. $config['syslog_id'] = 'roundcube';
  71.  
  72. // Syslog facility to use, if using the 'syslog' log driver.
  73. // For possible values see installer or http://php.net/manual/en/function.openlog.php
  74. $config['syslog_facility'] = LOG_USER;
  75.  
  76. // Activate this option if logs should be written to per-user directories.
  77. // Data will only be logged if a directry <log_dir>/<username>/ exists and is writable.
  78. $config['per_user_logging'] = false;
  79.  
  80. // Log sent messages to <log_dir>/sendmail or to syslog
  81. $config['smtp_log'] = true;
  82.  
  83. // Log successful/failed logins to <log_dir>/userlogins or to syslog
  84. $config['log_logins'] = false;
  85.  
  86. // Log session authentication errors to <log_dir>/session or to syslog
  87. $config['log_session'] = false;
  88.  
  89. // Log SQL queries to <log_dir>/sql or to syslog
  90. $config['sql_debug'] = true;
  91.  
  92. // Log IMAP conversation to <log_dir>/imap or to syslog
  93. $config['imap_debug'] = false;
  94.  
  95. // Log LDAP conversation to <log_dir>/ldap or to syslog
  96. $config['ldap_debug'] = false;
  97.  
  98. // Log SMTP conversation to <log_dir>/smtp or to syslog
  99. $config['smtp_debug'] = false;
  100.  
  101. // ----------------------------------
  102. // IMAP
  103. // ----------------------------------
  104.  
  105. // The mail host chosen to perform the log-in.
  106. // Leave blank to show a textbox at login, give a list of hosts
  107. // to display a pulldown menu or set one host as string.
  108. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  109. // Supported replacement variables:
  110. // %n - hostname ($_SERVER['SERVER_NAME'])
  111. // %t - hostname without the first part
  112. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  113. // %s - domain name after the '@' from e-mail address provided at login screen
  114. // For example %n = mail.domain.tld, %t = domain.tld
  115. // WARNING: After hostname change update of mail_host column in users table is
  116. //          required to match old user data records with the new host.
  117. $config['default_host'] = 'localhost';
  118. @include "/etc/psa-webmail/roundcube/mailhosts.php";
  119.  
  120. // TCP port used for IMAP connections
  121. $config['default_port'] = 143;
  122.  
  123. // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or null to use
  124. // best server supported one)
  125. $config['imap_auth_type'] = null;
  126.  
  127. // If you know your imap's folder delimiter, you can specify it here.
  128. // Otherwise it will be determined automatically
  129. $config['imap_delimiter'] = null;
  130.  
  131. // If IMAP server doesn't support NAMESPACE extension, but you're
  132. // using shared folders or personal root folder is non-empty, you'll need to
  133. // set these options. All can be strings or arrays of strings.
  134. // Folders need to be ended with directory separator, e.g. "INBOX."
  135. // (special directory "~" is an exception to this rule)
  136. // These can be used also to overwrite server's namespaces
  137. $config['imap_ns_personal'] = null;
  138. $config['imap_ns_other']    = null;
  139. $config['imap_ns_shared']   = null;
  140.  
  141. // By default IMAP capabilities are readed after connection to IMAP server
  142. // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
  143. // after login. Set to True if you've got this case.
  144. $config['imap_force_caps'] = false;
  145.  
  146. // By default list of subscribed folders is determined using LIST-EXTENDED
  147. // extension if available. Some servers (dovecot 1.x) returns wrong results
  148. // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
  149. // Enable this option to force LSUB command usage instead.
  150. // Deprecated: Use imap_disabled_caps = array('LIST-EXTENDED')
  151. $config['imap_force_lsub'] = false;
  152.  
  153. // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
  154. // Enable this option to force listing of folders in all namespaces
  155. $config['imap_force_ns'] = false;
  156.  
  157. // List of disabled imap extensions.
  158. // Use if your IMAP server has broken implementation of some feature
  159. // and you can't remove it from CAPABILITY string on server-side.
  160. // For example UW-IMAP server has broken ESEARCH.
  161. // Note: Because the list is cached, re-login is required after change.
  162. $config['imap_disabled_caps'] = array();
  163.  
  164. // IMAP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
  165. $config['imap_timeout'] = 0;
  166.  
  167. // Optional IMAP authentication identifier to be used as authorization proxy
  168. $config['imap_auth_cid'] = null;
  169.  
  170. // Optional IMAP authentication password to be used for imap_auth_cid
  171. $config['imap_auth_pw'] = null;
  172.  
  173. // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
  174. $config['imap_cache'] = null;
  175.  
  176. // Enables messages cache. Only 'db' cache is supported.
  177. $config['messages_cache'] = false;
  178.  
  179. // Lifetime of IMAP indexes cache. Possible units: s, m, h, d, w
  180. $config['imap_cache_ttl'] = '10d';
  181.  
  182. // Lifetime of messages cache. Possible units: s, m, h, d, w
  183. $config['messages_cache_ttl'] = '10d';
  184.  
  185. // Maximum cached message size in kilobytes.
  186. // Note: On MySQL this should be less than (max_allowed_packet - 30%)
  187. $config['messages_cache_threshold'] = 50;
  188.  
  189.  
  190. // ----------------------------------
  191. // SMTP
  192. // ----------------------------------
  193.  
  194. // SMTP server host (for sending mails).
  195. // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
  196. // If left blank, the PHP mail() function is used
  197. // Supported replacement variables:
  198. // %h - user's IMAP hostname
  199. // %n - hostname ($_SERVER['SERVER_NAME'])
  200. // %t - hostname without the first part
  201. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  202. // %z - IMAP domain (IMAP hostname without the first part)
  203. // For example %n = mail.domain.tld, %t = domain.tld
  204. $config['smtp_server'] = 'localhost';
  205.  
  206. // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
  207. // deprecated SSL over SMTP (aka SMTPS))
  208. $config['smtp_port'] = 25;
  209.  
  210. // SMTP username (if required) if you use %u as the username Roundcube
  211. // will use the current username for login
  212. $config['smtp_user'] = '%u';
  213.  
  214. // SMTP password (if required) if you use %p as the password Roundcube
  215. // will use the current user's password for login
  216. $config['smtp_pass'] = '%p';
  217.  
  218. // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
  219. // best server supported one)
  220. $config['smtp_auth_type'] = '';
  221.  
  222. // Optional SMTP authentication identifier to be used as authorization proxy
  223. $config['smtp_auth_cid'] = null;
  224.  
  225. // Optional SMTP authentication password to be used for smtp_auth_cid
  226. $config['smtp_auth_pw'] = null;
  227.  
  228. // SMTP HELO host
  229. // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
  230. // Leave this blank and you will get the server variable 'server_name' or
  231. // localhost if that isn't defined.
  232. $config['smtp_helo_host'] = '';
  233.  
  234. // SMTP connection timeout, in seconds. Default: 0 (use default_socket_timeout)
  235. // Note: There's a known issue where using ssl connection with
  236. // timeout > 0 causes connection errors (https://bugs.php.net/bug.php?id=54511)
  237. $config['smtp_timeout'] = 0;
  238.  
  239. // SMTP socket context options
  240. // See http://php.net/manual/en/context.ssl.php
  241. // The example below enables server certificate validation, and
  242. // requires 'smtp_timeout' to be non zero.
  243. // $config['smtp_conn_options'] = array(
  244. //   'ssl'         => array(
  245. //     'verify_peer'     => true,
  246. //     'verify_depth     => 3,
  247. //     'cafile'          => '/etc/openssl/certs/ca.crt',
  248. //   ),
  249. // );
  250. $config['smtp_conn_options'] = null;
  251.  
  252. // ----------------------------------
  253. // LDAP
  254. // ----------------------------------
  255.  
  256. // Type of LDAP cache. Supported values: 'db', 'apc' and 'memcache'.
  257. $config['ldap_cache'] = 'db';
  258.  
  259. // Lifetime of LDAP cache. Possible units: s, m, h, d, w
  260. $config['ldap_cache_ttl'] = '10m';
  261.  
  262. // ----------------------------------
  263. // SYSTEM
  264. // ----------------------------------
  265.  
  266. // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
  267. // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
  268. $config['enable_installer'] = false;
  269.  
  270. // don't allow these settings to be overriden by the user
  271. $config['dont_override'] = array();
  272.  
  273. // define which settings should be listed under the 'advanced' block
  274. // which is hidden by default
  275. $config['advanced_prefs'] = array();
  276.  
  277. // provide an URL where a user can get support for this Roundcube installation
  278. // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
  279. $config['support_url'] = '';
  280.  
  281. // replace Roundcube logo with this image
  282. // specify an URL relative to the document root of this Roundcube installation
  283. // an array can be used to specify different logos for specific template files, '*' for default logo
  284. // for example array("*" => "/images/roundcube_logo.png", "messageprint" => "/images/roundcube_logo_print.png")
  285. $config['skin_logo'] = null;
  286.  
  287. // automatically create a new Roundcube user when log-in the first time.
  288. // a new user will be created once the IMAP login succeeds.
  289. // set to false if only registered users can use this service
  290. $config['auto_create_user'] = true;
  291.  
  292. // Enables possibility to log in using email address from user identities
  293. $config['user_aliases'] = false;
  294.  
  295. // use this folder to store log files (must be writeable for apache user)
  296. // This is used by the 'file' log driver.
  297. $config['log_dir'] = '/var/log/plesk-roundcube/';
  298.  
  299. // use this folder to store temp files (must be writeable for apache user)
  300. $config['temp_dir'] = '/var/tmp/plesk-roundcube/';
  301.  
  302. // expire files in temp_dir after 48 hours
  303. // possible units: s, m, h, d, w
  304. $config['temp_dir_ttl'] = '48h';
  305.  
  306. // enforce connections over https
  307. // with this option enabled, all non-secure connections will be redirected.
  308. // set the port for the ssl connection as value of this option if it differs from the default 443
  309. $config['force_https'] = false;
  310.  
  311. // tell PHP that it should work as under secure connection
  312. // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
  313. // e.g. when you're running Roundcube behind a https proxy
  314. // this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
  315. $config['use_https'] = false;
  316.  
  317. // Allow browser-autocompletion on login form.
  318. // 0 - disabled, 1 - username and host only, 2 - username, host, password
  319. $config['login_autocomplete'] = 0;
  320.  
  321. // Forces conversion of logins to lower case.
  322. // 0 - disabled, 1 - only domain part, 2 - domain and local part.
  323. // If users authentication is case-insensitive this must be enabled.
  324. // Note: After enabling it all user records need to be updated, e.g. with query:
  325. //       UPDATE users SET username = LOWER(username);
  326. $config['login_lc'] = 2;
  327.  
  328. // Includes should be interpreted as PHP files
  329. $config['skin_include_php'] = false;
  330.  
  331. // display software version on login screen
  332. $config['display_version'] = false;
  333.  
  334. // Session lifetime in minutes
  335. $config['session_lifetime'] = 10;
  336.  
  337. // Session domain: .example.org
  338. $config['session_domain'] = '';
  339.  
  340. // Session name. Default: 'roundcube_sessid'
  341. $config['session_name'] = null;
  342.  
  343. // Session authentication cookie name. Default: 'roundcube_sessauth'
  344. $config['session_auth_name'] = null;
  345.  
  346. // Session path. Defaults to PHP session.cookie_path setting.
  347. $config['session_path'] = null;
  348.  
  349. // Backend to use for session storage. Can either be 'db' (default), 'memcache' or 'php'
  350. // If set to 'memcache', a list of servers need to be specified in 'memcache_hosts'
  351. // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
  352. // Setting this value to 'php' will use the default session save handler configured in PHP
  353. $config['session_storage'] = 'db';
  354.  
  355. // Use these hosts for accessing memcached
  356. // Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
  357. $config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
  358.  
  359. // check client IP in session athorization
  360. $config['ip_check'] = false;
  361.  
  362. // check referer of incoming requests
  363. $config['referer_check'] = false;
  364.  
  365. // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
  366. // Possible values: sameorigin|deny. Set to false in order to disable sending them
  367. $config['x_frame_options'] = 'sameorigin';
  368.  
  369. // this key is used to encrypt the users imap password which is stored
  370. // in the session record (and the client cookie if remember password is enabled).
  371. // please provide a string of exactly 24 chars.
  372. $config['des_key'] = 'hidden....';
  373.  
  374. // Automatically add this domain to user names for login
  375. // Only for IMAP servers that require full e-mail addresses for login
  376. // Specify an array with 'host' => 'domain' values to support multiple hosts
  377. // Supported replacement variables:
  378. // %h - user's IMAP hostname
  379. // %n - hostname ($_SERVER['SERVER_NAME'])
  380. // %t - hostname without the first part
  381. // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
  382. // %z - IMAP domain (IMAP hostname without the first part)
  383. // For example %n = mail.domain.tld, %t = domain.tld
  384. $config['username_domain'] = '%d';
  385.  
  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.  
  390. // This domain will be used to form e-mail addresses of new users
  391. // Specify an array with 'host' => 'domain' values to support multiple hosts
  392. // Supported replacement variables:
  393. // %h - user's IMAP hostname
  394. // %n - http hostname ($_SERVER['SERVER_NAME'])
  395. // %d - domain (http hostname without the first part)
  396. // %z - IMAP domain (IMAP hostname without the first part)
  397. // For example %n = mail.domain.tld, %t = domain.tld
  398. $config['mail_domain'] = '%d';
  399.  
  400. // Password charset.
  401. // Use it if your authentication backend doesn't support UTF-8.
  402. // Defaults to ISO-8859-1 for backward compatibility
  403. $config['password_charset'] = 'ISO-8859-1';
  404.  
  405. // How many seconds must pass between emails sent by a user
  406. $config['sendmail_delay'] = 0;
  407.  
  408. // Maximum number of recipients per message. Default: 0 (no limit)
  409. $config['max_recipients'] = 0;
  410.  
  411. // Maximum allowednumber of members of an address group. Default: 0 (no limit)
  412. // If 'max_recipients' is set this value should be less or equal
  413. $config['max_group_members'] = 0;
  414.  
  415. // Name your service. This is displayed on the login screen and in the window title
  416. $config['product_name'] = 'Email';
  417.  
  418. // Add this user-agent to message headers when sending
  419. $config['useragent'] = 'Email/'.RCMAIL_VERSION;
  420.  
  421. // try to load host-specific configuration
  422. // see http://trac.roundcube.net/wiki/Howto_Config for more details
  423. $config['include_host_config'] = false;
  424.  
  425. // path to a text file which will be added to each sent message
  426. // paths are relative to the Roundcube root folder
  427. $config['generic_message_footer'] = '';
  428.  
  429. // path to a text file which will be added to each sent HTML message
  430. // paths are relative to the Roundcube root folder
  431. $config['generic_message_footer_html'] = '';
  432.  
  433. // add a received header to outgoing mails containing the creators IP and hostname
  434. $config['http_received_header'] = false;
  435.  
  436. // Whether or not to encrypt the IP address and the host name
  437. // these could, in some circles, be considered as sensitive information;
  438. // however, for the administrator, these could be invaluable help
  439. // when tracking down issues.
  440. $config['http_received_header_encrypt'] = false;
  441.  
  442. // This string is used as a delimiter for message headers when sending
  443. // a message via mail() function. Leave empty for auto-detection
  444. $config['mail_header_delimiter'] = NULL;
  445.  
  446. // number of chars allowed for line when wrapping text.
  447. // text wrapping is done when composing/sending messages
  448. $config['line_length'] = 72;
  449.  
  450. // send plaintext messages as format=flowed
  451. $config['send_format_flowed'] = true;
  452.  
  453. // According to RFC2298, return receipt envelope sender address must be empty.
  454. // If this option is true, Roundcube will use user's identity as envelope sender for MDN responses.
  455. $config['mdn_use_from'] = false;
  456.  
  457. // Set identities access level:
  458. // 0 - many identities with possibility to edit all params
  459. // 1 - many identities with possibility to edit all params but not email address
  460. // 2 - one identity with possibility to edit all params
  461. // 3 - one identity with possibility to edit all params but not email address
  462. // 4 - one identity with possibility to edit only signature
  463. $config['identities_level'] = 3;
  464.  
  465. // Mimetypes supported by the browser.
  466. // attachments of these types will open in a preview window
  467. // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
  468. $config['client_mimetypes'] = null;  # null == default
  469.  
  470. // Path to a local mime magic database file for PHPs finfo extension.
  471. // Set to null if the default path should be used.
  472. $config['mime_magic'] = null;
  473.  
  474. // Absolute path to a local mime.types mapping table file.
  475. // This is used to derive mime-types from the filename extension or vice versa.
  476. // Such a file is usually part of the apache webserver. If you don't find a file named mime.types on your system,
  477. // download it from http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
  478. $config['mime_types'] = null;
  479.  
  480. // path to imagemagick identify binary
  481. $config['im_identify_path'] = null;
  482.  
  483. // path to imagemagick convert binary
  484. $config['im_convert_path'] = null;
  485.  
  486. // Size of thumbnails from image attachments displayed below the message content.
  487. // Note: whether images are displayed at all depends on the 'inline_images' option.
  488. // Set to 0 to display images in full size.
  489. $config['image_thumbnail_size'] = 240;
  490.  
  491. // maximum size of uploaded contact photos in pixel
  492. $config['contact_photo_size'] = 160;
  493.  
  494. // Enable DNS checking for e-mail address validation
  495. $config['email_dns_check'] = false;
  496.  
  497. // Disables saving sent messages in Sent folder (like gmail) (Default: false)
  498. // Note: useful when SMTP server stores sent mail in user mailbox
  499. $config['no_save_sent_messages'] = false;
  500.  
  501. // ----------------------------------
  502. // PLUGINS
  503. // ----------------------------------
  504.  
  505. // List of active plugins (in plugins/ directory)
  506. $config['plugins'] = array('password', 'markasjunk2', 'sieverules', 'threecol');
  507.  
  508. // ----------------------------------
  509. // USER INTERFACE
  510. // ----------------------------------
  511.  
  512. // default messages sort column. Use empty value for default server's sorting,
  513. // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
  514. $config['message_sort_col'] = '';
  515.  
  516. // default messages sort order
  517. $config['message_sort_order'] = 'DESC';
  518.  
  519. // These cols are shown in the message list. Available cols are:
  520. // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
  521. $config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
  522.  
  523. // the default locale setting (leave empty for auto-detection)
  524. // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
  525. $config['language'] = null;
  526.  
  527. // use this format for date display (date or strftime format)
  528. $config['date_format'] = 'Y-m-d';
  529.  
  530. // give this choice of date formats to the user to select from
  531. // Note: do not use ambiguous formats like m/d/Y
  532. $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');
  533.  
  534. // use this format for time display (date or strftime format)
  535. $config['time_format'] = 'H:i';
  536.  
  537. // give this choice of time formats to the user to select from
  538. $config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
  539.  
  540. // use this format for short date display (derived from date_format and time_format)
  541. $config['date_short'] = 'D H:i';
  542.  
  543. // use this format for detailed date/time formatting (derived from date_format and time_format)
  544. $config['date_long'] = 'Y-m-d H:i';
  545.  
  546. // store draft message is this mailbox
  547. // leave blank if draft messages should not be stored
  548. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  549. $config['drafts_mbox'] = 'INBOX.Drafts';
  550.  
  551. // store spam messages in this mailbox
  552. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  553. $config['junk_mbox'] = 'INBOX.Spam';
  554.  
  555. // store sent message is this mailbox
  556. // leave blank if sent messages should not be stored
  557. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  558. $config['sent_mbox'] = 'INBOX.Sent';
  559.  
  560. // move messages to this folder when deleting them
  561. // leave blank if they should be deleted directly
  562. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  563. $config['trash_mbox'] = 'INBOX.Trash';
  564.  
  565. // display these folders separately in the mailbox list.
  566. // these folders will also be displayed with localized names
  567. // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
  568. $config['default_folders'] = array('INBOX', 'INBOX.Drafts', 'INBOX.Sent', 'INBOX.Spam', 'INBOX.Trash');
  569.  
  570. // Disable localization of the default folder names listed above
  571. $config['show_real_foldernames'] = false;
  572.  
  573. // automatically create the above listed default folders on first login
  574. $config['create_default_folders'] = true;
  575.  
  576. // protect the default folders from renames, deletes, and subscription changes
  577. $config['protect_default_folders'] = true;
  578.  
  579. // if in your system 0 quota means no limit set this option to true
  580. $config['quota_zero_as_unlimited'] = false;
  581.  
  582. // Make use of the built-in spell checker. It is based on GoogieSpell.
  583. // Since Google only accepts connections over https your PHP installatation
  584. // requires to be compiled with Open SSL support
  585. $config['enable_spellcheck'] = true;
  586.  
  587. // Enables spellchecker exceptions dictionary.
  588. // Setting it to 'shared' will make the dictionary shared by all users.
  589. $config['spellcheck_dictionary'] = false;
  590.  
  591. // Set the spell checking engine. Possible values:
  592. // - 'googie'  - the default
  593. // - 'pspell'  - requires the PHP Pspell module and aspell installed
  594. // - 'enchant' - requires the PHP Enchant module
  595. // - 'atd'     - install your own After the Deadline server or check with the people at http://www.afterthedeadline.com before using their API
  596. // Since Google shut down their public spell checking service, you need to
  597. // connect to a Nox Spell Server when using 'googie' here. Therefore specify the 'spellcheck_uri'
  598. $config['spellcheck_engine'] = 'googie';
  599.  
  600. // For locally installed Nox Spell Server or After the Deadline services,
  601. // please specify the URI to call it.
  602. // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 or
  603. // the After the Deadline package from http://www.afterthedeadline.com.
  604. // Leave empty to use the public API of service.afterthedeadline.com
  605. $config['spellcheck_uri'] = '';
  606.  
  607. // These languages can be selected for spell checking.
  608. // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
  609. // Leave empty for default set of available language.
  610. $config['spellcheck_languages'] = NULL;
  611.  
  612. // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
  613. $config['spellcheck_ignore_caps'] = false;
  614.  
  615. // Makes that words with numbers will be ignored (e.g. g00gle)
  616. $config['spellcheck_ignore_nums'] = false;
  617.  
  618. // Makes that words with symbols will be ignored (e.g. g@@gle)
  619. $config['spellcheck_ignore_syms'] = false;
  620.  
  621. // Use this char/string to separate recipients when composing a new message
  622. $config['recipients_separator'] = ',';
  623.  
  624. // don't let users set pagesize to more than this value if set
  625. $config['max_pagesize'] = 200;
  626.  
  627. // Minimal value of user's 'refresh_interval' setting (in seconds)
  628. $config['min_refresh_interval'] = 60;
  629.  
  630. // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
  631. // By default refresh time is set to 1 second. You can set this value to true
  632. // or any integer value indicating number of seconds.
  633. $config['upload_progress'] = false;
  634.  
  635. // Specifies for how many seconds the Undo button will be available
  636. // after object delete action. Currently used with supporting address book sources.
  637. // Setting it to 0, disables the feature.
  638. $config['undo_timeout'] = 0;
  639.  
  640. // A static list of canned responses which are immutable for the user
  641. $config['compose_responses_static'] = array(
  642. //  array('name' => 'Canned Response 1', 'text' => 'Static Response One'),
  643. //  array('name' => 'Canned Response 2', 'text' => 'Static Response Two'),
  644. );
  645.  
  646. // Number of parallel autocomplete requests.
  647. // If there's more than one address book, n parallel (async) requests will be created,
  648. // where each request will search in one address book. By default (0), all address
  649. // books are searched in one request.
  650. $config['autocomplete_threads'] = 0;
  651.  
  652. // Max. numer of entries in autocomplete popup. Default: 15.
  653. $config['autocomplete_max'] = 15;
  654.  
  655. // show address fields in this order
  656. // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
  657. $config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
  658.  
  659. // Matching mode for addressbook search (including autocompletion)
  660. // 0 - partial (*abc*), default
  661. // 1 - strict (abc)
  662. // 2 - prefix (abc*)
  663. // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
  664. $config['addressbook_search_mode'] = 0;
  665.  
  666. // ----------------------------------
  667. // USER PREFERENCES
  668. // ----------------------------------
  669.  
  670. // Use this charset as fallback for message decoding
  671. $config['default_charset'] = 'ISO-8859-1';
  672.  
  673. // skin name: folder from skins/
  674. $config['skin'] = 'larry';
  675.  
  676. // Enables using standard browser windows (that can be handled as tabs)
  677. // instead of popup windows
  678. $config['standard_windows'] = false;
  679.  
  680. // show up to X items in messages list view
  681. $config['mail_pagesize'] = 50;
  682.  
  683. // show up to X items in contacts list view
  684. $config['addressbook_pagesize'] = 50;
  685.  
  686. // sort contacts by this col (preferably either one of name, firstname, surname)
  687. $config['addressbook_sort_col'] = 'surname';
  688.  
  689. // the way how contact names are displayed in the list
  690. // 0: display name
  691. // 1: (prefix) firstname middlename surname (suffix)
  692. // 2: (prefix) surname firstname middlename (suffix)
  693. // 3: (prefix) surname, firstname middlename (suffix)
  694. $config['addressbook_name_listing'] = 0;
  695.  
  696. // use this timezone to display date/time
  697. // valid timezone identifers are listed here: php.net/manual/en/timezones.php
  698. // 'auto' will use the browser's timezone settings
  699. $config['timezone'] = 'America/New_York';
  700.  
  701. // prefer displaying HTML messages
  702. $config['prefer_html'] = true;
  703.  
  704. // display remote inline images
  705. // 0 - Never, always ask
  706. // 1 - Ask if sender is not in address book
  707. // 2 - Always show inline images
  708. $config['show_images'] = 2;
  709.  
  710. // open messages in new window
  711. $config['message_extwin'] = false;
  712.  
  713. // open message compose form in new window
  714. $config['compose_extwin'] = false;
  715.  
  716. // compose html formatted messages by default
  717. // 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
  718. $config['htmleditor'] = 1;
  719.  
  720. // show pretty dates as standard
  721. $config['prettydate'] = true;
  722.  
  723. // save compose message every 300 seconds (5min)
  724. $config['draft_autosave'] = 1200;
  725.  
  726. // default setting if preview pane is enabled
  727. $config['preview_pane'] = true;
  728.  
  729. // Mark as read when viewed in preview pane (delay in seconds)
  730. // Set to -1 if messages in preview pane should not be marked as read
  731. $config['preview_pane_mark_read'] = 0;
  732.  
  733. // Clear Trash on logout
  734. $config['logout_purge'] = false;
  735.  
  736. // Compact INBOX on logout
  737. $config['logout_expunge'] = false;
  738.  
  739. // Display attached images below the message body
  740. $config['inline_images'] = true;
  741.  
  742. // Encoding of long/non-ascii attachment names:
  743. // 0 - Full RFC 2231 compatible
  744. // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
  745. // 2 - Full 2047 compatible
  746. $config['mime_param_folding'] = 1;
  747.  
  748. // Set true if deleted messages should not be displayed
  749. // This will make the application run slower
  750. $config['skip_deleted'] = false;
  751.  
  752. // Set true to Mark deleted messages as read as well as deleted
  753. // False means that a message's read status is not affected by marking it as deleted
  754. $config['read_when_deleted'] = true;
  755.  
  756. // Set to true to never delete messages immediately
  757. // Use 'Purge' to remove messages marked as deleted
  758. $config['flag_for_deletion'] = false;
  759.  
  760. // Default interval for auto-refresh requests (in seconds)
  761. // These are requests for system state updates e.g. checking for new messages, etc.
  762. // Setting it to 0 disables the feature.
  763. $config['refresh_interval'] = 60;
  764.  
  765. // If true all folders will be checked for recent messages
  766. $config['check_all_folders'] = false;
  767.  
  768. // If true, after message delete/move, the next message will be displayed
  769. $config['display_next'] = true;
  770.  
  771. // 0 - Do not expand threads
  772. // 1 - Expand all threads automatically
  773. // 2 - Expand only threads with unread messages
  774. $config['autoexpand_threads'] = 0;
  775.  
  776. // Enables spell checking before sending a message.
  777. $config['spellcheck_before_send'] = false;
  778.  
  779. // Skip alternative email addresses in autocompletion (show one address per contact)
  780. $config['autocomplete_single'] = false;
  781.  
  782. // Default font for composed HTML message.
  783. // Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
  784. // Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
  785. $config['default_font'] = 'Verdana';
  786.  
  787. // Default font size for composed HTML message.
  788. // Supported sizes: 8pt, 10pt, 12pt, 14pt, 18pt, 24pt, 36pt
  789. $config['default_font_size'] = '10pt';
  790.  
  791. // Enables display of email address with name instead of a name (and address in title)
  792. $config['message_show_email'] = false;
  793.  
  794. // Default behavior of Reply-All button:
  795. // 0 - Reply-All always
  796. // 1 - Reply-List if mailing list is detected
  797. $config['reply_all_mode'] = 0;
  798. [/code]
Advertisement
Add Comment
Please, Sign In to add comment