#ifndef IMAP_URL_H
#define IMAP_URL_H
#include "uri-util.h"
struct imap_url {
/* server */
/* user */
const char *userid;
const char *auth_type;
/* mailbox */
const char *mailbox;
/* message part */
const char *section;
/* message list (uid == 0) */
const char *search_program;
/* urlauth */
const char *uauth_rumpurl;
const char *uauth_access_application;
const char *uauth_access_user;
const char *uauth_mechanism;
const unsigned char *uauth_token;
};
/*
* IMAP URL parsing
*/
enum imap_url_parse_flags {
/* Scheme part 'imap:' is already parsed externally. This implies that
this is an absolute IMAP URL. */
/* Require relative URL (omitting _both_ scheme and authority), e.g.
/MAILBOX/;UID=uid or even ;UID=uid. This flag means that an absolute
URL makes no sense in this context. Relative URLs are allowed once a
base URL is provided to the parser. */
/* Allow URLAUTH URL */
};
/* Parses full IMAP URL. The returned URL is allocated from data stack. */
enum imap_url_parse_flags flags,
/*
* IMAP URL construction
*/
#endif