Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 293 lines (217 sloc) 11.217 kb
4e17e6c9 » thomascube
2005-09-25 Initial revision
1 <?php
2
3 /*
4 +-----------------------------------------------------------------------+
5 | Main configuration file |
6 | |
7 | This file is part of the RoundCube Webmail client |
83ce4bb0 » thomascube
2008-02-18 Correct/clarify installation hints
8 | Copyright (C) 2005-2008, RoundCube Dev. - Switzerland |
52c1f289 » thomascube
2005-10-03 Minor bugfixes and SMTP support
9 | Licensed under the GNU GPL |
4e17e6c9 » thomascube
2005-09-25 Initial revision
10 | |
11 +-----------------------------------------------------------------------+
12
13 */
14
15 $rcmail_config = array();
16
17
968bdc7c » thomascube
2005-09-30 Improved SMTP script for sending mails. Now using the PEAR::Net_SMTP …
18 // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
13c1afbc » thomascube
2006-02-20 Fixed some charset bugs
19 $rcmail_config['debug_level'] = 1;
4e17e6c9 » thomascube
2005-09-25 Initial revision
20
6dc0269f » thomascube
2005-10-03 Make message caching configurable
21 // enable caching of messages and mailbox data in the local database.
22 // this is recommended if the IMAP server does not run on the same machine
23 $rcmail_config['enable_caching'] = TRUE;
24
cc95700b » thomascube
2006-02-05 Added message cache garbage collector
25 // lifetime of message cache
26 // possible units: s, m, h, d, w
27 $rcmail_config['message_cache_lifetime'] = '10d';
28
7902df45 » thomascube
2005-10-20 Fixed SSL support; improved Courier compatibility; some visual enhanc…
29 // automatically create a new RoundCube user when log-in the first time.
7cc38e0b » thomascube
2005-10-31 Added Finnish, Romanian and Chinese translation
30 // a new user will be created once the IMAP login succeeds.
4e17e6c9 » thomascube
2005-09-25 Initial revision
31 // set to false if only registered users can use this service
32 $rcmail_config['auto_create_user'] = TRUE;
33
34 // the mail host chosen to perform the log-in
35 // leave blank to show a textbox at login, give a list of hosts
42b11351 » thomascube
2005-10-07 Several bugfixes and feature improvements
36 // to display a pulldown menu or set one host as string.
37 // To use SSL connection, enter ssl://hostname:993
4e17e6c9 » thomascube
2005-09-25 Initial revision
38 $rcmail_config['default_host'] = '';
39
42b11351 » thomascube
2005-10-07 Several bugfixes and feature improvements
40 // TCP port used for IMAP connections
41 $rcmail_config['default_port'] = 143;
42
0566adcc » thomascube
2006-04-04 Include host-specific configuration file
43 // Automatically add this domain to user names for login
44 // Only for IMAP servers that require full e-mail addresses for login
45 // Specify an array with 'host' => 'domain' values to support multiple hosts
46 $rcmail_config['username_domain'] = '';
47
977a295e » thomascube
2005-12-16 Usage of virtusertable; mail_domain for new users; Chinese and Turkis…
48 // This domain will be used to form e-mail addresses of new users
49 // Specify an array with 'host' => 'domain' values to support multiple hosts
13c1afbc » thomascube
2006-02-20 Fixed some charset bugs
50 $rcmail_config['mail_domain'] = '';
977a295e » thomascube
2005-12-16 Usage of virtusertable; mail_domain for new users; Chinese and Turkis…
51
52 // Path to a virtuser table file to resolve user names and e-mail addresses
53 $rcmail_config['virtuser_file'] = '';
54
f88d417c » thomascube
2006-02-19 Applied several patches
55 // Query to resolve user names and e-mail addresses from the database
56 // %u will be replaced with the current username for login.
57 // The query should select the user's e-mail address as first col
58 $rcmail_config['virtuser_query'] = '';
59
4e17e6c9 » thomascube
2005-09-25 Initial revision
60 // use this host for sending mails.
fd8c5061 » thomascube
2005-11-14 SMTPS support and minor bugfixes
61 // to use SSL connection, set ssl://smtp.host.com
4e17e6c9 » thomascube
2005-09-25 Initial revision
62 // if left blank, the PHP mail() function is used
63 $rcmail_config['smtp_server'] = '';
64
fd8c5061 » thomascube
2005-11-14 SMTPS support and minor bugfixes
65 // SMTP port (default is 25; 465 for SSL)
968bdc7c » thomascube
2005-09-30 Improved SMTP script for sending mails. Now using the PEAR::Net_SMTP …
66 $rcmail_config['smtp_port'] = 25;
67
d206c1f4 » svncommit
2005-10-14 added smtp auth method setting through config file
68 // SMTP username (if required) if you use %u as the username RoundCube
69 // will use the current username for login
4e17e6c9 » thomascube
2005-09-25 Initial revision
70 $rcmail_config['smtp_user'] = '';
71
d206c1f4 » svncommit
2005-10-14 added smtp auth method setting through config file
72 // SMTP password (if required) if you use %p as the password RoundCube
73 // will use the current user's password for login
4e17e6c9 » thomascube
2005-09-25 Initial revision
74 $rcmail_config['smtp_pass'] = '';
75
d206c1f4 » svncommit
2005-10-14 added smtp auth method setting through config file
76 // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
77 // best server supported one)
78 $rcmail_config['smtp_auth_type'] = '';
79
aca3d25f » svncommit
2007-09-20 Make smtp HELO/EHLO hostname configurable (closes #1484067)
80 // SMTP HELO host
81 // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
82 // Leave this blank and you will get the server variable 'server_name' or
83 // localhost if that isn't defined.
84 $rcmail_config['smtp_helo_host'] = '';
85
4e17e6c9 » thomascube
2005-09-25 Initial revision
86 // Log sent messages
87 $rcmail_config['smtp_log'] = TRUE;
88
89 // these cols are shown in the message list
90 // available cols are: subject, from, to, cc, replyto, date, size, encoding
91 $rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size');
92
93 // relative path to the skin folder
94 $rcmail_config['skin_path'] = 'skins/default/';
95
5349b78a » svncommit
2007-10-03 Update copyright notice
96 // includes should be interpreted as PHP files
e9ac143d » thomascube
2007-10-28 Copy changes from r892 and r903
97 $rcmail_config['skin_include_php'] = FALSE;
5eee0096 » thomascube
2007-09-19 Allow vars and PHP code in templates; improved page title; fixed #148…
98
4e17e6c9 » thomascube
2005-09-25 Initial revision
99 // use this folder to store temp files (must be writebale for apache user)
100 $rcmail_config['temp_dir'] = 'temp/';
101
fd8c5061 » thomascube
2005-11-14 SMTPS support and minor bugfixes
102 // use this folder to store log files (must be writebale for apache user)
103 $rcmail_config['log_dir'] = 'logs/';
104
7902df45 » thomascube
2005-10-20 Fixed SSL support; improved Courier compatibility; some visual enhanc…
105 // session lifetime in minutes
106 $rcmail_config['session_lifetime'] = 10;
107
4e17e6c9 » thomascube
2005-09-25 Initial revision
108 // check client IP in session athorization
aad6e2a9 » thomascube
2007-03-27 New session authentication, should fix bugs #1483951 and #1484299; te…
109 $rcmail_config['ip_check'] = false;
110
111 // Use an additional frequently changing cookie to athenticate user sessions.
112 // There have been problems reported with this feature.
113 $rcmail_config['double_auth'] = false;
4e17e6c9 » thomascube
2005-09-25 Initial revision
114
bac7d174 » thomascube
2006-07-18 Fixed bugs #1364122, #1468895, ticket #1483811 and other minor bugs
115 // this key is used to encrypt the users imap password which is stored
116 // in the session record (and the client cookie if remember password is enabled).
117 // please provide a string of exactly 24 chars.
118 $rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str';
119
58e3602a » thomascube
2006-02-04 Bugfixes for encoding and sending with attachments
120 // the default locale setting
f3b65993 » thomascube
2005-10-23 Added patches for default language and sorting function
121 $rcmail_config['locale_string'] = 'en';
4e17e6c9 » thomascube
2005-09-25 Initial revision
122
123 // use this format for short date display
124 $rcmail_config['date_short'] = 'D H:i';
125
126 // use this format for detailed date/time formatting
127 $rcmail_config['date_long'] = 'd.m.Y H:i';
128
8c8b2a48 » svncommit
2006-12-20 Allow 12 hour date to display for emails sent today (Doug Mandell).
129 // use this format for today's date display
130 $rcmail_config['date_today'] = 'H:i';
131
4e17e6c9 » thomascube
2005-09-25 Initial revision
132 // add this user-agent to message headers when sending
b2ff3d44 » thomascube
2007-11-25 Don't create default folders by default
133 $rcmail_config['useragent'] = 'RoundCube Webmail/0.1';
4e17e6c9 » thomascube
2005-09-25 Initial revision
134
15a9d1ce » thomascube
2006-01-05 Optimized loading time; added periodic mail check; added EXPUNGE command
135 // use this name to compose page titles
136 $rcmail_config['product_name'] = 'RoundCube Webmail';
137
4e17e6c9 » thomascube
2005-09-25 Initial revision
138 // only list folders within this path
139 $rcmail_config['imap_root'] = '';
140
1966c532 » svncommit
2006-06-19 Added Drafts support (Feature #1326839) (richs)
141 // store draft message is this mailbox
142 // leave blank if draft messages should not be stored
143 $rcmail_config['drafts_mbox'] = 'Drafts';
144
b4b08171 » svncommit
2006-07-03 Workaround for drag-drop using whitespace in FF, Junk emptying, misc …
145 // store spam messages in this mailbox
146 $rcmail_config['junk_mbox'] = 'Junk';
147
4e17e6c9 » thomascube
2005-09-25 Initial revision
148 // store sent message is this mailbox
149 // leave blank if sent messages should not be stored
150 $rcmail_config['sent_mbox'] = 'Sent';
151
152 // move messages to this folder when deleting them
153 // leave blank if they should be deleted directly
154 $rcmail_config['trash_mbox'] = 'Trash';
155
fa4cd20f » thomascube
2006-08-04 Several bugfixes; see CHANGELOG for details
156 // display these folders separately in the mailbox list.
83ce4bb0 » thomascube
2008-02-18 Correct/clarify installation hints
157 // these folders will also be displayed with localized names
4e17e6c9 » thomascube
2005-09-25 Initial revision
158 $rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash');
159
b2ff3d44 » thomascube
2007-11-25 Don't create default folders by default
160 // automatically create the above listed default folders on login
161 $rcmail_config['create_default_folders'] = FALSE;
162
c8c1e0ef » svncommit
2006-06-27 Renameable folders, mail-checking changes, other fixes (richs)
163 // protect the default folders from renames, deletes, and subscription changes
164 $rcmail_config['protect_default_folders'] = TRUE;
165
3baec232 » thomascube
2006-01-05 Additional config parameter to show/hide deleted messages
166 // Set TRUE if deleted messages should not be displayed
167 // This will make the application run slower
168 $rcmail_config['skip_deleted'] = FALSE;
169
4b3af37c » svncommit
2006-05-01 Added new delete behavior options.
170 // Set true to Mark deleted messages as read as well as deleted
171 // False means that a message's read status is not affected by marking it as deleted
172 $rcmail_config['read_when_deleted'] = TRUE;
173
174 // When a Trash folder is not present and a message is deleted, flag
175 // the message for deletion rather than deleting it immediately. Setting this to
176 // false causes deleted messages to be permanantly removed if there is no Trash folder
177 $rcmail_config['flag_for_deletion'] = TRUE;
178
0ea88409 » thomascube
2008-02-04 Make sending of read receipts configurable
179 // Behavior if a received message requests a message delivery notification (read receipt)
180 // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
181 $rcmail_config['mdn_requests'] = 0;
182
967b3420 » thomascube
2008-03-28 Disable installer by default; add config option to enable it again
183 // Use this charset as fallback for message decoding
17b5fb79 » thomascube
2008-03-21 Add configurable default charset for message decoding
184 $rcmail_config['default_charset'] = 'ISO-8859-1';
185
9960666a » thomascube
2006-08-20 Added support for Nox Spell Server; plus small bugfixes
186 // Make use of the built-in spell checker. It is based on GoogieSpell.
e9ac143d » thomascube
2007-10-28 Copy changes from r892 and r903
187 // Since Google only accepts connections over https your PHP installatation
188 // requires to be compiled with Open SSL support
ed5d29f4 » thomascube
2006-05-25 Finalized GoogieSpell integration
189 $rcmail_config['enable_spellcheck'] = TRUE;
190
9960666a » thomascube
2006-08-20 Added support for Nox Spell Server; plus small bugfixes
191 // For a locally installed Nox Spell Server, please specify the URI to call it.
192 // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
193 // Leave empty to use the Google spell checking service, what means
194 // that the message content will be sent to Google in order to check spelling
195 $rcmail_config['spellcheck_uri'] = '';
196
197 // These languages can be selected for spell checking.
198 // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
199 // Leave empty for default set of Google spell check languages
200 $rcmail_config['spellcheck_languages'] = NULL;
201
4b0f65a5 » thomascube
2005-11-18 Fixed minor bugs
202 // path to a text file which will be added to each sent message
203 // paths are relative to the RoundCube root folder
204 $rcmail_config['generic_message_footer'] = '';
205
967b3420 » thomascube
2008-03-28 Disable installer by default; add config option to enable it again
206 // add a received header to outgoing mails containing the creators IP and hostname
207 $rcmail_config['http_received_header'] = false;
208
4b0f65a5 » thomascube
2005-11-18 Fixed minor bugs
209 // this string is used as a delimiter for message headers when sending
4647e1bb » thomascube
2006-03-23 Started implementing search function
210 // leave empty for auto-detection
211 $rcmail_config['mail_header_delimiter'] = NULL;
b076a460 » thomascube
2005-10-26 Finished message sorting and fixed some skin issues
212
aec82bd9 » till
2008-02-13 * introduced session_domain
213 // session domain: .example.org
214 $rcmail_config['session_domain'] = '';
215
eea43f7c » svncommit
2006-01-18 better explanation of ldap_public in config file. changed check for l…
216 // in order to enable public ldap search, create a config array
217 // like the Verisign example below. if you would like to test,
218 // simply uncomment the Verisign example.
219 /**
f1154163 » thomascube
2007-04-28 Merged branch devel-addressbook from r443 back to trunk
220 * example config for Verisign directory
eea43f7c » svncommit
2006-01-18 better explanation of ldap_public in config file. changed check for l…
221 *
f1154163 » thomascube
2007-04-28 Merged branch devel-addressbook from r443 back to trunk
222 * $rcmail_config['ldap_public']['Verisign'] = array(
223 * 'name' => 'Verisign.com',
224 * 'hosts' => array('directory.verisign.com'),
225 * 'port' => 389,
226 * 'base_dn' => '',
e3caaf59 » thomascube
2007-05-17 Use global filters and bind username/ for Ldap searches (#1484159)
227 * 'bind_dn' => '',
228 * 'bind_pass' => '',
03b27176 » thomascube
2007-09-09 Applied patch for LDAP version (#1484552)
229 * 'ldap_version' => 3, // using LDAPv3
f1154163 » thomascube
2007-04-28 Merged branch devel-addressbook from r443 back to trunk
230 * 'search_fields' => array('mail', 'cn'), // fields to search in
231 * 'name_field' => 'cn', // this field represents the contact's name
232 * 'email_field' => 'mail', // this field represents the contact's e-mail
6b603da6 » thomascube
2007-08-15 LDAP improvements
233 * 'surname_field' => 'sn', // this field represents the contact's last name
234 * 'firstname_field' => 'gn', // this field represents the contact's first name
f1154163 » thomascube
2007-04-28 Merged branch devel-addressbook from r443 back to trunk
235 * 'scope' => 'sub', // search mode: sub|base|list
81355ae2 » thomascube
2008-02-21 Correct example filter to work with the changes from r1025
236 * 'filter' => '', // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
f1154163 » thomascube
2007-04-28 Merged branch devel-addressbook from r443 back to trunk
237 * 'fuzzy_search' => true); // server allows wildcard search
eea43f7c » svncommit
2006-01-18 better explanation of ldap_public in config file. changed check for l…
238 */
d1d2c4fb » svncommit
2006-01-08 adding files and modifications for public ldap search
239
b1909705 » thomascube
2006-12-01 Introducing preview pane and conditional skin tags
240 // don't allow these settings to be overriden by the user
241 $rcmail_config['dont_override'] = array();
242
d656f1ca » thomascube
2006-09-07 Made automatic draft saving configurable
243 // list of configuration option names that need to be available in Javascript.
244 $rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion');
245
9606ffb3 » thomascube
2006-06-25 Changed behavior to include host-specific configuration (Bug #1483849)
246 // try to load host-specific configuration
967b3420 » thomascube
2008-03-28 Disable installer by default; add config option to enable it again
247 $rcmail_config['include_host_config'] = false;
248
249 // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
250 // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
251 $rcmail_config['enable_installer'] = false;
9606ffb3 » thomascube
2006-06-25 Changed behavior to include host-specific configuration (Bug #1483849)
252
4e17e6c9 » thomascube
2005-09-25 Initial revision
253
254 /***** these settings can be overwritten by user's preferences *****/
255
256 // show up to X items in list view
257 $rcmail_config['pagesize'] = 40;
258
259 // use this timezone to display date/time
d7d66380 » thomascube
2007-09-10 Use server's timezone for defaults (#1484288)
260 $rcmail_config['timezone'] = intval(date('O'))/100 - date('I');
4e17e6c9 » thomascube
2005-09-25 Initial revision
261
5349b78a » svncommit
2007-10-03 Update copyright notice
262 // is daylight saving On?
d7d66380 » thomascube
2007-09-10 Use server's timezone for defaults (#1484288)
263 $rcmail_config['dst_active'] = (bool)date('I');
4647e1bb » thomascube
2006-03-23 Started implementing search function
264
4e17e6c9 » thomascube
2005-09-25 Initial revision
265 // prefer displaying HTML messages
266 $rcmail_config['prefer_html'] = TRUE;
267
b1909705 » thomascube
2006-12-01 Introducing preview pane and conditional skin tags
268 // compose html formatted messages by default
45a470a7 » till
2008-02-16 * tinymce has some issues (especially in the IE department), enable o…
269 $rcmail_config['htmleditor'] = FALSE;
b1909705 » thomascube
2006-12-01 Introducing preview pane and conditional skin tags
270
30233b8d » thomascube
2005-09-28 Minor bugfixes and correction of confusing License notfications
271 // show pretty dates as standard
272 $rcmail_config['prettydate'] = TRUE;
273
86f17219 » thomascube
2006-04-13 Added sort order saving patch by Jacob Brunson
274 // default sort col
275 $rcmail_config['message_sort_col'] = 'date';
276
277 // default sort order
278 $rcmail_config['message_sort_order'] = 'DESC';
279
d656f1ca » thomascube
2006-09-07 Made automatic draft saving configurable
280 // save compose message every 300 seconds (5min)
281 $rcmail_config['draft_autosave'] = 300;
0566adcc » thomascube
2006-04-04 Include host-specific configuration file
282
b1909705 » thomascube
2006-12-01 Introducing preview pane and conditional skin tags
283 // default setting if preview pane is enabled
284 $rcmail_config['preview_pane'] = FALSE;
285
7dce969f » till
2007-09-01 + added new config option: #1484484
286 // don't let users set pagesize to more than this value if set
287 $rcmail_config['max_pagesize'] = 200;
288
50c75350 » till
2008-02-14 * added config variable for mime magic
289 // mime magic database
290 $rcmail_config['mime_magic'] = '/usr/share/misc/magic';
291
4e17e6c9 » thomascube
2005-09-25 Initial revision
292 // end of config file
1966c532 » svncommit
2006-06-19 Added Drafts support (Feature #1326839) (richs)
293 ?>
Something went wrong with that request. Please try again.