#ifndef IMAP_UTIL_H
#define IMAP_UTIL_H
#include "seq-range-array.h"
#include "mail-types.h"
struct imap_arg;
/* Write flags as a space separated string. */
/* Parse system flag from a string, or return 0 if it's invalid. */
/* Write sequence range as IMAP sequence-set */
/* Write IMAP arg to the given string. Because IMAP_ARG_LITERAL_SIZE* have no
content, they're written as "{size}\r\n<too large>". */
/* Same as imap_write_arg(), but write all the args until EOL. */
/* Write IMAP args in a human-readable format to given string (e.g. for
logging). The output is a single valid UTF-8 line without control
characters. Multi-line literals are replaced with a generic placeholder. */
/* Like imap_write_args(), but return the string allocated from data stack. */
#endif