Details
CAMEL_IS_IMAPX_COMMAND()
#define CAMEL_IS_IMAPX_COMMAND(command)
enum CamelIMAPXCommandPartType
typedef enum {
CAMEL_IMAPX_COMMAND_SIMPLE = 0,
CAMEL_IMAPX_COMMAND_DATAWRAPPER,
CAMEL_IMAPX_COMMAND_AUTH,
CAMEL_IMAPX_COMMAND_FILE,
CAMEL_IMAPX_COMMAND_STRING,
CAMEL_IMAPX_COMMAND_MASK = 0xff,
/* Continuation with LITERAL+ */
CAMEL_IMAPX_COMMAND_LITERAL_PLUS = 1 << 14,
/* Does this command expect continuation? */
CAMEL_IMAPX_COMMAND_CONTINUATION = 1 << 15
} CamelIMAPXCommandPartType;
CAMEL_IMAPX_COMMAND_SIMPLE
|
|
CAMEL_IMAPX_COMMAND_DATAWRAPPER
|
|
CAMEL_IMAPX_COMMAND_AUTH
|
|
CAMEL_IMAPX_COMMAND_FILE
|
|
CAMEL_IMAPX_COMMAND_STRING
|
|
CAMEL_IMAPX_COMMAND_MASK
|
|
CAMEL_IMAPX_COMMAND_LITERAL_PLUS
|
|
CAMEL_IMAPX_COMMAND_CONTINUATION
|
|
CamelIMAPXCommandFunc ()
void (*CamelIMAPXCommandFunc) (struct _CamelIMAPXServer *is
,
CamelIMAPXCommand *ic
);
struct CamelIMAPXCommand
struct CamelIMAPXCommand {
struct _CamelIMAPXServer *is;
gint pri;
guint32 job_kind; /* CamelIMAPXJobKind */
/* Status for command. */
struct _status_info *status;
guint32 tag;
gboolean completed;
GQueue parts;
GList *current_part;
};
struct CamelIMAPXCommandPart
struct CamelIMAPXCommandPart {
gint data_size;
gchar *data;
CamelIMAPXCommandPartType type;
gint ob_size;
gpointer ob;
};
camel_imapx_command_new ()
CamelIMAPXCommand * camel_imapx_command_new (struct _CamelIMAPXServer *is
,
guint32 job_kind
,
const gchar *format
,
...
);
camel_imapx_command_check ()
gboolean camel_imapx_command_check (CamelIMAPXCommand *ic
);
camel_imapx_command_add ()
void camel_imapx_command_add (CamelIMAPXCommand *ic
,
const gchar *format
,
...
);
camel_imapx_command_addv ()
void camel_imapx_command_addv (CamelIMAPXCommand *ic
,
const gchar *format
,
va_list ap
);