source: github/config/main.inc.php.dist @ 58687d0

HEADcourier-fixdev-browser-capabilitiespdorelease-0.6release-0.7release-0.8
Last change on this file since 58687d0 was 58687d0, checked in by thomascube <thomas@…>, 4 years ago

Be more tolerant when splitting strings + remove col that we don't have a label for

  • Property mode set to 100644
File size: 16.4 KB
Line 
1<?php
2
3/*
4 +-----------------------------------------------------------------------+
5 | Main configuration file                                               |
6 |                                                                       |
7 | This file is part of the RoundCube Webmail client                     |
8 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland                 |
9 | Licensed under the GNU GPL                                            |
10 |                                                                       |
11 +-----------------------------------------------------------------------+
12
13*/
14
15$rcmail_config = array();
16
17
18// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
19$rcmail_config['debug_level'] = 1;
20
21// log driver:  'syslog' or 'file'.
22$rcmail_config['log_driver'] = 'file';
23
24// Syslog ident string to use, if using the 'syslog' log driver.
25$rcmail_config['syslog_id'] = 'roundcube';
26
27// Syslog facility to use, if using the 'syslog' log driver.
28// For possible values see installer or http://php.net/manual/en/function.openlog.php
29$rcmail_config['syslog_facility'] = LOG_USER;
30
31// use this folder to store log files (must be writeable for apache user)
32// This is used by the 'file' log driver.
33$rcmail_config['log_dir'] = 'logs/';
34
35// use this folder to store temp files (must be writeable for apache user)
36$rcmail_config['temp_dir'] = 'temp/';
37
38// enable caching of messages and mailbox data in the local database.
39// this is recommended if the IMAP server does not run on the same machine
40$rcmail_config['enable_caching'] = TRUE;
41
42// lifetime of message cache
43// possible units: s, m, h, d, w
44$rcmail_config['message_cache_lifetime'] = '10d';
45
46// automatically create a new RoundCube user when log-in the first time.
47// a new user will be created once the IMAP login succeeds.
48// set to false if only registered users can use this service
49$rcmail_config['auto_create_user'] = TRUE;
50
51// the mail host chosen to perform the log-in
52// leave blank to show a textbox at login, give a list of hosts
53// to display a pulldown menu or set one host as string.
54// To use SSL connection, enter ssl://hostname:993
55$rcmail_config['default_host'] = '';
56
57// TCP port used for IMAP connections
58$rcmail_config['default_port'] = 143;
59
60// IMAP auth type. Can be "auth" (CRAM-MD5), "plain" (PLAIN) or "check" to auto detect.
61// Optional, defaults to "check"
62$rcmail_config['imap_auth_type'] = null;
63
64// If you know your imap's root directory and its folder delimiter,
65// you can specify them here. Otherwise they will be determined
66// during every imap connection.
67$rcmail_config['imap_root'] = null;
68$rcmail_config['imap_delimiter'] = null;
69
70// Automatically add this domain to user names for login
71// Only for IMAP servers that require full e-mail addresses for login
72// Specify an array with 'host' => 'domain' values to support multiple hosts
73$rcmail_config['username_domain'] = '';
74
75// This domain will be used to form e-mail addresses of new users
76// Specify an array with 'host' => 'domain' values to support multiple hosts
77$rcmail_config['mail_domain'] = '';
78
79// Path to a virtuser table file to resolve user names and e-mail addresses
80$rcmail_config['virtuser_file'] = '';
81
82// Query to resolve user names and e-mail addresses from the database
83// %u will be replaced with the current username for login.
84// The query should select the user's e-mail address as first col
85$rcmail_config['virtuser_query'] = '';
86
87// use this host for sending mails.
88// to use SSL connection, set ssl://smtp.host.com
89// if left blank, the PHP mail() function is used
90$rcmail_config['smtp_server'] = '';
91
92// SMTP port (default is 25; 465 for SSL)
93$rcmail_config['smtp_port'] = 25;
94
95// SMTP username (if required) if you use %u as the username RoundCube
96// will use the current username for login
97$rcmail_config['smtp_user'] = '';
98
99// SMTP password (if required) if you use %p as the password RoundCube
100// will use the current user's password for login
101$rcmail_config['smtp_pass'] = '';
102
103// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
104// best server supported one)
105$rcmail_config['smtp_auth_type'] = '';
106
107// SMTP HELO host
108// Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
109// Leave this blank and you will get the server variable 'server_name' or
110// localhost if that isn't defined.
111$rcmail_config['smtp_helo_host'] = '';
112
113// Log sent messages
114$rcmail_config['smtp_log'] = TRUE;
115
116// How many seconds must pass between emails sent by a user
117$rcmail_config['sendmail_delay'] = 0;
118
119// These cols are shown in the message list. Available cols are:
120// subject, from, to, cc, replyto, date, size, flag, attachment
121$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size', 'flag', 'attachment');
122
123// Includes should be interpreted as PHP files
124$rcmail_config['skin_include_php'] = FALSE;
125
126// Session lifetime in minutes
127// must be greater than 'keep_alive'/60
128$rcmail_config['session_lifetime'] = 10;
129
130// check client IP in session athorization
131$rcmail_config['ip_check'] = false;
132
133// Use an additional frequently changing cookie to athenticate user sessions.
134// There have been problems reported with this feature.
135$rcmail_config['double_auth'] = false;
136
137// this key is used to encrypt the users imap password which is stored
138// in the session record (and the client cookie if remember password is enabled).
139// please provide a string of exactly 24 chars.
140$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
141
142// the default locale setting (leave empty for auto-detection)
143// RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
144$rcmail_config['language'] = null;
145
146// use this format for short date display
147$rcmail_config['date_short'] = 'D H:i';
148
149// use this format for detailed date/time formatting
150$rcmail_config['date_long'] = 'd.m.Y H:i';
151
152// use this format for today's date display
153$rcmail_config['date_today'] = 'H:i';
154
155// add this user-agent to message headers when sending
156$rcmail_config['useragent'] = 'RoundCube Webmail/0.2-beta';
157
158// use this name to compose page titles
159$rcmail_config['product_name'] = 'RoundCube Webmail';
160
161// store draft message is this mailbox
162// leave blank if draft messages should not be stored
163$rcmail_config['drafts_mbox'] = 'Drafts';
164
165// store spam messages in this mailbox
166$rcmail_config['junk_mbox'] = 'Junk';
167
168// store sent message is this mailbox
169// leave blank if sent messages should not be stored
170$rcmail_config['sent_mbox'] = 'Sent';
171
172// move messages to this folder when deleting them
173// leave blank if they should be deleted directly
174$rcmail_config['trash_mbox'] = 'Trash';
175
176// display these folders separately in the mailbox list.
177// these folders will also be displayed with localized names
178$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
179
180// automatically create the above listed default folders on login
181$rcmail_config['create_default_folders'] = FALSE;
182
183// protect the default folders from renames, deletes, and subscription changes
184$rcmail_config['protect_default_folders'] = TRUE;
185
186// if in your system 0 quota means no limit set this option to TRUE
187$rcmail_config['quota_zero_as_unlimited'] = FALSE;
188
189// Behavior if a received message requests a message delivery notification (read receipt)
190// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
191$rcmail_config['mdn_requests'] = 0;
192
193// Use this charset as fallback for message decoding
194$rcmail_config['default_charset'] = 'ISO-8859-1';
195
196// Make use of the built-in spell checker. It is based on GoogieSpell.
197// Since Google only accepts connections over https your PHP installatation
198// requires to be compiled with Open SSL support
199$rcmail_config['enable_spellcheck'] = TRUE;
200
201// Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
202// but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
203$rcmail_config['spellcheck_engine'] = 'googie';
204
205// For a locally installed Nox Spell Server, please specify the URI to call it.
206// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
207// Leave empty to use the Google spell checking service, what means
208// that the message content will be sent to Google in order to check spelling
209$rcmail_config['spellcheck_uri'] = '';
210
211// These languages can be selected for spell checking.
212// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
213// Leave empty for default set of Google spell check languages, should be defined
214// when using local Pspell extension
215$rcmail_config['spellcheck_languages'] = NULL;
216
217// path to a text file which will be added to each sent message
218// paths are relative to the RoundCube root folder
219$rcmail_config['generic_message_footer'] = '';
220
221// add a received header to outgoing mails containing the creators IP and hostname
222$rcmail_config['http_received_header'] = false;
223
224// this string is used as a delimiter for message headers when sending
225// leave empty for auto-detection
226$rcmail_config['mail_header_delimiter'] = NULL;
227
228// session domain: .example.org
229$rcmail_config['session_domain'] = '';
230
231// This indicates which type of address book to use. Possible choises:
232// 'sql' (default) and 'ldap'.
233// If set to 'ldap' then it will look at using the first writable LDAP
234// address book as the primary address book and it will not display the
235// SQL address book in the 'Address Book' view.
236$rcmail_config['address_book_type'] = 'sql';
237
238// In order to enable public ldap search, configure an array like the Verisign
239// example further below. if you would like to test, simply uncomment the example.
240//
241// If you are going to use LDAP for individual address books, you will need to
242// set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
243//
244// The recommended directory structure for LDAP is to store all the address book entries
245// under the users main entry, e.g.:
246//
247//  o=root
248//   ou=people
249//    uid=user@domain
250//      mail=contact@contactdomain
251//     
252// So the base_dn would be uid=%fu,ou=people,o=root
253// The bind_dn would be the same as based_dn or some super user login.
254/**
255 * example config for Verisign directory
256 *
257 * $rcmail_config['ldap_public']['Verisign'] = array(
258 *  'name'          => 'Verisign.com',
259 *  'hosts'         => array('directory.verisign.com'),
260 *  'port'          => 389,
261 *  'use_tls'       => false,
262 *  'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
263 *  // %fu - The full username provided, assumes the username is an email
264 *  //       address, uses the username_domain value if not an email address.
265 *  // %u  - The username prior to the '@'.
266 *  // %d  - The domain name after the '@'.
267 *  'base_dn'       => '',
268 *  'bind_dn'       => '',
269 *  'bind_pass'     => '',
270 *  'writable'      => false,   // Indicates if we can write to the LDAP directory or not.
271 *  // If writable is true then these fields need to be populated:
272 *  // LDAP_Object_Classes, required_fields, LDAP_rdn
273 *  'LDAP_Object_Classes' => array("top", "inetOrgPerson"), // To create a new contact these are the object classes to specify (or any other classes you wish to use).
274 *  'required_fields'     => array("cn", "sn", "mail"),     // The required fields needed to build a new contact as required by the object classes (can include additional fields not required by the object classes).
275 *  'LDAP_rdn'      => 'mail', // The RDN field that is used for new entries, this field needs to be one of the search_fields, the base of base_dn is appended to the RDN to insert into the LDAP directory.
276 *  'ldap_version'  => 3,       // using LDAPv3
277 *  'search_fields' => array('mail', 'cn'),  // fields to search in
278 *  'name_field'    => 'cn',    // this field represents the contact's name
279 *  'email_field'   => 'mail',  // this field represents the contact's e-mail
280 *  'surname_field' => 'sn',    // this field represents the contact's last name
281 *  'firstname_field' => 'gn',  // this field represents the contact's first name
282 *  'sort'          => 'cn',    // The field to sort the listing by.
283 *  'scope'         => 'sub',   // search mode: sub|base|list
284 *  'filter'        => '',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
285 *  'fuzzy_search'  => true);   // server allows wildcard search
286 */
287
288// An ordered array of the ids of the addressbooks that should be searched
289// when populating address autocomplete fields server-side. ex: array('sql','Verisign');
290$rcmail_config['autocomplete_addressbooks'] = array('sql');
291
292// don't allow these settings to be overriden by the user
293$rcmail_config['dont_override'] = array();
294
295// Set identities access level:
296// 0 - many identities with possibility to edit all params
297// 1 - many identities with possibility to edit all params but not email address
298// 2 - one identity with possibility to edit all params
299// 3 - one identity with possibility to edit all params but not email address
300$rcmail_config['identities_level'] = 0;
301
302// try to load host-specific configuration
303// see http://trac.roundcube.net/wiki/Howto_Config for more details
304$rcmail_config['include_host_config'] = false;
305
306// don't let users set pagesize to more than this value if set
307$rcmail_config['max_pagesize'] = 200;
308
309// mime magic database
310$rcmail_config['mime_magic'] = '/usr/share/misc/magic';
311
312// default sort col
313$rcmail_config['message_sort_col'] = 'date';
314
315// default sort order
316$rcmail_config['message_sort_order'] = 'DESC';
317
318// THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
319// ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
320$rcmail_config['enable_installer'] = false;
321
322// Log successful logins
323$rcmail_config['log_logins'] = false;
324
325/**
326 * 'Delete always'
327 * This setting reflects if mail should be always marked as deleted,
328 * even if moving to "Trash" fails. This is necessary in some setups
329 * because a) people may not have a Trash folder or b) they are over
330 * quota (and Trash is included in the quota).
331 *
332 * This is a failover setting for iil_C_Move when a message is moved
333 * to the Trash.
334 */
335$rcmail_config['delete_always'] = false;
336
337// Minimal value of user's 'keep_alive' setting (in seconds)
338// Must be less than 'session_lifetime'
339$rcmail_config['min_keep_alive'] = 60;
340
341/***** these settings can be overwritten by user's preferences *****/
342
343// skin name: folder from skins/
344$rcmail_config['skin'] = 'default';
345
346// show up to X items in list view
347$rcmail_config['pagesize'] = 40;
348
349// use this timezone to display date/time
350$rcmail_config['timezone'] = 'auto';
351
352// is daylight saving On?
353$rcmail_config['dst_active'] = (bool)date('I');
354
355// prefer displaying HTML messages
356$rcmail_config['prefer_html'] = TRUE;
357
358// display remote inline images
359// 0 - Never, always ask
360// 1 - Ask if sender is not in address book
361// 2 - Always show inline images
362$rcmail_config['show_images'] = 0;
363
364// compose html formatted messages by default
365$rcmail_config['htmleditor'] = FALSE;
366
367// show pretty dates as standard
368$rcmail_config['prettydate'] = TRUE;
369
370// save compose message every 300 seconds (5min)
371$rcmail_config['draft_autosave'] = 300;
372
373// default setting if preview pane is enabled
374$rcmail_config['preview_pane'] = FALSE;
375
376// focus new window if new message arrives
377$rcmail_config['focus_on_new_message'] = true;
378
379// Clear Trash on logout
380$rcmail_config['logout_purge'] = FALSE;
381
382// Compact INBOX on logout
383$rcmail_config['logout_expunge'] = FALSE;
384
385// Display attached images below the message body
386$rcmail_config['inline_images'] = TRUE;
387
388// Encoding of long/non-ascii attachment names:
389// 0 - Full RFC 2231 compatible
390// 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
391// 2 - Full 2047 compatible
392$rcmail_config['mime_param_folding'] = 0;
393
394// Set TRUE if deleted messages should not be displayed
395// This will make the application run slower
396$rcmail_config['skip_deleted'] = FALSE;
397
398// Set true to Mark deleted messages as read as well as deleted
399// False means that a message's read status is not affected by marking it as deleted
400$rcmail_config['read_when_deleted'] = TRUE;
401
402// When a Trash folder is not present and a message is deleted, flag
403// the message for deletion rather than deleting it immediately.  Setting this to
404// false causes deleted messages to be permanantly removed if there is no Trash folder
405$rcmail_config['flag_for_deletion'] = FALSE;
406
407// Default interval for keep-alive/check-recent requests (in seconds)
408// Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
409$rcmail_config['keep_alive'] = 60;
410
411// If true all folders will be checked for recent messages
412$rcmail_config['check_all_folders'] = FALSE;
413
414// end of config file
415?>
Note: See TracBrowser for help on using the repository browser.