Commit bed36ed4 bed36ed45d82e59f7af54901dfc0a9682446ae4d by Sergey Poznyakoff

(ERR_MAILBOX_CORRUPTED): New error code.

(imap4d_set_observer): New function
1 parent c9b79687
...@@ -128,13 +128,14 @@ struct imap4d_command ...@@ -128,13 +128,14 @@ struct imap4d_command
128 #define RESP_NONE 4 128 #define RESP_NONE 4
129 129
130 /* Error values. */ 130 /* Error values. */
131 #define OK 0 131 #define OK 0
132 #define ERR_NO_MEM 1 132 #define ERR_NO_MEM 1
133 #define ERR_NO_OFILE 2 133 #define ERR_NO_OFILE 2
134 #define ERR_TIMEOUT 3 134 #define ERR_TIMEOUT 3
135 #define ERR_SIGNAL 4 135 #define ERR_SIGNAL 4
136 #define ERR_TLS 5 136 #define ERR_TLS 5
137 137 #define ERR_MAILBOX_CORRUPTED 6
138
138 /* Namespace numbers */ 139 /* Namespace numbers */
139 #define NS_PRIVATE 0 140 #define NS_PRIVATE 0
140 #define NS_OTHER 1 141 #define NS_OTHER 1
...@@ -216,7 +217,8 @@ extern void fetch_flags0 (const char *prefix, message_t msg, int isuid); ...@@ -216,7 +217,8 @@ extern void fetch_flags0 (const char *prefix, message_t msg, int isuid);
216 extern int imap4d_sync __P ((void)); 217 extern int imap4d_sync __P ((void));
217 extern int imap4d_sync_flags __P ((size_t)); 218 extern int imap4d_sync_flags __P ((size_t));
218 extern size_t uid_to_msgno __P ((size_t)); 219 extern size_t uid_to_msgno __P ((size_t));
219 220 extern void imap4d_set_observer (mailbox_t mbox);
221
220 /* Signal handling. */ 222 /* Signal handling. */
221 extern RETSIGTYPE imap4d_sigchld __P ((int)); 223 extern RETSIGTYPE imap4d_sigchld __P ((int));
222 extern RETSIGTYPE imap4d_signal __P ((int)); 224 extern RETSIGTYPE imap4d_signal __P ((int));
......