NeoMutt  2021-02-05-329-g9e03b7
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;
42  bool hasXGTITLE : 1;
43  bool hasLISTGROUP : 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);
67 struct NntpAccountData *nntp_adata_get (struct Mailbox *m);
69 
70 #endif /* MUTT_NNTP_ADATA_H */
char * newsrc_file
Definition: adata.h:52
A Hash Table.
Definition: hash.h:84
unsigned int use_tls
Definition: adata.h:47
bool newsrc_modified
Definition: adata.h:50
time_t mtime
Definition: adata.h:56
An open network connection (socket)
Definition: connection.h:34
bool hasSTARTTLS
Definition: adata.h:39
struct HashTable * groups_hash
Definition: adata.h:62
NNTP-specific Account data -.
Definition: adata.h:36
bool cacheable
Definition: adata.h:49
time_t newgroups_time
Definition: adata.h:57
bool hasLIST_NEWSGROUPS
Definition: adata.h:41
char * overview_fmt
Definition: adata.h:54
struct NntpAccountData * nntp_adata_new(struct Connection *conn)
Allocate and initialise a new NntpAccountData structure.
Definition: adata.c:65
off_t size
Definition: adata.h:55
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)
unsigned int status
Definition: adata.h:48
A mailbox.
Definition: mailbox.h:81
bool hasXGTITLE
Definition: adata.h:42
unsigned int groups_max
Definition: adata.h:60
bool hasLISTGROUP
Definition: adata.h:43
unsigned int groups_num
Definition: adata.h:59
bool hasOVER
Definition: adata.h:45
struct Connection * conn
Definition: adata.h:63
char * authenticators
Definition: adata.h:53
time_t check_time
Definition: adata.h:58
bool hasLISTGROUPrange
Definition: adata.h:44
void ** groups_list
Definition: adata.h:61
FILE * fp_newsrc
Definition: adata.h:51
bool hasXOVER
Definition: adata.h:46
bool hasDATE
Definition: adata.h:40
bool hasCAPABILITIES
Definition: adata.h:38