NeoMutt
2024-11-14-34-g5aaf0d
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
31
struct
Mailbox
;
32
36
struct
PopAccountData
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
;
56
char
err_msg
[
POP_CMD_RESPONSE
];
57
struct
PopCache
cache
[
POP_CACHE_LEN
];
58
};
59
60
void
pop_adata_free
(
void
**ptr);
61
struct
PopAccountData
*
pop_adata_get
(
struct
Mailbox
*m);
62
struct
PopAccountData
*
pop_adata_new
(
void
);
63
64
#endif
/* MUTT_POP_ADATA_H */
pop_adata_free
void pop_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free() -.
Definition:
adata.c:41
lib.h
Convenience wrapper for the library headers.
pop_adata_get
struct PopAccountData * pop_adata_get(struct Mailbox *m)
Get the Account data for this mailbox.
Definition:
adata.c:73
pop_adata_new
struct PopAccountData * pop_adata_new(void)
Create a new PopAccountData object.
Definition:
adata.c:63
POP_CMD_RESPONSE
#define POP_CMD_RESPONSE
Definition:
private.h:42
POP_CACHE_LEN
#define POP_CACHE_LEN
Definition:
private.h:39
private.h
GUI display the mailboxes in a side panel.
BodyCache
Local cache of email bodies.
Definition:
bcache.c:51
Buffer
String manipulation buffer.
Definition:
buffer.h:36
Connection
Definition:
connection.h:48
Mailbox
A mailbox.
Definition:
mailbox.h:79
PopAccountData
POP-specific Account data -.
Definition:
adata.h:37
PopAccountData::resp_codes
bool resp_codes
server supports extended response codes
Definition:
adata.h:47
PopAccountData::size
size_t size
Definition:
adata.h:50
PopAccountData::clear_cache
bool clear_cache
Definition:
adata.h:49
PopAccountData::check_time
time_t check_time
Definition:
adata.h:51
PopAccountData::cmd_top
unsigned int cmd_top
optional command TOP
Definition:
adata.h:46
PopAccountData::err_msg
char err_msg[POP_CMD_RESPONSE]
Definition:
adata.h:56
PopAccountData::status
unsigned int status
Definition:
adata.h:39
PopAccountData::conn
struct Connection * conn
Connection to POP server.
Definition:
adata.h:38
PopAccountData::capabilities
bool capabilities
Definition:
adata.h:40
PopAccountData::expire
bool expire
expire is greater than 0
Definition:
adata.h:48
PopAccountData::login_delay
time_t login_delay
minimal login delay capability
Definition:
adata.h:52
PopAccountData::cache
struct PopCache cache[POP_CACHE_LEN]
Definition:
adata.h:57
PopAccountData::timestamp
char * timestamp
Definition:
adata.h:54
PopAccountData::bcache
struct BodyCache * bcache
body cache
Definition:
adata.h:55
PopAccountData::cmd_stls
bool cmd_stls
optional command STLS
Definition:
adata.h:43
PopAccountData::cmd_uidl
unsigned int cmd_uidl
optional command UIDL
Definition:
adata.h:45
PopAccountData::cmd_capa
bool cmd_capa
optional command CAPA
Definition:
adata.h:42
PopAccountData::use_stls
unsigned int use_stls
Definition:
adata.h:41
PopAccountData::cmd_user
unsigned int cmd_user
optional command USER
Definition:
adata.h:44
PopAccountData::auth_list
struct Buffer auth_list
list of auth mechanisms
Definition:
adata.h:53
PopCache
POP-specific email cache.
Definition:
private.h:69