NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
DOXYGEN
config.c File Reference
#include "config.h"
#include <stddef.h>
#include <config/lib.h>
#include <stdbool.h>
#include "private.h"
#include "init.h"
+ Include dependency graph for config.c:

Go to the source code of this file.

Functions

bool config_init_nntp (struct ConfigSet *cs)
 Register nntp config variables - Implements module_init_config_t. More...
 

Variables

unsigned char C_CatchupNewsgroup
 Config: (nntp) Mark all articles as read when leaving a newsgroup. More...
 
unsigned char C_FollowupToPoster
 Config: (nntp) Reply to the poster if 'poster' is in the 'Followup-To' header. More...
 
char * C_GroupIndexFormat
 Config: (nntp) printf-like format string for the browser's display of newsgroups. More...
 
char * C_NewsCacheDir
 Config: (nntp) Directory for cached news articles. More...
 
char * C_NewsServer
 Config: (nntp) Url of the news server. More...
 
char * C_NewsgroupsCharset
 Config: (nntp) Character set of newsgroups' descriptions. More...
 
char * C_Newsrc
 Config: (nntp) File containing list of subscribed newsgroups. More...
 
char * C_NntpAuthenticators
 Config: (nntp) Allowed authentication methods. More...
 
short C_NntpContext
 Config: (nntp) Maximum number of articles to list (0 for all articles) More...
 
bool C_NntpListgroup
 Config: (nntp) Check all articles when opening a newsgroup. More...
 
bool C_NntpLoadDescription
 Config: (nntp) Load descriptions for newsgroups when adding to the list. More...
 
char * C_NntpPass
 Config: (nntp) Password for the news server. More...
 
short C_NntpPoll
 Config: (nntp) Interval between checks for new posts. More...
 
char * C_NntpUser
 Config: (nntp) Username for the news server. More...
 
unsigned char C_PostModerated
 Config: (nntp) Allow posting to moderated newsgroups. More...
 
bool C_SaveUnsubscribed
 Config: (nntp) Save a list of unsubscribed newsgroups to the 'newsrc'. More...
 
bool C_ShowNewNews
 Config: (nntp) Check for new newsgroups when entering the browser. More...
 
bool C_ShowOnlyUnread
 Config: (nntp) Only show subscribed newsgroups with unread articles. More...
 
bool C_XCommentTo
 Config: (nntp) Add 'X-Comment-To' header that contains article author. More...
 
struct ConfigDef NntpVars []
 

Detailed Description

Config used by libnntp

Authors
  • Richard Russon

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 config.c.

Function Documentation

◆ config_init_nntp()

bool config_init_nntp ( struct ConfigSet cs)

Register nntp config variables - Implements module_init_config_t.

Definition at line 124 of file config.c.

125 {
126  return cs_register_variables(cs, NntpVars, 0);
127 }
+ Here is the call graph for this function:

Variable Documentation

◆ C_CatchupNewsgroup

unsigned char C_CatchupNewsgroup

Config: (nntp) Mark all articles as read when leaving a newsgroup.

Definition at line 37 of file config.c.

◆ C_FollowupToPoster

unsigned char C_FollowupToPoster

Config: (nntp) Reply to the poster if 'poster' is in the 'Followup-To' header.

Definition at line 38 of file config.c.

◆ C_GroupIndexFormat

char* C_GroupIndexFormat

Config: (nntp) printf-like format string for the browser's display of newsgroups.

Definition at line 39 of file config.c.

◆ C_NewsCacheDir

char* C_NewsCacheDir

Config: (nntp) Directory for cached news articles.

Definition at line 40 of file config.c.

◆ C_NewsServer

char* C_NewsServer

Config: (nntp) Url of the news server.

Definition at line 41 of file config.c.

◆ C_NewsgroupsCharset

char* C_NewsgroupsCharset

Config: (nntp) Character set of newsgroups' descriptions.

Definition at line 42 of file config.c.

◆ C_Newsrc

char* C_Newsrc

Config: (nntp) File containing list of subscribed newsgroups.

Definition at line 43 of file config.c.

◆ C_NntpAuthenticators

char* C_NntpAuthenticators

Config: (nntp) Allowed authentication methods.

Definition at line 44 of file config.c.

◆ C_NntpContext

short C_NntpContext

Config: (nntp) Maximum number of articles to list (0 for all articles)

Definition at line 45 of file config.c.

◆ C_NntpListgroup

bool C_NntpListgroup

Config: (nntp) Check all articles when opening a newsgroup.

Definition at line 46 of file config.c.

◆ C_NntpLoadDescription

bool C_NntpLoadDescription

Config: (nntp) Load descriptions for newsgroups when adding to the list.

Definition at line 47 of file config.c.

◆ C_NntpPass

char* C_NntpPass

Config: (nntp) Password for the news server.

Definition at line 48 of file config.c.

◆ C_NntpPoll

short C_NntpPoll

Config: (nntp) Interval between checks for new posts.

Definition at line 49 of file config.c.

◆ C_NntpUser

char* C_NntpUser

Config: (nntp) Username for the news server.

Definition at line 50 of file config.c.

◆ C_PostModerated

unsigned char C_PostModerated

Config: (nntp) Allow posting to moderated newsgroups.

Definition at line 51 of file config.c.

◆ C_SaveUnsubscribed

bool C_SaveUnsubscribed

Config: (nntp) Save a list of unsubscribed newsgroups to the 'newsrc'.

Definition at line 52 of file config.c.

◆ C_ShowNewNews

bool C_ShowNewNews

Config: (nntp) Check for new newsgroups when entering the browser.

Definition at line 53 of file config.c.

◆ C_ShowOnlyUnread

bool C_ShowOnlyUnread

Config: (nntp) Only show subscribed newsgroups with unread articles.

Definition at line 54 of file config.c.

◆ C_XCommentTo

bool C_XCommentTo

Config: (nntp) Add 'X-Comment-To' header that contains article author.

Definition at line 55 of file config.c.

◆ NntpVars

struct ConfigDef NntpVars[]

Definition at line 58 of file config.c.

cs_register_variables
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[], uint32_t flags)
Register a set of config items.
Definition: set.c:286
NntpVars
struct ConfigDef NntpVars[]
Definition: config.c:58