31b5c0fd6d8a739e13eb7bf1789e429ffba751f9
[squirrelmail.git] / include / errors.php
1 <?php
2
3 /**
4 * errors.php
5 *
6 * @copyright 2005-2017 The SquirrelMail Project Team
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 * @version $Id$
9 * @package squirrelmail
10 */
11
12 /** init error array */
13 $aError = array();
14
15 define('SQM_ERROR_IMAP',1);
16 define('SQM_ERROR_FS',2);
17 define('SQM_ERROR_SMTP',4);
18 define('SQM_ERROR_LDAP',8);
19 define('SQM_ERROR_DB',16);
20 define('SQM_ERROR_PLUGIN',32);
21 // define('SQM_ERROR_X',64); future error category
22
23
24
25 $aErrors['SQM_IMAP_NO_THREAD'] = array(
26 'level' => E_USER_ERROR,
27 'category' => SQM_ERROR_IMAP,
28 'message' => _("Thread sorting is not supported by your IMAP server.") . "\n" .
29 _("Please contact your system administrator and report this error."),
30 'link' => '',
31 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 10 (Disable server thread sort) to true).")
32 );
33
34 $aErrors['SQM_IMAP_NO_SORT'] = array(
35 'level' => E_USER_ERROR,
36 'category' => SQM_ERROR_IMAP,
37 'message' => _( "Server-side sorting is not supported by your IMAP server.") . "\n" .
38 _("Please contact your system administrator and report this error."),
39 'link' => '',
40 'tip' => _("Run \"configure\", choose option 4 (General options) and set option 11 (Disable server-side sorting) to true.")
41 );
42
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_APPEND_QUOTA_ERROR'] = array(
53 'level' => E_USER_NOTICE,
54 'category' => SQM_ERROR_IMAP,
55 'message' => _( "Out of quota error."),
56 'link' => '',
57 'tip' => _("Remove unneccessary messages from your folders. Start with your Trash folder.")
58 );
59
60 $aErrors['SQM_IMAP_APPEND_ERROR'] = array(
61 'level' => E_USER_NOTICE,
62 'category' => SQM_ERROR_IMAP,
63 'message' => _( "An error occured when SquirrelMail appended a message to the mailbox as listed in this message."),
64 'link' => ''
65 );
66
67 $aErrors['SQM_IMAP_ERROR'] = array(
68 'level' => E_USER_ERROR,
69 'category' => SQM_ERROR_IMAP,
70 'message' => _( "Your IMAP server returned an error.") . "\n" .
71 _("Please contact your system administrator and report this error."),
72 'link' => ''
73 );
74
75 $aErrors['SQM_IMAP_BYE'] = array(
76 'level' => E_USER_ERROR,
77 'category' => SQM_ERROR_IMAP,
78 'message' => _( "IMAP server closed the connection.") . "\n" .
79 _("Please contact your system administrator and report this error."),
80 'link' => ''
81 );
82
83 //$aError['SQM_FS'] // Filesystem related errors