NeoMutt  2022-04-29-81-g9c5a59
Teaching an old dog new tricks
DOXYGEN
adata.h
Go to the documentation of this file.
1 
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 struct Mailbox;
32 
37 {
38  bool hasCAPABILITIES : 1;
39  bool hasSTARTTLS : 1;
40  bool hasDATE : 1;
41  bool hasLIST_NEWSGROUPS : 1;
42  bool hasXGTITLE : 1;
43  bool hasLISTGROUP : 1;
44  bool hasLISTGROUPrange : 1;
45  bool hasOVER : 1;
46  bool hasXOVER : 1;
47  unsigned int use_tls : 3;
48  unsigned int status : 3;
49  bool cacheable : 1;
50  bool newsrc_modified : 1;
51  FILE *fp_newsrc;
52  char *newsrc_file;
54  char *overview_fmt;
55  off_t size;
56  time_t mtime;
58  time_t check_time;
59  unsigned int groups_num;
60  unsigned int groups_max;
61  void **groups_list;
63  struct Connection *conn;
64 };
65 
66 void nntp_adata_free(void **ptr);
69 
70 #endif /* MUTT_NNTP_ADATA_H */
struct NntpAccountData * nntp_adata_new(struct Connection *conn)
Allocate and initialise a new NntpAccountData structure.
Definition: adata.c:62
void nntp_adata_free(void **ptr)
Free the private Account data - Implements Account::adata_free()
Definition: adata.c:43
struct NntpAccountData * nntp_adata_get(struct Mailbox *m)
A Hash Table.
Definition: hash.h:97
A mailbox.
Definition: mailbox.h:79
NNTP-specific Account data -.
Definition: adata.h:37
time_t newgroups_time
Definition: adata.h:57
bool newsrc_modified
Definition: adata.h:50
struct HashTable * groups_hash
Definition: adata.h:62
off_t size
Definition: adata.h:55
bool hasXOVER
Server supports XOVER command.
Definition: adata.h:46
struct Connection * conn
Connection to NNTP Server.
Definition: adata.h:63
unsigned int status
Definition: adata.h:48
char * authenticators
Definition: adata.h:53
char * overview_fmt
Definition: adata.h:54
bool hasXGTITLE
Server supports XGTITLE command.
Definition: adata.h:42
unsigned int groups_num
Definition: adata.h:59
bool hasCAPABILITIES
Server supports CAPABILITIES command.
Definition: adata.h:38
bool hasSTARTTLS
Server supports STARTTLS command.
Definition: adata.h:39
bool hasLISTGROUPrange
Server supports LISTGROUPrange command.
Definition: adata.h:44
time_t check_time
Definition: adata.h:58
time_t mtime
Definition: adata.h:56
unsigned int groups_max
Definition: adata.h:60
unsigned int use_tls
Definition: adata.h:47
bool hasLISTGROUP
Server supports LISTGROUP command.
Definition: adata.h:43
FILE * fp_newsrc
Definition: adata.h:51
void ** groups_list
Definition: adata.h:61
bool cacheable
Definition: adata.h:49
bool hasOVER
Server supports OVER command.
Definition: adata.h:45
char * newsrc_file
Definition: adata.h:52
bool hasDATE
Server supports DATE command.
Definition: adata.h:40
bool hasLIST_NEWSGROUPS
Server supports LIST_NEWSGROUPS command.
Definition: adata.h:41