tin  2.4.5
About: TIN is a threaded NNTP and spool based UseNet newsreader.
  Fossies Dox: tin-2.4.5.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

main.c File Reference
#include "tin.h"
#include "tcurses.h"
#include "version.h"
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define OPTIONS   "46aAcdD:f:g:G:hHI:lm:M:nNop:qQrRs:SuvVwxXzZ"
 

Functions

static void create_mail_save_dirs (void)
 
static void read_cmd_line_options (int argc, char *argv[])
 
static void show_intro_page (void)
 
static void update_index_files (void)
 
static void usage (char *theProgname)
 
int main (int argc, char *argv[])
 
int read_cmd_line_groups (void)
 
void giveup (void)
 

Variables

signed long int read_newsrc_lines = -1
 
static char ** cmdargs
 
static int num_cmdargs
 
static int max_cmdargs
 
static t_bool catchup = 0
 
static t_bool update_index = 0
 
static t_bool check_any_unread = 0
 
static t_bool mail_news = 0
 
static t_bool save_news = 0
 
static t_bool start_any_unread = 0
 

Macro Definition Documentation

◆ OPTIONS

#define OPTIONS   "46aAcdD:f:g:G:hHI:lm:M:nNop:qQrRs:SuvVwxXzZ"

Definition at line 452 of file main.c.

Function Documentation

◆ create_mail_save_dirs()

static void create_mail_save_dirs ( void  )
static

◆ giveup()

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 79 of file main.c.

References _, backup_newsrc(), base_name(), batch_mode, bindtextdomain, t_config::cache_overview_files, catchup, catchup_newsrc_file(), cCOLS, CHECK_ANY_NEWS, check_any_unread, check_start_save_any_news(), cmd_line, CODESET, count_postponed_articles(), create_mail_save_dirs(), create_save_active_file(), created_rcdir, cvers, debug, DEBUG_FILTER, DEBUG_MISC, EndInverse(), error_message(), EXIT_SUCCESS, FALSE, filter_file, free_all_arrays(), get_termcaps(), getserverbyfile(), giveup(), global_config_file, hash_init(), init_alloc(), init_group_hash(), init_selfinfo(), InitScreen(), local_config_file, LOCALEDIR, MAIL_ANY_NEWS, mail_news, t_menu::max, t_config::mm_local_charset, my_malloc, newsrc, nntp_caps, nntp_close(), nntp_open(), nntp_server, NNTP_SERVER_FILE, no_write, t_capabilities::over_cmd, overview_xref_support(), PLURAL, post_article_and_exit, post_postponed_and_exit, postinit_regexp(), print_boolean(), quick_post_article(), read_attributes_file(), read_cmd_line_groups(), read_cmd_line_options(), read_config_file(), read_descriptions(), read_filter_file(), read_input_history_file(), read_keymap_file(), read_news_active_file(), read_news_via_nntp, read_newsrc(), read_newsrc_lines, read_saved_news, read_server_config(), SAVE_ANY_NEWS, save_news, selection_page(), selmenu, set_signal_handlers(), setlocale, setup_default_keys(), setup_screen(), show_description, show_intro_page(), t_config::show_only_unread_groups, START_ANY_NEWS, start_any_unread, strcasecmp(), STRCPY, textdomain, tin_done(), tin_nl_langinfo(), tin_progname, tinrc, toggle_my_groups(), TRUE, txt_batch_update_unavail, txt_exiting, txt_info_postponed, txt_option_not_enabled, txt_reading_keymap_file, txt_screen_init_failed, update_index, update_index_files(), verbose, wait_message(), write_config_file(), and xref_supported.

◆ read_cmd_line_groups()

◆ read_cmd_line_options()

◆ show_intro_page()

static void show_intro_page ( void  )
static

◆ update_index_files()

◆ usage()

Variable Documentation

◆ catchup

◆ check_any_unread

t_bool check_any_unread = 0
static

Definition at line 59 of file main.c.

Referenced by main(), and read_cmd_line_options().

◆ cmdargs

char** cmdargs
static

Definition at line 53 of file main.c.

Referenced by read_cmd_line_groups(), and read_cmd_line_options().

◆ mail_news

t_bool mail_news = 0
static

Definition at line 60 of file main.c.

Referenced by main(), and read_cmd_line_options().

◆ max_cmdargs

int max_cmdargs
static

Definition at line 55 of file main.c.

Referenced by read_cmd_line_groups(), and read_cmd_line_options().

◆ num_cmdargs

int num_cmdargs
static

Definition at line 54 of file main.c.

Referenced by read_cmd_line_groups(), and read_cmd_line_options().

◆ read_newsrc_lines

signed long int read_newsrc_lines = -1

Definition at line 51 of file main.c.

Referenced by main(), and tin_done().

◆ save_news

t_bool save_news = 0
static

Definition at line 61 of file main.c.

Referenced by main(), and read_cmd_line_options().

◆ start_any_unread

t_bool start_any_unread = 0
static

Definition at line 62 of file main.c.

Referenced by main(), and read_cmd_line_options().

◆ update_index

t_bool update_index = 0
static

Definition at line 58 of file main.c.

Referenced by main(), and read_cmd_line_options().