commit | author | age
|
4e17e6
|
1 |
<?php |
T |
2 |
|
|
3 |
/* |
|
4 |
+-----------------------------------------------------------------------+ |
|
5 |
| Main configuration file | |
|
6 |
| | |
|
7 |
| This file is part of the RoundCube Webmail client | |
83ce4b
|
8 |
| Copyright (C) 2005-2008, RoundCube Dev. - Switzerland | |
52c1f2
|
9 |
| Licensed under the GNU GPL | |
4e17e6
|
10 |
| | |
T |
11 |
+-----------------------------------------------------------------------+ |
|
12 |
|
|
13 |
*/ |
|
14 |
|
|
15 |
$rcmail_config = array(); |
|
16 |
|
|
17 |
|
968bdc
|
18 |
// system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace |
13c1af
|
19 |
$rcmail_config['debug_level'] = 1; |
4e17e6
|
20 |
|
6dc026
|
21 |
// enable caching of messages and mailbox data in the local database. |
T |
22 |
// this is recommended if the IMAP server does not run on the same machine |
|
23 |
$rcmail_config['enable_caching'] = TRUE; |
|
24 |
|
cc9570
|
25 |
// lifetime of message cache |
T |
26 |
// possible units: s, m, h, d, w |
|
27 |
$rcmail_config['message_cache_lifetime'] = '10d'; |
|
28 |
|
7902df
|
29 |
// automatically create a new RoundCube user when log-in the first time. |
7cc38e
|
30 |
// a new user will be created once the IMAP login succeeds. |
4e17e6
|
31 |
// set to false if only registered users can use this service |
T |
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 |
42b113
|
36 |
// to display a pulldown menu or set one host as string. |
T |
37 |
// To use SSL connection, enter ssl://hostname:993 |
4e17e6
|
38 |
$rcmail_config['default_host'] = ''; |
T |
39 |
|
42b113
|
40 |
// TCP port used for IMAP connections |
T |
41 |
$rcmail_config['default_port'] = 143; |
|
42 |
|
0566ad
|
43 |
// Automatically add this domain to user names for login |
T |
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 |
|
977a29
|
48 |
// This domain will be used to form e-mail addresses of new users |
T |
49 |
// Specify an array with 'host' => 'domain' values to support multiple hosts |
13c1af
|
50 |
$rcmail_config['mail_domain'] = ''; |
977a29
|
51 |
|
T |
52 |
// Path to a virtuser table file to resolve user names and e-mail addresses |
|
53 |
$rcmail_config['virtuser_file'] = ''; |
|
54 |
|
f88d41
|
55 |
// Query to resolve user names and e-mail addresses from the database |
T |
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 |
|
4e17e6
|
60 |
// use this host for sending mails. |
fd8c50
|
61 |
// to use SSL connection, set ssl://smtp.host.com |
4e17e6
|
62 |
// if left blank, the PHP mail() function is used |
T |
63 |
$rcmail_config['smtp_server'] = ''; |
|
64 |
|
fd8c50
|
65 |
// SMTP port (default is 25; 465 for SSL) |
968bdc
|
66 |
$rcmail_config['smtp_port'] = 25; |
T |
67 |
|
d206c1
|
68 |
// SMTP username (if required) if you use %u as the username RoundCube |
S |
69 |
// will use the current username for login |
4e17e6
|
70 |
$rcmail_config['smtp_user'] = ''; |
T |
71 |
|
d206c1
|
72 |
// SMTP password (if required) if you use %p as the password RoundCube |
S |
73 |
// will use the current user's password for login |
4e17e6
|
74 |
$rcmail_config['smtp_pass'] = ''; |
T |
75 |
|
d206c1
|
76 |
// SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use |
S |
77 |
// best server supported one) |
|
78 |
$rcmail_config['smtp_auth_type'] = ''; |
|
79 |
|
aca3d2
|
80 |
// SMTP HELO host |
S |
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 |
|
4e17e6
|
86 |
// Log sent messages |
T |
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 |
|
5349b7
|
96 |
// includes should be interpreted as PHP files |
e9ac14
|
97 |
$rcmail_config['skin_include_php'] = FALSE; |
5eee00
|
98 |
|
4e17e6
|
99 |
// use this folder to store temp files (must be writebale for apache user) |
T |
100 |
$rcmail_config['temp_dir'] = 'temp/'; |
|
101 |
|
fd8c50
|
102 |
// use this folder to store log files (must be writebale for apache user) |
T |
103 |
$rcmail_config['log_dir'] = 'logs/'; |
|
104 |
|
7902df
|
105 |
// session lifetime in minutes |
T |
106 |
$rcmail_config['session_lifetime'] = 10; |
|
107 |
|
4e17e6
|
108 |
// check client IP in session athorization |
aad6e2
|
109 |
$rcmail_config['ip_check'] = false; |
T |
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; |
4e17e6
|
114 |
|
bac7d1
|
115 |
// this key is used to encrypt the users imap password which is stored |
T |
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 |
|
58e360
|
120 |
// the default locale setting |
f3b659
|
121 |
$rcmail_config['locale_string'] = 'en'; |
4e17e6
|
122 |
|
T |
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 |
|
8c8b2a
|
129 |
// use this format for today's date display |
S |
130 |
$rcmail_config['date_today'] = 'H:i'; |
|
131 |
|
4e17e6
|
132 |
// add this user-agent to message headers when sending |
b2ff3d
|
133 |
$rcmail_config['useragent'] = 'RoundCube Webmail/0.1'; |
4e17e6
|
134 |
|
15a9d1
|
135 |
// use this name to compose page titles |
T |
136 |
$rcmail_config['product_name'] = 'RoundCube Webmail'; |
|
137 |
|
4e17e6
|
138 |
// only list folders within this path |
T |
139 |
$rcmail_config['imap_root'] = ''; |
|
140 |
|
1966c5
|
141 |
// store draft message is this mailbox |
S |
142 |
// leave blank if draft messages should not be stored |
|
143 |
$rcmail_config['drafts_mbox'] = 'Drafts'; |
|
144 |
|
b4b081
|
145 |
// store spam messages in this mailbox |
S |
146 |
$rcmail_config['junk_mbox'] = 'Junk'; |
|
147 |
|
4e17e6
|
148 |
// store sent message is this mailbox |
T |
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 |
|
fa4cd2
|
156 |
// display these folders separately in the mailbox list. |
83ce4b
|
157 |
// these folders will also be displayed with localized names |
4e17e6
|
158 |
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash'); |
T |
159 |
|
b2ff3d
|
160 |
// automatically create the above listed default folders on login |
T |
161 |
$rcmail_config['create_default_folders'] = FALSE; |
|
162 |
|
c8c1e0
|
163 |
// protect the default folders from renames, deletes, and subscription changes |
S |
164 |
$rcmail_config['protect_default_folders'] = TRUE; |
|
165 |
|
3baec2
|
166 |
// Set TRUE if deleted messages should not be displayed |
T |
167 |
// This will make the application run slower |
|
168 |
$rcmail_config['skip_deleted'] = FALSE; |
|
169 |
|
4b3af3
|
170 |
// Set true to Mark deleted messages as read as well as deleted |
S |
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 |
|
0ea884
|
179 |
// Behavior if a received message requests a message delivery notification (read receipt) |
T |
180 |
// 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask) |
|
181 |
$rcmail_config['mdn_requests'] = 0; |
|
182 |
|
996066
|
183 |
// Make use of the built-in spell checker. It is based on GoogieSpell. |
e9ac14
|
184 |
// Since Google only accepts connections over https your PHP installatation |
T |
185 |
// requires to be compiled with Open SSL support |
ed5d29
|
186 |
$rcmail_config['enable_spellcheck'] = TRUE; |
T |
187 |
|
996066
|
188 |
// For a locally installed Nox Spell Server, please specify the URI to call it. |
T |
189 |
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 |
|
190 |
// Leave empty to use the Google spell checking service, what means |
|
191 |
// that the message content will be sent to Google in order to check spelling |
|
192 |
$rcmail_config['spellcheck_uri'] = ''; |
|
193 |
|
|
194 |
// These languages can be selected for spell checking. |
|
195 |
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch'); |
|
196 |
// Leave empty for default set of Google spell check languages |
|
197 |
$rcmail_config['spellcheck_languages'] = NULL; |
|
198 |
|
4b0f65
|
199 |
// path to a text file which will be added to each sent message |
T |
200 |
// paths are relative to the RoundCube root folder |
|
201 |
$rcmail_config['generic_message_footer'] = ''; |
|
202 |
|
|
203 |
// this string is used as a delimiter for message headers when sending |
4647e1
|
204 |
// leave empty for auto-detection |
T |
205 |
$rcmail_config['mail_header_delimiter'] = NULL; |
b076a4
|
206 |
|
aec82b
|
207 |
// session domain: .example.org |
T |
208 |
$rcmail_config['session_domain'] = ''; |
|
209 |
|
eea43f
|
210 |
// in order to enable public ldap search, create a config array |
S |
211 |
// like the Verisign example below. if you would like to test, |
|
212 |
// simply uncomment the Verisign example. |
|
213 |
/** |
f11541
|
214 |
* example config for Verisign directory |
eea43f
|
215 |
* |
f11541
|
216 |
* $rcmail_config['ldap_public']['Verisign'] = array( |
T |
217 |
* 'name' => 'Verisign.com', |
|
218 |
* 'hosts' => array('directory.verisign.com'), |
|
219 |
* 'port' => 389, |
|
220 |
* 'base_dn' => '', |
e3caaf
|
221 |
* 'bind_dn' => '', |
T |
222 |
* 'bind_pass' => '', |
03b271
|
223 |
* 'ldap_version' => 3, // using LDAPv3 |
f11541
|
224 |
* 'search_fields' => array('mail', 'cn'), // fields to search in |
T |
225 |
* 'name_field' => 'cn', // this field represents the contact's name |
|
226 |
* 'email_field' => 'mail', // this field represents the contact's e-mail |
6b603d
|
227 |
* 'surname_field' => 'sn', // this field represents the contact's last name |
T |
228 |
* 'firstname_field' => 'gn', // this field represents the contact's first name |
f11541
|
229 |
* 'scope' => 'sub', // search mode: sub|base|list |
6b603d
|
230 |
* 'filter' => '', // used for basic listing (if not empty) and will be &'d with search queries. ex: (status=act) |
f11541
|
231 |
* 'fuzzy_search' => true); // server allows wildcard search |
eea43f
|
232 |
*/ |
d1d2c4
|
233 |
|
b19097
|
234 |
// don't allow these settings to be overriden by the user |
T |
235 |
$rcmail_config['dont_override'] = array(); |
|
236 |
|
d656f1
|
237 |
// list of configuration option names that need to be available in Javascript. |
T |
238 |
$rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion'); |
|
239 |
|
9606ff
|
240 |
// try to load host-specific configuration |
T |
241 |
$rcmail_config['include_host_config'] = FALSE; |
|
242 |
|
4e17e6
|
243 |
|
T |
244 |
/***** these settings can be overwritten by user's preferences *****/ |
|
245 |
|
|
246 |
// show up to X items in list view |
|
247 |
$rcmail_config['pagesize'] = 40; |
|
248 |
|
|
249 |
// use this timezone to display date/time |
d7d663
|
250 |
$rcmail_config['timezone'] = intval(date('O'))/100 - date('I'); |
4e17e6
|
251 |
|
5349b7
|
252 |
// is daylight saving On? |
d7d663
|
253 |
$rcmail_config['dst_active'] = (bool)date('I'); |
4647e1
|
254 |
|
4e17e6
|
255 |
// prefer displaying HTML messages |
T |
256 |
$rcmail_config['prefer_html'] = TRUE; |
|
257 |
|
b19097
|
258 |
// compose html formatted messages by default |
45a470
|
259 |
$rcmail_config['htmleditor'] = FALSE; |
b19097
|
260 |
|
30233b
|
261 |
// show pretty dates as standard |
T |
262 |
$rcmail_config['prettydate'] = TRUE; |
4e17e6
|
263 |
|
86f172
|
264 |
// default sort col |
T |
265 |
$rcmail_config['message_sort_col'] = 'date'; |
|
266 |
|
|
267 |
// default sort order |
|
268 |
$rcmail_config['message_sort_order'] = 'DESC'; |
|
269 |
|
d656f1
|
270 |
// save compose message every 300 seconds (5min) |
T |
271 |
$rcmail_config['draft_autosave'] = 300; |
0566ad
|
272 |
|
b19097
|
273 |
// default setting if preview pane is enabled |
T |
274 |
$rcmail_config['preview_pane'] = FALSE; |
|
275 |
|
7dce96
|
276 |
// don't let users set pagesize to more than this value if set |
T |
277 |
$rcmail_config['max_pagesize'] = 200; |
|
278 |
|
50c753
|
279 |
// mime magic database |
T |
280 |
$rcmail_config['mime_magic'] = '/usr/share/misc/magic'; |
|
281 |
|
4e17e6
|
282 |
// end of config file |
1966c5
|
283 |
?> |