made the code work for triggering imap related errors.
[squirrelmail.git] / include / errors.php
CommitLineData
1455d7ec 1<?php
2
3/**
57311df7 4 * errors.php
5 *
47ccfad4 6 * @copyright &copy; 2005-2006 The SquirrelMail Project Team
4b4abf93 7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
57311df7 8 * @version $Id$
9 * @package squirrelmail
10 */
1455d7ec 11
57311df7 12/** init error array */
1455d7ec 13$aError = array();
14
15define('SQM_ERROR_IMAP',1);
16define('SQM_ERROR_FS',2);
17define('SQM_ERROR_SMTP',4);
18define('SQM_ERROR_LDAP',8);
19define('SQM_ERROR_DB',16);
20define('SQM_ERROR_PLUGIN',32);
21// define('SQM_ERROR_X',64); future error category
22
6d31e3a3 23
24
1455d7ec 25$aErrors['SQM_IMAP_NO_THREAD'] = array(
26 'level' => E_USER_ERROR,
27 'category' => SQM_ERROR_IMAP,
47fa73ef 28 'message' => _("Thread sorting is not supported by your IMAP server.") . "\n" .
29 _("Please contact your system administrator and report this error."),
1455d7ec 30 'link' => '',
6d31e3a3 31 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 10 (Disable server thread sort) to true).")
1455d7ec 32);
33
34$aErrors['SQM_IMAP_NO_SORT'] = array(
35 'level' => E_USER_ERROR,
36 'category' => SQM_ERROR_IMAP,
47fa73ef 37 'message' => _( "Server-side sorting is not supported by your IMAP server.") . "\n" .
38 _("Please contact your system administrator and report this error."),
1455d7ec 39 'link' => '',
6d31e3a3 40 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 11 (Disable server-side sorting) to true.")
1455d7ec 41);
42
6d31e3a3 43$aErrors['SQM_IMAP_BADCHARSET'] = array(
44 'level' => E_USER_NOTICE,
45 'category' => SQM_ERROR_IMAP,
46 'message' => _( "Your used charset is not supported by your IMAP server.") . "\n" .
47 _("Please contact your system administrator and report this error."),
48 'link' => '',
49 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 12 (Allow server charset search) to false) or choose option 10 (Language settings) and set option 2 (Default charset) to a charset supported by your IMAP server.")
50);
51
52$aErrors['SQM_IMAP_ERROR'] = array(
53 'level' => E_USER_ERROR,
54 'category' => SQM_ERROR_IMAP,
55 'message' => _( "Your IMAP server returned an error.") . "\n" .
56 _("Please contact your system administrator and report this error."),
57 'link' => ''
58);
1455d7ec 59//$aError['SQM_FS'] // Filesystem related errors
47fa73ef 60
61?>