NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
private.h
Go to the documentation of this file.
1
23#ifndef MUTT_NNTP_PRIVATE_H
24#define MUTT_NNTP_PRIVATE_H
25
26#include <stdbool.h>
27#include <stdint.h>
28#include "lib.h"
29
30struct Email;
31struct HeaderCache;
32struct Mailbox;
33struct NntpAccountData;
34struct NntpMboxData;
35
36#define NNTP_PORT 119
37#define NNTP_SSL_PORT 563
38
43{
47};
48
51int nntp_add_group (char *line, void *data);
52void nntp_article_status (struct Mailbox *m, struct Email *e, char *group, anum_t anum);
54int nntp_check_new_groups (struct Mailbox *m, struct NntpAccountData *adata);
57void nntp_hash_destructor_t (int type, void *obj, intptr_t data);
58void nntp_hashelem_free (int type, void *obj, intptr_t data);
59struct HeaderCache * nntp_hcache_open (struct NntpMboxData *mdata);
60void nntp_hcache_update (struct NntpMboxData *mdata, struct HeaderCache *hc);
61void nntp_newsrc_gen_entries(struct Mailbox *m);
62int nntp_open_connection (struct NntpAccountData *adata);
63
64#endif /* MUTT_NNTP_PRIVATE_H */
void nntp_hashelem_free(int type, void *obj, intptr_t data)
Free our hash table data - Implements hash_hdata_free_t -.
Definition: nntp.c:117
#define anum_t
Definition: lib.h:60
struct HeaderCache * nntp_hcache_open(struct NntpMboxData *mdata)
Open newsgroup hcache.
Definition: newsrc.c:710
void nntp_delete_group_cache(struct NntpMboxData *mdata)
Remove hcache and bcache of newsgroup.
Definition: newsrc.c:811
int nntp_check_new_groups(struct Mailbox *m, struct NntpAccountData *adata)
Check for new groups/articles in subscribed groups.
Definition: nntp.c:2077
void nntp_newsrc_gen_entries(struct Mailbox *m)
Generate array of .newsrc entries.
Definition: newsrc.c:302
void nntp_hcache_update(struct NntpMboxData *mdata, struct HeaderCache *hc)
Remove stale cached headers.
Definition: newsrc.c:734
NntpStatus
NNTP server return values.
Definition: private.h:43
@ NNTP_NONE
No connection to server.
Definition: private.h:44
@ NNTP_BYE
Disconnected from server.
Definition: private.h:46
@ NNTP_OK
Connected to server.
Definition: private.h:45
void nntp_article_status(struct Mailbox *m, struct Email *e, char *group, anum_t anum)
Get status of articles from .newsrc.
Definition: newsrc.c:1256
int nntp_add_group(char *line, void *data)
Parse newsgroup.
Definition: newsrc.c:575
void nntp_hash_destructor_t(int type, void *obj, intptr_t data)
int nntp_active_save_cache(struct NntpAccountData *adata)
Save list of all newsgroups to cache.
Definition: newsrc.c:650
void nntp_bcache_update(struct NntpMboxData *mdata)
Remove stale cached messages.
Definition: newsrc.c:802
void nntp_group_unread_stat(struct NntpMboxData *mdata)
Count number of unread articles using .newsrc data.
Definition: newsrc.c:135
int nntp_open_connection(struct NntpAccountData *adata)
Connect to server, authenticate and get capabilities.
Definition: nntp.c:1754
void nntp_acache_free(struct NntpMboxData *mdata)
Remove all temporarily cache files.
Definition: newsrc.c:105
Key value store.
The envelope/body of an email.
Definition: email.h:39
Header Cache.
Definition: lib.h:86
A mailbox.
Definition: mailbox.h:79
enum MailboxType type
Mailbox type.
Definition: mailbox.h:102
void * mdata
Driver specific data.
Definition: mailbox.h:132
NNTP-specific Account data -.
Definition: adata.h:36
NNTP-specific Mailbox data -.
Definition: mdata.h:34
char * group
Name of newsgroup.
Definition: mdata.h:35
struct NntpAccountData * adata
Definition: mdata.h:48