-I$(top_srcdir)/src/lib-imap \
-I$(top_srcdir)/src/lib-index \
-I$(top_srcdir)/src/lib-storage \
+ -I$(top_srcdir)/src/lib-storage/index \
+ -I$(top_srcdir)/src/lib-storage/index/imapc \
-I$(top_srcdir)/src/imap \
-I$(top_srcdir)/src/plugins/acl
#include "imap-quote.h"
#include "imap-resp-code.h"
#include "imap-commands.h"
+#include "imapc-storage.h"
#include "mail-storage.h"
#include "mail-namespace.h"
#include "mail-storage-private.h"
return ret;
}
+static const char *
+imapc_acl_get_mailbox_error(struct imapc_mailbox *mbox)
+{
+ enum mail_error err;
+ const char *error = mailbox_get_last_error(&mbox->box, &err);
+ const char *resp_code;
+ string_t *str = t_str_new(128);
+
+ if (imapc_mail_error_to_resp_text_code(err, &resp_code))
+ str_printfa(str, "[%s] ", resp_code);
+ str_append(str, error);
+
+ return str_c(str);
+}
+
static bool cmd_getacl(struct client_command_context *cmd)
{
struct acl_backend *backend;