NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
adata.h
Go to the documentation of this file.
1
23#ifndef MUTT_POP_ADATA_H
24#define MUTT_POP_ADATA_H
25
26#include <stdbool.h>
27#include <time.h>
28#include "private.h"
29#include "mutt/lib.h"
30
31struct Mailbox;
32
37{
38 struct Connection *conn;
39 unsigned int status : 2;
40 bool capabilities : 1;
41 unsigned int use_stls : 2;
42 bool cmd_capa : 1;
43 bool cmd_stls : 1;
44 unsigned int cmd_user : 2;
45 unsigned int cmd_uidl : 2;
46 unsigned int cmd_top : 2;
47 bool resp_codes : 1;
48 bool expire : 1;
49 bool clear_cache : 1;
50 size_t size;
51 time_t check_time;
52 time_t login_delay;
54 char *timestamp;
55 struct BodyCache *bcache;
58};
59
60void pop_adata_free(void **ptr);
61struct PopAccountData *pop_adata_get (struct Mailbox *m);
62struct PopAccountData *pop_adata_new (void);
63
64#endif /* MUTT_POP_ADATA_H */
void pop_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free() -.
Definition: adata.c:41
Convenience wrapper for the library headers.
struct PopAccountData * pop_adata_get(struct Mailbox *m)
Get the Account data for this mailbox.
Definition: adata.c:73
struct PopAccountData * pop_adata_new(void)
Create a new PopAccountData object.
Definition: adata.c:63
#define POP_CMD_RESPONSE
Definition: private.h:42
#define POP_CACHE_LEN
Definition: private.h:39
GUI display the mailboxes in a side panel.
Local cache of email bodies.
Definition: bcache.c:51
String manipulation buffer.
Definition: buffer.h:36
A mailbox.
Definition: mailbox.h:79
POP-specific Account data -.
Definition: adata.h:37
bool resp_codes
server supports extended response codes
Definition: adata.h:47
size_t size
Definition: adata.h:50
bool clear_cache
Definition: adata.h:49
time_t check_time
Definition: adata.h:51
unsigned int cmd_top
optional command TOP
Definition: adata.h:46
char err_msg[POP_CMD_RESPONSE]
Definition: adata.h:56
unsigned int status
Definition: adata.h:39
struct Connection * conn
Connection to POP server.
Definition: adata.h:38
bool capabilities
Definition: adata.h:40
bool expire
expire is greater than 0
Definition: adata.h:48
time_t login_delay
minimal login delay capability
Definition: adata.h:52
struct PopCache cache[POP_CACHE_LEN]
Definition: adata.h:57
char * timestamp
Definition: adata.h:54
struct BodyCache * bcache
body cache
Definition: adata.h:55
bool cmd_stls
optional command STLS
Definition: adata.h:43
unsigned int cmd_uidl
optional command UIDL
Definition: adata.h:45
bool cmd_capa
optional command CAPA
Definition: adata.h:42
unsigned int use_stls
Definition: adata.h:41
unsigned int cmd_user
optional command USER
Definition: adata.h:44
struct Buffer auth_list
list of auth mechanisms
Definition: adata.h:53
POP-specific email cache.
Definition: private.h:69