pop3c-storage.h revision 120e61ccce21fd33d6b55b6f27346e1690b64bd8
#ifndef POP3C_STORAGE_H
#define POP3C_STORAGE_H
#include "index-storage.h"
#define POP3C_STORAGE_NAME "pop3c"
struct pop3c_storage {
struct mail_storage storage;
const struct pop3c_settings *set;
};
struct pop3c_mailbox {
struct pop3c_storage *storage;
struct pop3c_client *client;
unsigned int msg_count;
/* LIST sizes */
/* UIDL strings */
const char *const *msg_uidls;
/* index UIDs for each message in this session.
the UID may not exist for the entire session */
bool logged_in:1;
};
struct pop3c_mail {
struct index_mail imail;
struct istream *prefetch_stream;
bool prefetching:1;
bool prefetching_body:1;
};
struct mail *
pop3c_mail_alloc(struct mailbox_transaction_context *t,
struct mailbox_header_lookup_ctx *wanted_headers);
extern struct mail_vfuncs pop3c_mail_vfuncs;
#endif