commands-util.h revision c0435c854a0e7246373b9752d163095cc4fbe985
#ifndef __COMMANDS_UTIL_H
#define __COMMANDS_UTIL_H
/* 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 all but expunges with client. */
/* Send last mail storage error message to client. */
/* Parse flags, stores custom flag names into custflags[]. The names point to
strings in ImapArgList. Returns TRUE if successful, if not sends an error
message to client. */
const char *custflags[MAIL_CUSTOM_FLAGS_COUNT]);
/* Send FLAGS + PERMANENTFLAGS to client. */
const char *custom_flags[],
unsigned int custom_flags_count);
#endif