imap-commands-util.h revision 1c885b304f060e3ac4fe04195a2f53457d0ac99e
#ifndef IMAP_COMMANDS_UTIL_H
#define IMAP_COMMANDS_UTIL_H
enum client_verify_mailbox_mode {
/* Don't verify mailbox name validity */
/* Verify only that the mailbox name is valid */
/* If mailbox doesn't exist, fail with [NONEXISTENT] resp code */
/* If mailbox doesn't exist, fail with [TRYCREATE] resp code */
/* If mailbox exists, fail with [ALREADYEXISTS] resp code */
};
struct msgset_generator_context {
};
struct mail_full_flags;
struct mailbox_keywords;
/* Finds namespace for given mailbox from namespaces. If namespace isn't found
or mailbox name is invalid, sends a tagged NO reply to client. */
struct mail_namespace *
enum client_verify_mailbox_mode mode);
/* Returns TRUE if mailbox is selected. If not, sends "No mailbox selected"
error message to client. */
const char *
/* Send last mailbox list error message to client. */
struct mailbox_list *list);
/* Send last mail storage error message to client. */
struct mail_storage *storage);
/* Send untagged error message to client. */
struct mail_storage *storage);
/* Parse flags. Returns TRUE if successful, if not sends an error message to
client. */
enum mail_flags *flags_r,
const char *const **keywords_r);
/* Send FLAGS + PERMANENTFLAGS to client if they have changed,
or if selecting=TRUE. */
/* Update client->keywords array. Use keywords=NULL when unselecting. */
/* Convert keyword indexes to keyword names in selected mailbox. */
const char *const *
const struct mail_namespace *ns2,
#endif