42#ifndef MUTT_NNTP_LIB_H
43#define MUTT_NNTP_LIB_H
83#define NNTP_ACACHE_LEN 10
100const char *
nntp_format_str(
char *buf,
size_t buflen,
size_t col,
int cols,
char op,
const char *src,
const char *prec,
const char *if_str,
const char *else_str, intptr_t data,
MuttFormatFlags flags);
103const char *
group_index_format_str(
char *buf,
size_t buflen,
size_t col,
int cols,
char op,
const char *src,
const char *prec,
const char *if_str,
const char *else_str, intptr_t data,
MuttFormatFlags flags);
Convenience wrapper for the core headers.
const char * nntp_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Expand the newsrc filename - Implements format_t -.
const char * group_index_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Format a string for the newsgroup menu - Implements format_t -.
const struct MxOps MxNntpOps
NNTP Mailbox - Implements MxOps -.
enum MailboxType nntp_path_probe(const char *path, const struct stat *st)
Is this an NNTP Mailbox? - Implements MxOps::path_probe() -.
int nntp_compare_order(const struct Email *a, const struct Email *b, bool reverse)
Sort to mailbox order - Implements sort_mail_t -.
MailboxType
Supported mailbox formats.
int nntp_check_msgid(struct Mailbox *m, const char *msgid)
Fetch article by Message-ID.
void nntp_clear_cache(struct NntpAccountData *adata)
Clear the NNTP cache.
int nntp_check_children(struct Mailbox *m, const char *msgid)
Fetch children of article with the Message-ID.
int nntp_active_fetch(struct NntpAccountData *adata, bool mark_new)
Fetch list of all newsgroups from server.
int nntp_complete(struct Buffer *buf)
Auto-complete NNTP newsgroups.
int nntp_post(struct Mailbox *m, const char *msg)
Post article.
int nntp_newsrc_parse(struct NntpAccountData *adata)
Parse .newsrc file.
void nntp_mailbox(struct Mailbox *m, char *buf, size_t buflen)
Get first newsgroup with new messages.
void nntp_newsrc_close(struct NntpAccountData *adata)
Unlock and close .newsrc file.
struct NntpMboxData * mutt_newsgroup_catchup(struct Mailbox *m, struct NntpAccountData *adata, char *group)
Catchup newsgroup.
int nntp_newsrc_update(struct NntpAccountData *adata)
Update .newsrc file.
struct NntpMboxData * mutt_newsgroup_subscribe(struct NntpAccountData *adata, char *group)
Subscribe newsgroup.
struct NntpMboxData * mutt_newsgroup_uncatchup(struct Mailbox *m, struct NntpAccountData *adata, char *group)
Uncatchup newsgroup.
void nntp_expand_path(char *buf, size_t buflen, struct ConnAccount *acct)
Make fully qualified url from newsgroup name.
struct NntpAccountData * CurrentNewsSrv
Current NNTP news server.
struct NntpAccountData * nntp_select_server(struct Mailbox *m, const char *server, bool leave_lock)
Open a connection to an NNTP server.
struct NntpMboxData * mutt_newsgroup_unsubscribe(struct NntpAccountData *adata, char *group)
Unsubscribe newsgroup.
String manipulation buffer.
Login details for a remote server.
The envelope/body of an email.
An entry in a .newsrc (subscribed newsgroups)
anum_t last
Last article number in run.
anum_t first
First article number in run.
unsigned int index
Index number.
NNTP-specific Account data -.
NNTP-specific Mailbox data -.
char * group
Name of newsgroup.
struct NntpAccountData * adata