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 | |
|
8 |
| Copyright (C) 2005, 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 |
|
4e17e6
|
80 |
// Log sent messages |
T |
81 |
$rcmail_config['smtp_log'] = TRUE; |
|
82 |
|
|
83 |
// these cols are shown in the message list |
|
84 |
// available cols are: subject, from, to, cc, replyto, date, size, encoding |
|
85 |
$rcmail_config['list_cols'] = array('subject', 'from', 'date', 'size'); |
|
86 |
|
|
87 |
// relative path to the skin folder |
|
88 |
$rcmail_config['skin_path'] = 'skins/default/'; |
|
89 |
|
|
90 |
// use this folder to store temp files (must be writebale for apache user) |
|
91 |
$rcmail_config['temp_dir'] = 'temp/'; |
|
92 |
|
fd8c50
|
93 |
// use this folder to store log files (must be writebale for apache user) |
T |
94 |
$rcmail_config['log_dir'] = 'logs/'; |
|
95 |
|
7902df
|
96 |
// session lifetime in minutes |
T |
97 |
$rcmail_config['session_lifetime'] = 10; |
|
98 |
|
4e17e6
|
99 |
// check client IP in session athorization |
T |
100 |
$rcmail_config['ip_check'] = TRUE; |
|
101 |
|
bac7d1
|
102 |
// this key is used to encrypt the users imap password which is stored |
T |
103 |
// in the session record (and the client cookie if remember password is enabled). |
|
104 |
// please provide a string of exactly 24 chars. |
|
105 |
$rcmail_config['des_key'] = 'rcmail-!24ByteDESkey*Str'; |
|
106 |
|
58e360
|
107 |
// the default locale setting |
f3b659
|
108 |
$rcmail_config['locale_string'] = 'en'; |
4e17e6
|
109 |
|
T |
110 |
// use this format for short date display |
|
111 |
$rcmail_config['date_short'] = 'D H:i'; |
|
112 |
|
|
113 |
// use this format for detailed date/time formatting |
|
114 |
$rcmail_config['date_long'] = 'd.m.Y H:i'; |
|
115 |
|
|
116 |
// add this user-agent to message headers when sending |
1cded8
|
117 |
$rcmail_config['useragent'] = 'RoundCube Webmail/0.1b'; |
4e17e6
|
118 |
|
15a9d1
|
119 |
// use this name to compose page titles |
T |
120 |
$rcmail_config['product_name'] = 'RoundCube Webmail'; |
|
121 |
|
4e17e6
|
122 |
// only list folders within this path |
T |
123 |
$rcmail_config['imap_root'] = ''; |
|
124 |
|
1966c5
|
125 |
// store draft message is this mailbox |
S |
126 |
// leave blank if draft messages should not be stored |
|
127 |
$rcmail_config['drafts_mbox'] = 'Drafts'; |
|
128 |
|
b4b081
|
129 |
// store spam messages in this mailbox |
S |
130 |
$rcmail_config['junk_mbox'] = 'Junk'; |
|
131 |
|
4e17e6
|
132 |
// store sent message is this mailbox |
T |
133 |
// leave blank if sent messages should not be stored |
|
134 |
$rcmail_config['sent_mbox'] = 'Sent'; |
|
135 |
|
|
136 |
// move messages to this folder when deleting them |
|
137 |
// leave blank if they should be deleted directly |
|
138 |
$rcmail_config['trash_mbox'] = 'Trash'; |
|
139 |
|
fa4cd2
|
140 |
// display these folders separately in the mailbox list. |
T |
141 |
// these folders will automatically be created if they do not exist |
4e17e6
|
142 |
$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Junk', 'Trash'); |
T |
143 |
|
c8c1e0
|
144 |
// protect the default folders from renames, deletes, and subscription changes |
S |
145 |
$rcmail_config['protect_default_folders'] = TRUE; |
|
146 |
|
3baec2
|
147 |
// Set TRUE if deleted messages should not be displayed |
T |
148 |
// This will make the application run slower |
|
149 |
$rcmail_config['skip_deleted'] = FALSE; |
|
150 |
|
4b3af3
|
151 |
// Set true to Mark deleted messages as read as well as deleted |
S |
152 |
// False means that a message's read status is not affected by marking it as deleted |
|
153 |
$rcmail_config['read_when_deleted'] = TRUE; |
|
154 |
|
|
155 |
// When a Trash folder is not present and a message is deleted, flag |
|
156 |
// the message for deletion rather than deleting it immediately. Setting this to |
|
157 |
// false causes deleted messages to be permanantly removed if there is no Trash folder |
|
158 |
$rcmail_config['flag_for_deletion'] = TRUE; |
|
159 |
|
996066
|
160 |
// Make use of the built-in spell checker. It is based on GoogieSpell. |
ed5d29
|
161 |
$rcmail_config['enable_spellcheck'] = TRUE; |
T |
162 |
|
996066
|
163 |
// For a locally installed Nox Spell Server, please specify the URI to call it. |
T |
164 |
// Get Nox Spell Server from http://orangoo.com/labs/?page_id=72 |
|
165 |
// Leave empty to use the Google spell checking service, what means |
|
166 |
// that the message content will be sent to Google in order to check spelling |
|
167 |
$rcmail_config['spellcheck_uri'] = ''; |
|
168 |
|
|
169 |
// These languages can be selected for spell checking. |
|
170 |
// Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch'); |
|
171 |
// Leave empty for default set of Google spell check languages |
|
172 |
$rcmail_config['spellcheck_languages'] = NULL; |
|
173 |
|
4b0f65
|
174 |
// path to a text file which will be added to each sent message |
T |
175 |
// paths are relative to the RoundCube root folder |
|
176 |
$rcmail_config['generic_message_footer'] = ''; |
|
177 |
|
|
178 |
// this string is used as a delimiter for message headers when sending |
4647e1
|
179 |
// leave empty for auto-detection |
T |
180 |
$rcmail_config['mail_header_delimiter'] = NULL; |
b076a4
|
181 |
|
eea43f
|
182 |
// in order to enable public ldap search, create a config array |
S |
183 |
// like the Verisign example below. if you would like to test, |
|
184 |
// simply uncomment the Verisign example. |
|
185 |
/** |
|
186 |
* example config for Verisign directory |
|
187 |
* |
|
188 |
* $rcmail_config['ldap_public']['Verisign'] = array('hosts' => array('directory.verisign.com'), |
|
189 |
* 'port' => 389, |
|
190 |
* 'base_dn' => '', |
|
191 |
* 'search_fields' => array('Email' => 'mail', 'Name' => 'cn'), |
|
192 |
* 'name_field' => 'cn', |
|
193 |
* 'mail_field' => 'mail', |
|
194 |
* 'scope' => 'sub', |
|
195 |
* 'fuzzy_search' => 0); |
|
196 |
*/ |
d1d2c4
|
197 |
|
9606ff
|
198 |
// try to load host-specific configuration |
T |
199 |
$rcmail_config['include_host_config'] = FALSE; |
|
200 |
|
4e17e6
|
201 |
|
T |
202 |
/***** these settings can be overwritten by user's preferences *****/ |
|
203 |
|
|
204 |
// show up to X items in list view |
|
205 |
$rcmail_config['pagesize'] = 40; |
|
206 |
|
|
207 |
// use this timezone to display date/time |
|
208 |
$rcmail_config['timezone'] = 1; |
|
209 |
|
4647e1
|
210 |
// daylight savings are On |
T |
211 |
$rcmail_config['dst_active'] = TRUE; |
|
212 |
|
4e17e6
|
213 |
// prefer displaying HTML messages |
T |
214 |
$rcmail_config['prefer_html'] = TRUE; |
|
215 |
|
30233b
|
216 |
// show pretty dates as standard |
T |
217 |
$rcmail_config['prettydate'] = TRUE; |
4e17e6
|
218 |
|
86f172
|
219 |
// default sort col |
T |
220 |
$rcmail_config['message_sort_col'] = 'date'; |
|
221 |
|
|
222 |
// default sort order |
|
223 |
$rcmail_config['message_sort_order'] = 'DESC'; |
|
224 |
|
4b3af3
|
225 |
// list of configuration option names that need to be available in Javascript. |
S |
226 |
$rcmail_config['javascript_config'] = array('read_when_deleted', 'flag_for_deletion'); |
0566ad
|
227 |
|
T |
228 |
|
4e17e6
|
229 |
// end of config file |
1966c5
|
230 |
?> |