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