#ifndef IMAP_MSGPART_URL_H
#define IMAP_MSGPART_URL_H
#include "imap-msgpart.h"
struct imap_url;
struct imap_msgpart;
struct imap_msgpart_url;
/* Functions returning int return 1 on success, 0 if URL doesn't point to
valid mail, -1 on storage error. */
struct imap_msgpart_url **url_r,
const char **error_r);
const char **error_r);
const char **error_r);
struct imap_msgpart *
/* Decode MIME parts with Content-Transfer-Encoding: base64/quoted-printable
to binary data (IMAP BINARY extension). If something can't be decoded, fails
with storage error set to MAIL_ERROR_CONVERSION. */
/* stream_r is set to NULL when part has zero length, e.g. when partial offset
is larger than the size of the referenced part */
struct imap_msgpart_open_result *result_r,
const char **error_r);
const char **bpstruct_r,
const char **error_r);
const char **error_r);
#endif