static int fetch_uidl(char *line, void *data)
{
struct Mailbox *m = data;
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
char *endp = NULL;
errno = 0;
if (!m)
return -1;
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
if (!adata)
return -1;
if (!m)
return -1;
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
struct Progress progress;
#ifdef USE_HCACHE
if (!m)
return -1;
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
if ((adata->check_time + PopCheckinterval) > time(NULL))
return 0;
int i, j, ret = 0;
char buf[LONG_STRING];
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
struct Progress progress;
#ifdef USE_HCACHE
header_cache_t *hc = NULL;
if (!m)
return -1;
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
if (!adata)
return 0;
char buf[LONG_STRING];
char path[PATH_MAX];
struct Progress progressbar;
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
struct Email *e = m->emails[msgno];
struct PopEmailData *edata = e->edata;
bool bcache = true;
{
int rc = 0;
#ifdef USE_HCACHE
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
struct PopEmailData *edata = e->edata;
header_cache_t *hc = pop_hcache_open(adata, m->path);
rc = mutt_hcache_store(hc, edata->uid, strlen(edata->uid), e, 0);
*/
void pop_logout(struct Mailbox *m)
{
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
if (adata->status == POP_CONNECTED)
{
*/
int pop_reconnect(struct Mailbox *m)
{
- struct PopAccountData *adata = pop_get_adata(m);
+ struct PopAccountData *adata = pop_adata_get(m);
if (adata->status == POP_CONNECTED)
return 0;
}
/**
- * pop_get_adata - Get the Account data for this mailbox
+ * pop_adata_get - Get the Account data for this mailbox
* @param m Mailbox
* @retval ptr PopAccountData
*/
-struct PopAccountData *pop_get_adata(struct Mailbox *m)
+struct PopAccountData *pop_adata_get(struct Mailbox *m)
{
if (!m || (m->magic != MUTT_POP))
return NULL;
int (*func)(char *, void *), void *data);
int pop_reconnect(struct Mailbox *m);
void pop_logout(struct Mailbox *m);
-struct PopAccountData *pop_get_adata(struct Mailbox *m);
+struct PopAccountData *pop_adata_get(struct Mailbox *m);
#endif /* MUTT_POP_POP_PRIVATE_H */