#ifndef IMAP_URLAUTH_H
#define IMAP_URLAUTH_H
#include "net.h"
struct imap_url;
struct imap_msgpart_url;
struct imap_urlauth_context;
struct imap_urlauth_config {
const char *url_host;
const char *socket_path;
const char *session_id;
/* the user who is requesting access to URLAUTHs */
const char *access_user;
/* ... is using this service (i.e. imap or submission) */
const char *access_service;
/* ... represents these applications */
const char *const *access_applications;
/* ... is anonymous? */
bool access_anonymous;
};
struct imap_urlauth_context *
const struct imap_urlauth_config *config);
const char **error_r);
struct imap_msgpart_url **mpurl_r,
enum mail_error *error_code_r,
const char **error_r);
#endif