• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * imap_err.c:
3  * This file is automatically generated; please do not edit it.
4  */
5 
6 #include <stdlib.h>
7 
8 #define N_(a) a
9 
10 static const char * const text[] = {
11 	N_(   "Internal Error"),
12 	N_(   "System I/O error"),
13 	N_(   "Item does not exist"),
14 	N_(   "Operating System Error"),
15 	N_(   "mail system storage has been exceeded"),
16 	N_(   "Permission denied"),
17 	N_(   "Over quota"),
18 	N_(   "Message size exceeds fixed limit"),
19 	N_(   "Too many user flags in mailbox"),
20 	N_(   "Invalid namespace prefix in configuration file"),
21 	N_(   "Mailbox has an invalid format"),
22 	N_(   "Replication inconsistency detected"),
23 	N_(   "Mailbox format corruption detected"),
24 	N_(   "Operation is not supported on mailbox"),
25 	N_(   "Mailbox does not exist"),
26 	N_(   "Mailbox already exists"),
27 	N_(   "Invalid mailbox name"),
28 	N_(   "Invalid mailbox type"),
29 	N_(   "Mailbox has been moved to another server"),
30 	N_(   "Mailbox is currently reserved"),
31 	N_(   "Mailbox is locked"),
32 	N_(   "Delivery to mailbox is disabled"),
33 	N_(   "Unknown/invalid partition"),
34 	N_(   "Invalid identifier"),
35 	N_(   "Message contains NUL characters"),
36 	N_(   "Message contains bare newlines"),
37 	N_(   "Message contains non-ASCII characters in headers"),
38 	N_(   "Message contains invalid header"),
39 	N_(   "Message has no header/body separator"),
40 	N_(   "Quota root does not exist"),
41 	N_(   "Bad protocol"),
42 	N_(   "Syntax error in parameters"),
43 	N_(   "Invalid annotation entry"),
44 	N_(   "Invalid annotation attribute"),
45 	N_(   "Invalid annotation value"),
46 	N_(   "Bad URL"),
47 	N_(   "Zero-length message literal"),
48 	N_(   "Invalid server requested"),
49 	N_(   "Server(s) unavailable to complete operation"),
50 	N_(   "The remote Server(s) denied the operation"),
51 	N_(   "Retry operation"),
52 	N_(   "This mailbox hierarchy does not exist on a single backend server."),
53 	N_(   "The remote server does not support MULTIAPPEND"),
54 	N_(   "Unrecognized character set"),
55 	N_(   "Invalid user"),
56 	N_(   "Login incorrect"),
57 	N_(   "Anonymous login is not permitted"),
58 	N_(   "Unsupported quota resource"),
59 	N_(   "Authentication failed"),
60 	N_(   "Client cancelled authentication"),
61 	N_(   "Protocol error during authentication"),
62 	N_(   "Mailbox is over %s quota"),
63 	N_(   "Mailbox is at %d%% of %s quota"),
64 	N_(   "Message %d no longer exists"),
65 	N_(   "Unable to checkpoint \\Seen state"),
66 	N_(   "Unable to preserve \\Seen state"),
67 	N_(   "No matching messages"),
68 	N_(   "No matching annotations"),
69 	N_(   "[UNKNOWN-CTE] Can not process the binary data"),
70 	N_(   "LOGOUT received"),
71 	N_(   "Completed"),
72     0
73 };
74 
75 struct error_table {
76     char const * const * msgs;
77     long base;
78     int n_msgs;
79 };
80 struct et_list {
81     struct et_list *next;
82     const struct error_table * table;
83 };
84 extern struct et_list *_et_list;
85 
86 const struct error_table et_imap_error_table = { text, -1904809472L, 61 };
87 
88 static struct et_list link = { 0, 0 };
89 
90 void initialize_imap_error_table_r(struct et_list **list);
91 void initialize_imap_error_table(void);
92 
initialize_imap_error_table(void)93 void initialize_imap_error_table(void) {
94     initialize_imap_error_table_r(&_et_list);
95 }
96 
97 /* For Heimdal compatibility */
initialize_imap_error_table_r(struct et_list ** list)98 void initialize_imap_error_table_r(struct et_list **list)
99 {
100     struct et_list *et, **end;
101 
102     for (end = list, et = *list; et; end = &et->next, et = et->next)
103         if (et->table->msgs == text)
104             return;
105     et = malloc(sizeof(struct et_list));
106     if (et == 0) {
107         if (!link.table)
108             et = &link;
109         else
110             return;
111     }
112     et->table = &et_imap_error_table;
113     et->next = 0;
114     *end = et;
115 }
116