23#ifndef MUTT_NNTP_PRIVATE_H
24#define MUTT_NNTP_PRIVATE_H
37#define NNTP_SSL_PORT 563
void nntp_hashelem_free(int type, void *obj, intptr_t data)
Free our hash table data - Implements hash_hdata_free_t -.
struct HeaderCache * nntp_hcache_open(struct NntpMboxData *mdata)
Open newsgroup hcache.
void nntp_delete_group_cache(struct NntpMboxData *mdata)
Remove hcache and bcache of newsgroup.
int nntp_check_new_groups(struct Mailbox *m, struct NntpAccountData *adata)
Check for new groups/articles in subscribed groups.
void nntp_newsrc_gen_entries(struct Mailbox *m)
Generate array of .newsrc entries.
void nntp_hcache_update(struct NntpMboxData *mdata, struct HeaderCache *hc)
Remove stale cached headers.
NntpStatus
NNTP server return values.
@ NNTP_NONE
No connection to server.
@ NNTP_BYE
Disconnected from server.
@ NNTP_OK
Connected to server.
void nntp_article_status(struct Mailbox *m, struct Email *e, char *group, anum_t anum)
Get status of articles from .newsrc.
int nntp_add_group(char *line, void *data)
Parse newsgroup.
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.
void nntp_bcache_update(struct NntpMboxData *mdata)
Remove stale cached messages.
void nntp_group_unread_stat(struct NntpMboxData *mdata)
Count number of unread articles using .newsrc data.
int nntp_open_connection(struct NntpAccountData *adata)
Connect to server, authenticate and get capabilities.
void nntp_acache_free(struct NntpMboxData *mdata)
Remove all temporarily cache files.
The envelope/body of an email.
enum MailboxType type
Mailbox type.
void * mdata
Driver specific data.
NNTP-specific Account data -.
NNTP-specific Mailbox data -.
char * group
Name of newsgroup.
struct NntpAccountData * adata