24#ifndef MUTT_POP_PRIVATE_H
25#define MUTT_POP_PRIVATE_H
36#define POP_SSL_PORT 995
39#define POP_CACHE_LEN 10
42#define POP_CMD_RESPONSE 512
111#define pop_query(adata, buf, buflen) pop_query_d(adata, buf, buflen, NULL)
117 struct Progress *progress,
pop_fetch_t callback,
void *data);
ConnAccountField
Login credentials.
const char * pop_get_field(enum ConnAccountField field, void *gf_data)
Get connection login credentials - Implements ConnAccount::get_field() -.
int pop_connect(struct PopAccountData *adata)
Open connection.
PopAuthRes
POP authentication responses.
@ POP_A_UNAVAIL
No valid authentication method.
@ POP_A_SUCCESS
Authenticated successfully.
@ POP_A_FAILURE
Authentication failed.
@ POP_A_SOCKET
Connection lost.
int pop_open_connection(struct PopAccountData *adata)
Open connection and authenticate.
bool pop_auth_is_valid(const char *authenticator)
Check if string is a valid pop authentication method.
int(* pop_fetch_t)(const char *str, void *data)
int pop_query_d(struct PopAccountData *adata, char *buf, size_t buflen, char *msg)
Send data from buffer and receive answer to the same buffer.
int pop_parse_path(const char *path, struct ConnAccount *acct)
Parse a POP mailbox name.
int pop_fetch_data(struct PopAccountData *adata, const char *query, struct Progress *progress, pop_fetch_t callback, void *data)
Read Headers with callback function.
PopStatus
POP server responses.
@ POP_DISCONNECTED
Disconnected from server.
@ POP_CONNECTED
Connected to server.
@ POP_NONE
No connected to server.
void pop_apop_timestamp(struct PopAccountData *adata, char *buf)
Get the server timestamp for APOP authentication.
int pop_authenticate(struct PopAccountData *adata)
Authenticate with a POP server.
void pop_logout(struct Mailbox *m)
Logout from a POP server.
int pop_reconnect(struct Mailbox *m)
Reconnect and verify indexes if connection was lost.
void * adata
Private data (for Mailbox backends)
Login details for a remote server.
POP-specific Account data -.
POP authentication multiplexor.
const char * method
Name of authentication method supported, NULL means variable.
enum PopAuthRes(* authenticate)(struct PopAccountData *adata, const char *method)
POP-specific email cache.