camel-imapp-utils
3
CAMEL Library

# camel-imapp-utils

## Synopsis

    enum                camel_imapp_id_t;
    camel_imapp_id_t    imap_tokenise                       ();
    void                imap_parse_flags                    (CamelIMAPPStream *stream);
    struct              fetch_info;
    #define             FETCH_BODY
    #define             FETCH_TEXT
    #define             FETCH_HEADER
    #define             FETCH_MINFO
    #define             FETCH_CINFO
    #define             FETCH_SIZE
    #define             FETCH_OFFSET
    #define             FETCH_FLAGS
    #define             FETCH_DATE
    #define             FETCH_SECTION
    #define             FETCH_UID
    struct              status_info;
    struct              list_info;
    void                imapp_uidset_init                   (struct _uidset_state *ss,
                                                             struct _CamelIMAPPEngine *ie);
    int                 imapp_uidset_done                   (struct _uidset_state *ss,
                                                             struct _CamelIMAPPCommand *ic);
    int                 imapp_uidset_add                    (struct _uidset_state *ss,
                                                             struct _CamelIMAPPCommand *ic,
                                                             const char *uid);

## Description

## Details

### enum camel_imapp_id_t

    typedef enum _camel_imapp_id_t {
    	IMAP_UNKNOWN = 0,
    	IMAP_ALERT,
    	IMAP_BYE,
    	IMAP_BAD,
    	IMAP_NO,
    	IMAP_OK,
    	IMAP_PREAUTH,
    	IMAP_NEWNAME,
    	IMAP_PARSE,
    	IMAP_PERMANENTFLAGS,
    	IMAP_READ_ONLY,
    	IMAP_READ_WRITE,
    	IMAP_TRYCREATE,
    	IMAP_UIDVALIDITY,
    	IMAP_UNSEEN,
    	IMAP_ENVELOPE,
    	IMAP_FLAGS,
    	IMAP_INTERNALDATE,
    	IMAP_RFC822_HEADER,
    	IMAP_RFC822_TEXT,
    	IMAP_RFC822_SIZE,
    	IMAP_BODYSTRUCTURE,
    	IMAP_BODY,
    	IMAP_UID,
    } camel_imapp_id_t;

### imap_tokenise ()

    camel_imapp_id_t    imap_tokenise                       ();

Returns :

### imap_parse_flags ()

    void                imap_parse_flags                    (CamelIMAPPStream *stream);

`stream` :

### struct fetch_info

    struct fetch_info {
    	guint32 got;		/* what we got, see below */
    	CamelStream *body;	/* BODY[.*](<.*>)? */
    	CamelStream *text;	/* RFC822.TEXT */
    	CamelStream *header;	/* RFC822.HEADER */
    	struct _CamelMessageInfo *minfo; /* ENVELOPE */
    	struct _CamelMessageContentInfo *cinfo;	/* BODYSTRUCTURE,BODY */
    	guint32 size;		/* RFC822.SIZE */
    	guint32 offset;		/* start offset of a BODY[]<offset.length> request */
    	guint32 flags;		/* FLAGS */
    	char *date;		/* INTERNALDATE */
    	char *section;		/* section for a BODY[section] request */
    	char *uid;		/* UID */
    };

### FETCH_BODY

    #define FETCH_BODY (1<<0)

### FETCH_TEXT

    #define FETCH_TEXT (1<<1)

### FETCH_HEADER

    #define FETCH_HEADER (1<<2)

### FETCH_MINFO

    #define FETCH_MINFO (1<<3)

### FETCH_CINFO

    #define FETCH_CINFO (1<<4)

### FETCH_SIZE

    #define FETCH_SIZE (1<<5)

### FETCH_OFFSET

    #define FETCH_OFFSET (1<<6)

### FETCH_FLAGS

    #define FETCH_FLAGS (1<<7)

### FETCH_DATE

    #define FETCH_DATE (1<<8)

### FETCH_SECTION

    #define FETCH_SECTION (1<<9)

### FETCH_UID

    #define FETCH_UID (1<<10)

### struct status_info

    struct status_info {
    	camel_imapp_id_t result; /* ok/no/bad/preauth only */
    	camel_imapp_id_t condition; /* read-only/read-write/alert/parse/trycreate/newname/permanentflags/uidvalidity/unseen */

    	union {
    		struct {
    			char *oldname;
    			char *newname;
    		} newname;
    		guint32 permanentflags;
    		guint32 uidvalidity;
    		guint32 unseen;
    	} u;

    	char *text;
    };

### struct list_info

    struct list_info {
    	guint32 flags:24;
    	char separator;
    	char *name;
    };

### imapp_uidset_init ()

    void                imapp_uidset_init                   (struct _uidset_state *ss,
                                                             struct _CamelIMAPPEngine *ie);

`ss` :

`ie` :

### imapp_uidset_done ()

    int                 imapp_uidset_done                   (struct _uidset_state *ss,
                                                             struct _CamelIMAPPCommand *ic);

`ss` :

`ic` :

Returns :

### imapp_uidset_add ()

    int                 imapp_uidset_add                    (struct _uidset_state *ss,
                                                             struct _CamelIMAPPCommand *ic,
                                                             const char *uid);

`ss` :

`ic` :

`uid` :

Returns :