NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
adata.h
Go to the documentation of this file.
1
22
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
53 time_t login_delay;
55 char *timestamp;
56 struct BodyCache *bcache;
59};
60
61void pop_adata_free(void **ptr);
62struct PopAccountData *pop_adata_get (struct Mailbox *m);
63struct PopAccountData *pop_adata_new (void);
64
65#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
POP network mailbox.
#define POP_CMD_RESPONSE
Maximum length of POP server response (per RFC1939)
Definition private.h:40
#define POP_CACHE_LEN
Number of entries in the POP cache hash table.
Definition private.h:38
Local cache of email bodies.
Definition bcache.c:49
String manipulation buffer.
Definition buffer.h:36
A mailbox.
Definition mailbox.h:78
POP-specific Account data -.
Definition adata.h:37
bool resp_codes
server supports extended response codes
Definition adata.h:47
size_t size
Mailbox size.
Definition adata.h:50
bool clear_cache
Clear the cache.
Definition adata.h:49
time_t check_time
Last check time.
Definition adata.h:51
unsigned int cmd_top
optional command TOP
Definition adata.h:46
char err_msg[POP_CMD_RESPONSE]
Last error message.
Definition adata.h:57
unsigned int status
Connection status.
Definition adata.h:39
struct Connection * conn
Connection to POP server.
Definition adata.h:38
bool capabilities
Server capabilities retrieved.
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:53
struct PopCache cache[POP_CACHE_LEN]
Message cache.
Definition adata.h:58
char * timestamp
APOP timestamp.
Definition adata.h:55
struct BodyCache * bcache
body cache
Definition adata.h:56
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
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:54
POP-specific email cache.
Definition private.h:67