|
void | nntp_hashelem_free (int type, void *obj, intptr_t data) |
| Free our hash table data - Implements hash_hdata_free_t -. More...
|
|
static int | nntp_connect_error (struct NntpAccountData *adata) |
| Signal a failed connection. More...
|
|
static int | nntp_capabilities (struct NntpAccountData *adata) |
| Get capabilities. More...
|
|
static int | nntp_attempt_features (struct NntpAccountData *adata) |
| Detect supported commands. More...
|
|
static bool | nntp_memchr (char **haystack, char *sentinel, int needle) |
| Look for a char in a binary buf, conveniently. More...
|
|
static void | nntp_log_binbuf (const char *buf, size_t len, const char *pfx, int dbg) |
| Log a buffer possibly containing NUL bytes. More...
|
|
static int | nntp_auth (struct NntpAccountData *adata) |
| Get login, password and authenticate. More...
|
|
static int | nntp_query (struct NntpMboxData *mdata, char *line, size_t linelen) |
| Send data from buffer and receive answer to same buffer. More...
|
|
static int | nntp_fetch_lines (struct NntpMboxData *mdata, char *query, size_t qlen, const char *msg, int(*func)(char *, void *), void *data) |
| Read lines, calling a callback function for each. More...
|
|
static int | fetch_description (char *line, void *data) |
| Parse newsgroup description. More...
|
|
static int | get_description (struct NntpMboxData *mdata, const char *wildmat, const char *msg) |
| Fetch newsgroups descriptions. More...
|
|
static void | nntp_parse_xref (struct Mailbox *m, struct Email *e) |
| Parse cross-reference. More...
|
|
static int | fetch_tempfile (char *line, void *data) |
| Write line to temporary file. More...
|
|
static int | fetch_numbers (char *line, void *data) |
| Parse article number. More...
|
|
static int | parse_overview_line (char *line, void *data) |
| Parse overview line. More...
|
|
static int | nntp_fetch_headers (struct Mailbox *m, void *hc, anum_t first, anum_t last, bool restore) |
| Fetch headers. More...
|
|
static int | nntp_group_poll (struct NntpMboxData *mdata, bool update_stat) |
| Check newsgroup for new articles. More...
|
|
static enum MxStatus | check_mailbox (struct Mailbox *m) |
| Check current newsgroup for new articles. More...
|
|
static int | nntp_date (struct NntpAccountData *adata, time_t *now) |
| Get date and time from server. More...
|
|
static int | fetch_children (char *line, void *data) |
| Parse XPAT line. More...
|
|
int | nntp_open_connection (struct NntpAccountData *adata) |
| Connect to server, authenticate and get capabilities. More...
|
|
int | nntp_post (struct Mailbox *m, const char *msg) |
| Post article. More...
|
|
int | nntp_active_fetch (struct NntpAccountData *adata, bool mark_new) |
| Fetch list of all newsgroups from server. More...
|
|
int | nntp_check_new_groups (struct Mailbox *m, struct NntpAccountData *adata) |
| Check for new groups/articles in subscribed groups. More...
|
|
int | nntp_check_msgid (struct Mailbox *m, const char *msgid) |
| Fetch article by Message-ID. More...
|
|
int | nntp_check_children (struct Mailbox *m, const char *msgid) |
| Fetch children of article with the Message-ID. More...
|
|
int | nntp_compare_order (const struct Email *a, const struct Email *b, bool reverse) |
| Sort to mailbox order - Implements sort_mail_t -. More...
|
|
static bool | nntp_ac_owns_path (struct Account *a, const char *path) |
| Check whether an Account owns a Mailbox path - Implements MxOps::ac_owns_path() -. More...
|
|
static bool | nntp_ac_add (struct Account *a, struct Mailbox *m) |
| Add a Mailbox to an Account - Implements MxOps::ac_add() -. More...
|
|
static enum MxOpenReturns | nntp_mbox_open (struct Mailbox *m) |
| Open a Mailbox - Implements MxOps::mbox_open() -. More...
|
|
static enum MxStatus | nntp_mbox_check (struct Mailbox *m) |
| Check for new mail - Implements MxOps::mbox_check() -. More...
|
|
static enum MxStatus | nntp_mbox_sync (struct Mailbox *m) |
| Save changes to the Mailbox - Implements MxOps::mbox_sync() -. More...
|
|
static enum MxStatus | nntp_mbox_close (struct Mailbox *m) |
| Close a Mailbox - Implements MxOps::mbox_close() -. More...
|
|
static bool | nntp_msg_open (struct Mailbox *m, struct Message *msg, int msgno) |
| Open an email message in a Mailbox - Implements MxOps::msg_open() -. More...
|
|
static int | nntp_msg_close (struct Mailbox *m, struct Message *msg) |
| Close an email - Implements MxOps::msg_close() -. More...
|
|
enum MailboxType | nntp_path_probe (const char *path, const struct stat *st) |
| Is this an NNTP Mailbox? - Implements MxOps::path_probe() -. More...
|
|
static int | nntp_path_canon (char *buf, size_t buflen) |
| Canonicalise a Mailbox path - Implements MxOps::path_canon() -. More...
|
|
static int | nntp_path_pretty (char *buf, size_t buflen, const char *folder) |
| Abbreviate a Mailbox path - Implements MxOps::path_pretty() -. More...
|
|
static int | nntp_path_parent (char *buf, size_t buflen) |
| Find the parent of a Mailbox path - Implements MxOps::path_parent() -. More...
|
|
Usenet network mailbox type; talk to an NNTP server.
- Authors
- Brandon Long
- Andrej Gritsenko
- Vsevolod Volkov
- Richard Russon
- Copyright
- This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file nntp.c.