commands-util.h revision 84f80d9231b6ddc80ebfae425fd3674620fdf746
#ifndef __COMMANDS_UTIL_H
#define __COMMANDS_UTIL_H
struct msgset_generator_context {
};
struct mail_full_flags;
/* 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. */
int should_exist, int should_not_exist);
/* Returns TRUE if mailbox is selected. If not, sends "No mailbox selected"
error message to client. */
/* Synchronize selected mailbox with client by sending EXPUNGE,
FETCH FLAGS, EXISTS and RECENT responses. */
/* Synchronize fast. */
/* Synchronize all but expunges with 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 struct mailbox_keywords *old_keywords,
struct mail_full_flags *flags);
/* Send FLAGS + PERMANENTFLAGS to client. */
const char *keywords[],
unsigned int keywords_count);
/* Copy keywords into dest. dest must have been initialized. */
const char *keywords[], unsigned int keywords_count);
#endif