Usenet network mailbox type; talk to an NNTP server. More...
Include dependency graph for private.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | NNTP_PORT 119 |
| #define | NNTP_SSL_PORT 563 |
Enumerations | |
| enum | NntpStatus { NNTP_NONE = 0 , NNTP_OK , NNTP_BYE } |
| NNTP server return values. More... | |
Functions | |
| void | nntp_acache_free (struct NntpMboxData *mdata) |
| Remove all temporarily cache files. | |
| int | nntp_active_save_cache (struct NntpAccountData *adata) |
| Save list of all newsgroups to cache. | |
| int | nntp_add_group (char *line, void *data) |
| Parse newsgroup. | |
| void | nntp_article_status (struct Mailbox *m, struct Email *e, char *group, anum_t anum) |
| Get status of articles from .newsrc. | |
| void | nntp_bcache_update (struct NntpMboxData *mdata) |
| Remove stale cached messages. | |
| int | nntp_check_new_groups (struct Mailbox *m, struct NntpAccountData *adata) |
| Check for new groups/articles in subscribed groups. | |
| void | nntp_delete_group_cache (struct NntpMboxData *mdata) |
| Remove hcache and bcache of newsgroup. | |
| void | nntp_group_unread_stat (struct NntpMboxData *mdata) |
| Count number of unread articles using .newsrc data. | |
| void | nntp_hash_destructor_t (int type, void *obj, intptr_t data) |
| 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_hcache_update (struct NntpMboxData *mdata, struct HeaderCache *hc) |
| Remove stale cached headers. | |
| void | nntp_newsrc_gen_entries (struct Mailbox *m) |
| Generate array of .newsrc entries. | |
| int | nntp_open_connection (struct NntpAccountData *adata) |
| Connect to server, authenticate and get capabilities. | |
Usenet network mailbox type; talk to an NNTP server.
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 private.h.
| enum NntpStatus |
| void nntp_acache_free | ( | struct NntpMboxData * | mdata | ) |
| int nntp_active_save_cache | ( | struct NntpAccountData * | adata | ) |
Save list of all newsgroups to cache.
| adata | NNTP server |
| 0 | Success |
| -1 | Failure |
Definition at line 647 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int nntp_add_group | ( | char * | line, |
| void * | data ) |
Parse newsgroup.
| line | String to parse |
| data | NNTP data |
| 0 | Always |
Definition at line 572 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:Get status of articles from .newsrc.
Full status flags are not supported by nntp, but we can fake some of them: Read = a read message number is in the .newsrc New = not read and not cached Old = not read but cached
Definition at line 1138 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nntp_bcache_update | ( | struct NntpMboxData * | mdata | ) |
Remove stale cached messages.
| mdata | NNTP Mailbox data |
Definition at line 799 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int nntp_check_new_groups | ( | struct Mailbox * | m, |
| struct NntpAccountData * | adata ) |
Check for new groups/articles in subscribed groups.
| m | Mailbox |
| adata | NNTP server |
| 1 | New groups found |
| 0 | No new groups |
| -1 | Error |
Definition at line 2104 of file nntp.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nntp_delete_group_cache | ( | struct NntpMboxData * | mdata | ) |
Remove hcache and bcache of newsgroup.
| mdata | NNTP Mailbox data |
Definition at line 808 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nntp_group_unread_stat | ( | struct NntpMboxData * | mdata | ) |
Count number of unread articles using .newsrc data.
| mdata | NNTP Mailbox data |
Definition at line 134 of file newsrc.c.
Here is the caller graph for this function:| void nntp_hash_destructor_t | ( | int | type, |
| void * | obj, | ||
| intptr_t | data ) |
| struct HeaderCache * nntp_hcache_open | ( | struct NntpMboxData * | mdata | ) |
Open newsgroup hcache.
| mdata | NNTP Mailbox data |
| ptr | Header cache |
| NULL | Error |
Definition at line 707 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nntp_hcache_update | ( | struct NntpMboxData * | mdata, |
| struct HeaderCache * | hc ) |
Remove stale cached headers.
| mdata | NNTP Mailbox data |
| hc | Header cache |
Definition at line 731 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void nntp_newsrc_gen_entries | ( | struct Mailbox * | m | ) |
Generate array of .newsrc entries.
| m | Mailbox |
Definition at line 301 of file newsrc.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int nntp_open_connection | ( | struct NntpAccountData * | adata | ) |
Connect to server, authenticate and get capabilities.
| adata | NNTP server |
| 0 | Success |
| -1 | Failure |
Definition at line 1765 of file nntp.c.
Here is the call graph for this function:
Here is the caller graph for this function: