NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
adata.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_NNTP_ADATA_H
24
#define MUTT_NNTP_ADATA_H
25
26
#include <stdbool.h>
27
#include <stdio.h>
28
#include <sys/types.h>
29
30
struct
Connection
;
31
35
struct
NntpAccountData
36
{
37
bool
hasCAPABILITIES
: 1;
38
bool
hasSTARTTLS
: 1;
39
bool
hasDATE
: 1;
40
bool
hasLIST_NEWSGROUPS
: 1;
41
bool
hasXGTITLE
: 1;
42
bool
hasLISTGROUP
: 1;
43
bool
hasLISTGROUPrange
: 1;
44
bool
hasOVER
: 1;
45
bool
hasXOVER
: 1;
46
unsigned
int
use_tls
: 3;
47
unsigned
int
status
: 3;
48
bool
cacheable
: 1;
49
bool
newsrc_modified
: 1;
50
FILE *
fp_newsrc
;
51
char
*
newsrc_file
;
52
char
*
authenticators
;
53
char
*
overview_fmt
;
54
off_t
size
;
55
time_t
mtime
;
56
time_t
newgroups_time
;
57
time_t
check_time
;
58
unsigned
int
groups_num
;
59
unsigned
int
groups_max
;
60
struct
NntpMboxData
**
groups_list
;
61
62
struct
HashTable
*
groups_hash
;
63
struct
Connection
*
conn
;
64
};
65
66
void
nntp_adata_free
(
void
**ptr);
67
struct
NntpAccountData
*
nntp_adata_new
(
struct
Connection
*
conn
);
68
69
#endif
/* MUTT_NNTP_ADATA_H */
nntp_adata_free
void nntp_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free() -.
Definition
adata.c:42
nntp_adata_new
struct NntpAccountData * nntp_adata_new(struct Connection *conn)
Allocate and initialise a new NntpAccountData structure.
Definition
adata.c:65
Connection
Definition
connection.h:48
HashTable
A Hash Table.
Definition
hash.h:99
NntpAccountData
NNTP-specific Account data -.
Definition
adata.h:36
NntpAccountData::newgroups_time
time_t newgroups_time
Last newgroups request time.
Definition
adata.h:56
NntpAccountData::newsrc_modified
bool newsrc_modified
Newsrc file was modified.
Definition
adata.h:49
NntpAccountData::groups_hash
struct HashTable * groups_hash
Hash Table: "newsgroup" -> NntpMboxData.
Definition
adata.h:62
NntpAccountData::size
off_t size
Newsrc file size.
Definition
adata.h:54
NntpAccountData::hasXOVER
bool hasXOVER
Server supports XOVER command.
Definition
adata.h:45
NntpAccountData::groups_list
struct NntpMboxData ** groups_list
List of newsgroups.
Definition
adata.h:60
NntpAccountData::conn
struct Connection * conn
Connection to NNTP Server.
Definition
adata.h:63
NntpAccountData::status
unsigned int status
Connection status.
Definition
adata.h:47
NntpAccountData::authenticators
char * authenticators
Authenticators list.
Definition
adata.h:52
NntpAccountData::overview_fmt
char * overview_fmt
Overview format.
Definition
adata.h:53
NntpAccountData::hasXGTITLE
bool hasXGTITLE
Server supports XGTITLE command.
Definition
adata.h:41
NntpAccountData::groups_num
unsigned int groups_num
Number of newsgroups.
Definition
adata.h:58
NntpAccountData::hasCAPABILITIES
bool hasCAPABILITIES
Server supports CAPABILITIES command.
Definition
adata.h:37
NntpAccountData::hasSTARTTLS
bool hasSTARTTLS
Server supports STARTTLS command.
Definition
adata.h:38
NntpAccountData::hasLISTGROUPrange
bool hasLISTGROUPrange
Server supports LISTGROUPrange command.
Definition
adata.h:43
NntpAccountData::check_time
time_t check_time
Last check time.
Definition
adata.h:57
NntpAccountData::mtime
time_t mtime
Newsrc modification time.
Definition
adata.h:55
NntpAccountData::groups_max
unsigned int groups_max
Maximum number of newsgroups.
Definition
adata.h:59
NntpAccountData::use_tls
unsigned int use_tls
Use TLS.
Definition
adata.h:46
NntpAccountData::hasLISTGROUP
bool hasLISTGROUP
Server supports LISTGROUP command.
Definition
adata.h:42
NntpAccountData::fp_newsrc
FILE * fp_newsrc
Newsrc file handle.
Definition
adata.h:50
NntpAccountData::cacheable
bool cacheable
Can be cached.
Definition
adata.h:48
NntpAccountData::hasOVER
bool hasOVER
Server supports OVER command.
Definition
adata.h:44
NntpAccountData::newsrc_file
char * newsrc_file
Newsrc file path.
Definition
adata.h:51
NntpAccountData::hasDATE
bool hasDATE
Server supports DATE command.
Definition
adata.h:39
NntpAccountData::hasLIST_NEWSGROUPS
bool hasLIST_NEWSGROUPS
Server supports LIST_NEWSGROUPS command.
Definition
adata.h:40
NntpMboxData
NNTP-specific Mailbox data -.
Definition
mdata.h:34