2 // Header file for NNTP server module
4 // Copyright (c) 2014 by the citadel.org team
6 // This program is open source software; you can redistribute it and/or modify
7 // it under the terms of the GNU General Public License version 3.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
16 // data returned by a message list fetch
23 // data passed by the LIST commands to its helper function
24 struct nntp_list_data {
26 char *wildmat_pattern;
31 // data passed between nntp_listgroup() and nntp_listgroup_backend()
33 struct listgroup_range {
39 typedef struct _citnntp { // Information about the current session
40 long current_article_number;
45 // Various output formats for the LIST commands
49 NNTP_LIST_ACTIVE_TIMES,
50 NNTP_LIST_DISTRIB_PATS,
53 NNTP_LIST_OVERVIEW_FMT
57 int wildmat(const char *text, const char *p);