url_parser.php didn't handle multiple addresses on the same line. This
[squirrelmail.git] / config / config_default.php
CommitLineData
59177427 1<?php
716fa276 2
a3439b27 3/**
4 * BEFORE EDITING THIS FILE!
5 *
6 * Don't edit this file directly. Copy it to config.php before you
7 * edit it. However, it is best to use the configuration script
8 * conf.pl if at all possible. That is the easiest and cleanest way
9 * to configure.
10 */
11
12/* Do not change this value. */
13global $config_version;
14$config_version = '1.2.0';
15
16/* Organization's logo picture (blank if none) */
17global $org_logo;
18$org_logo = '../images/sm_logo.png';
19
b6e0c3b6 20/* The width of the logo (0 for default) */
60245652 21$org_logo_width = 308;
b6e0c3b6 22
23/* The height of the logo (0 for default) */
60245652 24$org_logo_height = 111;
b6e0c3b6 25
26
a3439b27 27/* Organization's name */
28global $org_name;
29$org_name = 'SquirrelMail';
30
31/**
32 * Webmail Title
33 * This is the web page title that appears at the top of the browser window.
34 */
35global $org_title;
120fbed7 36$org_title = "SquirrelMail $version";
6ef7145f 37
a3439b27 38/**
39 * Default language
40 * This is the default language. It is used as a last resort
41 * if SquirrelMail can't figure out which language to display.
42 * Use the two-letter code.
43 */
44global $squirrelmail_default_language;
b3850d0c 45$squirrelmail_default_language = 'en_US';
a3439b27 46
47/* The dns name and port for your imap server. */
48global $imapServerAddress, $imapPort;
49$imapServerAddress = 'localhost';
50$imapPort = 143;
51
52/**
53 * The domain part of local email addresses.
54 * This is for all messages sent out from this server.
55 * Reply address is generated by $username@$domain
56 * Example: In bob@foo.com, foo.com is the domain.
57 */
58global $domain;
59$domain = 'mydomain.com';
60
61/* Your SMTP server and port number (usually the same as the IMAP server). */
62global $smtpServerAddress, $smtpPort;
63$smtpServerAddress = 'localhost';
64$smtpPort = 25;
65
66/**
67 * Uncomment this if you want to deliver locally using sendmail
68 * instead of connecting to a SMTP-server.
69 */
70#global $useSendmail, $sendmail_path;
71#$useSendmail = true;
72#$sendmail_path = '/usr/sbin/sendmail';
73
74/* This is a message that is displayed immediately after a user logs in. */
75global $motd;
76$motd = '';
77
78/**
79 * Whether or not to use a special color for special folders. If not,
80 * special folders will be the same color as the other folders.
81 */
82global $use_special_folder_color;
83$use_special_folder_color = true;
84
85/**
86 * The type of IMAP server you are running.
87 * Valid type are the following (case is important):
88 * courier
89 * cyrus
90 * exchange
91 * uw
92 * other
93 */
94global $imap_server_type;
95$imap_server_type = 'cyrus';
96
97/**
98 * Rather than going to the signout.php page (which only allows you
99 * to sign back in), setting signout_page allows you to sign the user
100 * out and then redirect to whatever page you want. For instance,
101 * the following would return the user to your home page:
102 * $signout_page = '/';
103 * Set to the empty string to continue to use the default signout page.
104 */
105global $signout_page;
106$signout_page = '';
107
108/**
109 * Many servers store mail in your home directory. With this, they
110 * store them in a subdirectory: mail/ or Mail/, etc. If your server
111 * does this, please set this to what the default mail folder should
112 * be. This is still a user preference, so they can change it if it
113 * is different for each user.
114 *
115 * Example:
116 * $default_folder_prefix = 'mail/';
117 * -- or --
118 * $default_folder_prefix = 'Mail/folders/';
119 *
120 * If you do not use this, set it to the empty string.
121 */
122global $default_folder_prefix;
123$default_folder_prefix = '';
124
125/**
126 * If you do not wish to give them the option to change this, set it
127 * to false. Otherwise, if it is true, they can change the folder prefix
128 * to be anything.
129 */
130global $show_prefix_option;
131$show_prefix_option = false;
132
133/**
134 * The following are related to deleting messages.
135 * $move_to_trash
136 * if this is set to 'true', when 'delete' is pressed, it
137 * will attempt to move the selected messages to the folder
138 * named $trash_folder. If it's set to 'false', we won't even
139 * attempt to move the messages, just delete them.
140 * $trash_folder
141 * This is the path to the default trash folder. For Cyrus
142 * IMAP, it would be 'INBOX.Trash', but for UW it would be
143 * 'Trash'. We need the full path name here.
144 * $auto_expunge
145 * If this is true, when a message is moved or copied, the
146 * source mailbox will get expunged, removing all messages
147 * marked 'Deleted'.
148 * $sent_folder
149 * This is the path to where Sent messages will be stored.
4e85a37f 150 * $delete_folder
151 * If this is true, when a folder is deleted then it will
152 * not get moved into the Trash folder.
a3439b27 153 */
154global $default_move_to_trash, $default_move_to_sent, $default_save_as_draft;
155global $trash_folder, $sent_folder, $draft_folder, $auto_expunge;
4e85a37f 156global $delete_folder;
a3439b27 157$default_move_to_trash = true;
158$default_move_to_sent = true;
159$default_save_as_draft = true;
160$trash_folder = 'INBOX.Trash';
161$sent_folder = 'INBOX.Sent';
162$draft_folder = 'INBOX.Drafts';
163$auto_expunge = true;
4e85a37f 164$delete_folder = false;
a3439b27 165
a3439b27 166/**
167 * Should I create the Sent and Trash folders automatically for
168 * a new user that doesn't already have them created?
169 */
170global $auto_create_special;
171$auto_create_special = true;
172
173/* Whether or not to list the special folders first (true/false). */
174global $list_special_folders_first;
175$list_special_folders_first = true;
176
177/**
178 * Are all your folders subfolders of INBOX (i.e. cyrus IMAP server).
179 * If you are unsure, set it to false.
180 */
181global $default_sub_of_inbox;
182$default_sub_of_inbox = true;
183
184/**
185 * Some IMAP daemons (UW) handle folders weird. They only allow a
186 * folder to contain either messages or other folders, not both at
187 * the same time. This option controls whether or not to display an
188 * option during folder creation. The option toggles which type of
189 * folder it should be.
190 *
191 * If this option confuses you, just set it to 'true'. You can not hurt
192 * anything if it's true, but some servers will respond weird if it's
193 * false. (Cyrus works fine whether it's true OR false).
194 */
195global $show_contain_subfolders_option;
196$show_contain_subfolders_option = false;
197
198/**
199 * This option controls what character set is used when sending mail
200 * and when sending HTMl to the browser. Do not set this to US-ASCII,
201 * use ISO-8859-1 instead. For cyrillic it is best to use KOI8-R,
202 * since this implementation is faster than the alternatives.
203 */
204global $default_charset;
205$default_charset = 'iso-8859-1';
206
207/**
208 * Path to the data/ directory
209 * It is a possible security hole to have a writable directory
210 * under the web server's root directory (ex: /home/httpd/html).
211 * For this reason, it is possible to put the data directory
212 * anywhere you would like. The path name can be absolute or
213 * relative (to the config directory). It doesn't matter. Here
214 * are two examples:
215 *
216 * Absolute:
217 * $data_dir = '/usr/local/squirrelmail/data/';
218 *
219 * Relative (to the config directory):
220 * $data_dir = '../data/';
221 */
222global $data_dir;
223$data_dir = '../data/';
224
225/**
226 * Path to directory used for storing attachments while a mail is
227 * being sent. There are a few security considerations regarding
228 * this directory:
229 * + It should have the permission 733 (rwx-wx-wx) to make it
230 * impossible for a random person with access to the webserver to
231 * list files in this directory. Confidential data might be laying
232 * around there.
233 * + Since the webserver is not able to list the files in the content
234 * is also impossible for the webserver to delete files lying around
235 * there for too long.
236 * + It should probably be another directory than data_dir.
237 */
238global $attachment_dir;
239$attachment_dir = "$data_dir";
240
241/* Hash level used for data directory. */
242global $dir_hash_level;
243$dir_hash_level = 0;
244
245/**
246 * This is the default size of the folder list. Default
247 * is 150, but you can set it to whatever you wish.
248 */
249global $default_left_size;
250$default_left_size = 150;
251
252/**
253 * Some IMAP servers allow a username (like 'bob') to log in if they use
254 * uppercase in their name (like 'Bob' or 'BOB'). This creates extra
255 * preference files. Toggling this option to true will transparently
256 * change all usernames to lowercase.
257 */
258global $force_username_lowercase;
259$force_username_lowercase = false;
260
261/**
262 * Themes
263 * You can define your own theme and put it in this directory.
264 * You must call it as the example below. You can name the theme
265 * whatever you want. For an example of a theme, see the ones
266 * included in the config directory.
267 *
268 * To add a new theme to the options that users can choose from, just
269 * add a new number to the array at the bottom, and follow the pattern.
270 */
271global $theme;
272
273/**
274 * The first one HAS to be here, and is your system's default
275 * theme. It can be any theme you want.
276 */
277$theme[0]['PATH'] = '../themes/default_theme.php';
278$theme[0]['NAME'] = 'Default';
279
280$theme[1]['PATH'] = '../themes/plain_blue_theme.php';
281$theme[1]['NAME'] = 'Plain Blue';
282
283$theme[2]['PATH'] = '../themes/sandstorm_theme.php';
284$theme[2]['NAME'] = 'Sand Storm';
285
286$theme[3]['PATH'] = '../themes/deepocean_theme.php';
287$theme[3]['NAME'] = 'Deep Ocean';
288
289$theme[4]['PATH'] = '../themes/slashdot_theme.php';
290$theme[4]['NAME'] = 'Slashdot';
291
292$theme[5]['PATH'] = '../themes/purple_theme.php';
293$theme[5]['NAME'] = 'Purple';
294
295$theme[6]['PATH'] = '../themes/forest_theme.php';
296$theme[6]['NAME'] = 'Forest';
297
298$theme[7]['PATH'] = '../themes/ice_theme.php';
299$theme[7]['NAME'] = 'Ice';
300
301$theme[8]['PATH'] = '../themes/seaspray_theme.php';
302$theme[8]['NAME'] = 'Sea Spray';
303
304$theme[9]['PATH'] = '../themes/bluesteel_theme.php';
305$theme[9]['NAME'] = 'Blue Steel';
306
307$theme[10]['PATH'] = '../themes/dark_grey_theme.php';
308$theme[10]['NAME'] = 'Dark Grey';
309
310$theme[11]['PATH'] = '../themes/high_contrast_theme.php';
311$theme[11]['NAME'] = 'High Contrast';
312
313$theme[12]['PATH'] = '../themes/black_bean_burrito_theme.php';
314$theme[12]['NAME'] = 'Black Bean Burrito';
315
316$theme[13]['PATH'] = '../themes/servery_theme.php';
317$theme[13]['NAME'] = 'Servery';
318
319$theme[14]['PATH'] = '../themes/maize_theme.php';
320$theme[14]['NAME'] = 'Maize';
321
322$theme[15]['PATH'] = '../themes/bluesnews_theme.php';
323$theme[15]['NAME'] = 'BluesNews';
324
325$theme[16]['PATH'] = '../themes/deepocean2_theme.php';
326$theme[16]['NAME'] = 'Deep Ocean 2';
327
ecf5c1bd 328$theme[17]['PATH'] = '../themes/blue_grey_theme.php';
329$theme[17]['NAME'] = 'Blue Grey';
a3439b27 330
331$theme[18]['PATH'] = '../themes/dompie_theme.php';
332$theme[18]['NAME'] = 'Dompie';
333
334$theme[19]['PATH'] = '../themes/methodical_theme.php';
335$theme[19]['NAME'] = 'Methodical';
336
337$theme[20]['PATH'] = '../themes/greenhouse_effect.php';
338$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
6e0fa5e6 339
a3439b27 340$theme[21]['PATH'] = '../themes/in_the_pink.php';
341$theme[21]['NAME'] = 'In The Pink (Changes)';
94c9adcb 342
a3439b27 343$theme[22]['PATH'] = '../themes/kind_of_blue.php';
344$theme[22]['NAME'] = 'Kind of Blue (Changes)';
345
346$theme[23]['PATH'] = '../themes/monostochastic.php';
347$theme[23]['NAME'] = 'Monostochastic (Changes)';
a610c5e4 348
a3439b27 349$theme[24]['PATH'] = '../themes/shades_of_grey.php';
350$theme[24]['NAME'] = 'Shades of Grey (Changes)';
a610c5e4 351
a3439b27 352$theme[25]['PATH'] = '../themes/spice_of_life.php';
353$theme[25]['NAME'] = 'Spice of Life (Changes)';
a1b33f64 354
a3439b27 355$theme[26]['PATH'] = '../themes/spice_of_life_lite.php';
356$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
a1b33f64 357
a3439b27 358$theme[27]['PATH'] = '../themes/spice_of_life_dark.php';
359$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
a1b33f64 360
a3439b27 361$theme[28]['PATH'] = '../themes/christmas.php';
362$theme[28]['NAME'] = 'Holiday - Christmas';
363
9007bf00 364$theme[29]['PATH'] = '../themes/darkness.php';
365$theme[29]['NAME'] = 'Darkness (Changes)';
366
367$theme[30]['PATH'] = '../themes/random.php';
fb351cd8 368$theme[30]['NAME'] = 'Random (Changes every login)';
369
370$theme[31]['PATH'] = '../themes/midnight.php';
371$theme[31]['NAME'] = 'Midnight';
9007bf00 372
211f8c1d 373$theme[32]['PATH'] = '../themes/alien_glow.php';
374$theme[32]['NAME'] = 'Alien Glow';
375
376$theme[33]['PATH'] = '../themes/dark_green.php';
377$theme[33]['NAME'] = 'Dark Green';
378
716fa276 379$theme[33]['PATH'] = '../themes/penguin.php';
380$theme[33]['NAME'] = 'Penguin';
381
a3439b27 382/**
383 * LDAP server(s)
384 * Array of arrays with LDAP server parameters. See
385 * functions/abook_ldap_server.php for a list of possible
386 * parameters
387 *
388 * EXAMPLE:
389 * $ldap_server[0] = Array(
390 * 'host' => 'memberdir.netscape.com',
391 * 'name' => 'Netcenter Member Directory',
392 * 'base' => 'ou=member_directory,o=netcenter.com'
393 * );
394 */
78692381 395global $ldap_server;
a3439b27 396
397/**
398 * Database-driven private addressbooks
399 * DSN (Data Source Name) for a database where the private
400 * addressbooks are stored. See doc/db-backend.txt for more info.
4f40a59d 401 * If it is not set, the addressbooks are stored in files
a3439b27 402 * in the data dir.
497203d4 403 * The DSN is in the format: mysql://user:pass@hostname/dbname
4f40a59d 404 * The table is the name of the table to use within the
405 * specified database.
a3439b27 406 */
4f40a59d 407global $addrbook_dsn, $addrbook_table;
497203d4 408$addrbook_dsn = '';
4f40a59d 409$addrbook_table = 'address';
a3439b27 410
3499f99f 411global $prefs_dsn, $prefs_table;
412$prefs_dsn = '';
6767afba 413$prefs_table = 'userprefs';
3499f99f 414
a3439b27 415/**
416 * Users may search their addressbook via either a plain HTML or Javascript
417 * enhanced user interface. This option allows you to set the default choice.
418 * Set this default choice as either:
419 * true = javascript
420 * false = html
421 */
422global $default_use_javascript_addr_book;
423$default_use_javascript_addr_book = false;
424
425/**
426 * These next two options set the defaults for the way that the
427 * users see their folder list.
428 * $default_unseen_notify
429 * Specifies whether or not the users will see the number of
430 * unseen in each folder by default and also which folders to
431 * do this to. Valid values are: 1=none, 2=inbox, 3=all.
432 * $default_unseen_type
433 * Specifies the type of notification to give the users by
434 * default. Valid choice are: 1=(4), 2=(4,25).
435 */
436global $default_unseen_notify, $default_unseen_type;
437$default_unseen_notify = 2;
438$default_unseen_type = 1;
d47b2518 439
a3439b27 440/**
441 * If you are running on a machine that doesn't have the tm_gmtoff
442 * value in your time structure and if you are in a time zone that
443 * has a negative offset, you need to set this value to 1. This is
444 * typically people in the US that are running Solaris 7.
445 */
446global $invert_time;
447$invert_time = false;
448
80e86e94 449/**
450 * By default SquirrelMail takes up the whole browser window,
451 * this allows you to embed it within sites using frames. Set
452 * this to the frame you want it to stay in.
453 */
454
455global $frame_top;
456$frame_top = '_top';
457
a3439b27 458global $plugins;
459/**
460 * To install plugins, just add elements to this array that have
461 * the plugin directory name relative to the /plugins/ directory.
462 * For instance, for the 'sqclock' plugin, you'd put a line like
463 * the following.
464 * $plugins[0] = 'sqclock';
465 * $plugins[1] = 'attachment_common';
466 */
467
8a7d0669 468/**
469 * If you don't want to allow users to change their email address
470 * then you can set $edit_identity to false, if you want them to
471 * not be able to change their full name too then set $edit_name
472 * to false as well. $edit_name has no effect unless $edit_identity
473 * is false;
474 */
475
476global $edit_identity, $edit_name;
477$edit_identity = true;
478$edit_name = true;
479
7c612fdd 480
481/**
aa0da530 482 * If you want to enable server side thread sorting options
483 * Your IMAP server must support the THREAD extension for
484 * this to work.
485 */
7c612fdd 486
487global $allow_thread_sort;
488$allow_thread_sort = false;
489
aa0da530 490/**
491 * to use server-side sorting instead of SM client side.
492 * Your IMAP server must support the SORT extension for this
493 * to work.
494 */
ca85aabe 495
aa0da530 496global $allow_server_sort;
497$allow_server_sort = false;
498
ca85aabe 499/**
500 * This enables the no select fix for Cyrus when subfolders
501 * exist but parent folders do not
502 */
503
504global $noselect_fix_enable;
505$noselect_fix_enable = false;
506
52ed2f88 507/**
508 * this disables listing all of the folders on the IMAP Server to
509 * generate the folder subscribe listbox (this can take a long time
510 * when you have a lot of folders). Instead, a textbox will be
511 * displayed allowing users to enter a specific folder name to subscribe to */
512global $no_list_for_subscribe;
513$no_list_for_subscribe = false;
514
a3439b27 515/**
516 * Make sure there are no characters after the PHP closing
517 * tag below (including newline characters and whitespace).
518 * Otherwise, that character will cause the headers to be
519 * sent and regular output to begin, which will majorly screw
520 * things up when we try to send more headers later.
521 */
522?>