#ifndef IMAP_URLAUTH_FETCH_H
#define IMAP_URLAUTH_FETCH_H
struct imap_url;
struct imap_urlauth_context;
struct imap_urlauth_fetch;
enum imap_urlauth_fetch_flags {
/* Indicates that this is an extended request */
/* Fetch body part unmodified */
/* Fetch body part as binary, i.e. without content encoding */
/* Fetch IMAP bodypartstructure */
};
struct imap_urlauth_fetch_reply {
const char *url;
const char *bodypartstruct;
const char *error;
};
/* Callback to handle fetch reply. Returns 1 if handled completely and ready
for next reply, 0 if not all data was processed, and -1 for error. If a
callback returns 0, imap_urlauth_fetch_continue() must be called once
new replies may be processed. If this is the last request to yield a reply,
argument last is TRUE. */
typedef int
struct imap_urlauth_fetch *
#endif