commands-util.h revision bb10ebcf076c959c752f583746d83805d7686df8
#ifndef __COMMANDS_UTIL_H
#define __COMMANDS_UTIL_H
struct msgset_generator_context {
};
struct mail_full_flags;
struct mailbox_keywords;
/* Finds mail storage for given mailbox from namespaces. If not found,
sends "Unknown namespace" error message to client. */
struct mail_storage *
/* If should_exist is TRUE, this function returns TRUE if the mailbox
exists. If it doesn't exist but would be a valid mailbox name, the
error message is prefixed with [TRYCREATE].
If should_exist is FALSE, the should_not_exist specifies if we should
return TRUE or FALSE if mailbox doesn't exist. */
const char *mailbox,
int should_exist, int should_not_exist);
/* Returns TRUE if mailbox is selected. If not, sends "No mailbox selected"
error message to client. */
/* 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. */
const char *const **keywords_r);
/* Send FLAGS + PERMANENTFLAGS to client. */
/* Copy keywords into dest. dest must have been initialized. */
const char *name2);
#endif