2 * Copyright notice from original mutt:
3 * Copyright (C) 1998 Brandon Long <blong@fiction.net>
4 * Copyright (C) 1999 Andrej Gritsenko <andrej@lucky.net>
5 * Copyright (C) 2000-2002 Vsevolod Volkov <vvv@mutt.org.ua>
7 * This file is part of mutt-ng, see http://www.muttng.org/.
8 * It's licensed under the GNU General Public License,
9 * please see the file GPL in the top level source directory.
15 #include <lib-sys/mutt_socket.h>
16 #include <lib-mx/mx.h>
18 extern mx_t const nntp_mx;
20 /* number of entries in the hash table */
21 #define NNTP_CACHE_LEN 10
30 unsigned feat_known : 1;
32 unsigned hasXGTITLE : 1;
33 unsigned hasXOVER : 1;
34 unsigned hasLISTGROUP : 1;
41 time_t newgroups_time;
44 string_list_t *list; /* list of newsgroups */
45 string_list_t **tail; /* last entry of list */
60 NEWSRC_ENTRY *entries;
61 int num; /* number of used entries */
62 int max; /* number of allocated entries */
68 unsigned subscribed:1;
77 NNTP_CACHE acache[NNTP_CACHE_LEN];
80 NNTP_SERVER *mutt_select_newsserver (char *);
81 NNTP_DATA *mutt_newsgroup_subscribe (NNTP_SERVER *, char *);
82 NNTP_DATA *mutt_newsgroup_unsubscribe (NNTP_SERVER *, char *);
83 NNTP_DATA *mutt_newsgroup_catchup (NNTP_SERVER *, char *);
84 NNTP_DATA *mutt_newsgroup_uncatchup (NNTP_SERVER *, char *);
85 void nntp_clear_cacheindex (NNTP_SERVER *);
86 int mutt_newsrc_update (NNTP_SERVER *);
87 int nntp_close_mailbox (CONTEXT *);
88 int nntp_fetch_message (MESSAGE *, CONTEXT *, int);
89 int nntp_post (const char *);
90 int nntp_check_msgid (CONTEXT *, const char *);
91 int nntp_check_children (CONTEXT *, const char *);
92 int nntp_get_active (NNTP_SERVER *);
93 void nntp_buffy (char* dst, ssize_t dstlen);
94 void nntp_expand_path (char *, ssize_t, ACCOUNT *);
95 void nntp_logout_all(void);
96 const char *nntp_format_str(char *, ssize_t, char, const char *, const char *,
97 const char *, const char *, anytype, format_flag);
98 void nntp_sync_sidebar (NNTP_DATA*);
100 WHERE NNTP_SERVER *CurrentNewsSrv INITVAL (NULL);
102 #endif /* _NNTP_H_ */