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

init.c File Reference
#include "tin.h"
#include "tnntp.h"
#include "trace.h"
#include "version.h"
#include "bugrep.h"
Include dependency graph for init.c:

Go to the source code of this file.

Functions

static int read_site_config (void)
 
void init_selfinfo (void)
 
void postinit_regexp (void)
 

Variables

char active_times_file [PATH_LEN]
 
char article_name [PATH_LEN]
 
char bug_nntpserver1 [PATH_LEN]
 
char bug_nntpserver2 [PATH_LEN]
 
char cvers [LEN]
 
char dead_article [PATH_LEN]
 
char dead_articles [PATH_LEN]
 
char default_organization [PATH_LEN]
 
char default_signature [PATH_LEN]
 
char domain_name [MAXHOSTNAMELEN+1]
 
char global_attributes_file [PATH_LEN]
 
char global_config_file [PATH_LEN]
 
char homedir [PATH_LEN]
 
char index_maildir [PATH_LEN]
 
char index_newsdir [PATH_LEN]
 
char index_savedir [PATH_LEN]
 
char inewsdir [PATH_LEN]
 
char local_attributes_file [PATH_LEN]
 
char local_config_file [PATH_LEN]
 
char local_input_history_file [PATH_LEN]
 
char local_newsgroups_file [PATH_LEN]
 
char local_newsrctable_file [PATH_LEN]
 
char lock_file [PATH_LEN]
 
char filter_file [PATH_LEN]
 
char mail_news_user [LEN]
 
char mailbox [PATH_LEN]
 
char mailer [PATH_LEN]
 
char newnewsrc [PATH_LEN]
 
char news_active_file [PATH_LEN]
 
char newsgroups_file [PATH_LEN]
 
char newsrc [PATH_LEN]
 
char page_header [LEN]
 
char posted_info_file [PATH_LEN]
 
char postponed_articles_file [PATH_LEN]
 
char rcdir [PATH_LEN]
 
char save_active_file [PATH_LEN]
 
char spooldir [PATH_LEN]
 
char overviewfmt_file [PATH_LEN]
 
char subscriptions_file [PATH_LEN]
 
char * tin_progname
 
char txt_help_bug_report [LEN]
 
char userid [PATH_LEN]
 
char novfilename [NAME_LEN+1]
 
char novrootdir [PATH_LEN]
 
t_function last_search = GLOBAL_SEARCH_REPEAT
 
int hist_last [HIST_MAXNUM+1]
 
int hist_pos [HIST_MAXNUM+1]
 
int iso2asc_supported
 
int system_status
 
int xmouse
 
int xrow
 
int xcol
 
pid_t process_id
 
t_bool batch_mode
 
t_bool check_for_new_newsgroups
 
t_bool cmd_line
 
t_bool created_rcdir
 
t_bool dangerous_signal_exit
 
t_bool disable_gnksa_domain_check
 
t_bool disable_sender
 
t_bool force_no_post = FALSE
 
t_bool list_active
 
t_bool newsrc_active
 
t_bool no_write = FALSE
 
t_bool post_article_and_exit
 
t_bool post_postponed_and_exit
 
t_bool range_active
 
t_bool reread_active_for_posted_arts
 
t_bool read_local_newsgroups_file
 
t_bool read_news_via_nntp = FALSE
 
t_bool read_saved_news = FALSE
 
t_bool show_description = TRUE
 
int verbose = 0
 
t_bool word_highlight
 
t_bool xref_supported = TRUE
 
t_menucurrmenu
 
char * input_history [HIST_MAXNUM+1][HIST_SIZE+1]
 
struct regex_cache strip_re_regex strip_was_regex uubegin_regex uubody_regex verbatim_begin_regex verbatim_end_regex url_regex mail_regex news_regex shar_regex slashes_regex stars_regex underscores_regex strokes_regex
 
struct t_cmdlineopts cmdline
 
struct t_config tinrc
 
struct t_capabilities nntp_caps
 
static char libdir [PATH_LEN]
 
static mode_t real_umask
 

Function Documentation

◆ init_selfinfo()

void init_selfinfo ( void  )

Definition at line 646 of file init.c.

References _, ACTIVE_FILE, ACTIVE_MAIL_FILE, ACTIVE_SAVE_FILE, active_times_file, ACTIVE_TIMES_FILE, article_name, atoi(), ATTRIBUTES_FILE, batch_mode, buf, bug_addr, bug_nntpserver1, bug_nntpserver2, BUG_REPORT_ADDRESS, check_for_new_newsgroups, CONFIG_FILE, created_rcdir, cvers, dangerous_signal_exit, dead_article, dead_articles, DEFAULT_ISO2ASC, DEFAULT_MAILBOX, DEFAULT_MAILDIR, DEFAULT_MAILER, default_organization, DEFAULT_PRINTER, DEFAULT_SAVEDIR, default_signature, disable_gnksa_domain_check, disable_sender, domain_name, ENV_VAR_MAILER, error_message(), FALSE, filter_file, FILTER_FILE, force_no_post, force_reread_active_file, get_domain_name(), get_fqdn(), get_host_name(), get_val(), giveup(), global_attributes_file, global_config_file, homedir, INDEX_LOCK, index_maildir, INDEX_MAILDIR, index_newsdir, INDEX_NEWSDIR, index_savedir, INDEX_SAVEDIR, t_config::inews_prog, inewsdir, init_postinfo(), INPUT_HISTORY_FILE, iso2asc_supported, joinpath(), LEN, libdir, list_active, local_attributes_file, local_config_file, local_input_history_file, local_newsrctable_file, lock_file, mailbox, t_config::maildir, mailer, t_config::mailer_format, MAILER_FORMAT, match_list(), MAXHOSTNAMELEN, t_config::mm_charset, MM_CHARSET, my_malloc, my_mkdir(), my_strncpy(), newnewsrc, NEWNEWSRC_FILE, news_active_file, newsgroups_file, NEWSGROUPS_FILE, newsrc, newsrc_active, NEWSRC_FILE, NEWSRCTABLE_FILE, NNTP_TCP_PORT, novfilename, novrootdir, NUM_ISO_TABLES, OVERVIEW_FILE, OVERVIEW_FMT, overviewfmt_file, page_header, PATH_LEN, post_article_and_exit, post_postponed_and_exit, POSTED_FILE, posted_info_file, postponed_articles_file, POSTPONED_FILE, t_config::printer, process_id, PRODUCT, rcdir, RCDIR, read_local_newsgroups_file, read_site_config(), real_umask, RELEASEDATE, RELEASENAME, reread_active_for_posted_arts, S_IRUSR, S_IRWXU, S_IWUSR, save_active_file, t_config::savedir, t_config::sigfile, snprintf, spooldir, STRCPY, subscriptions_file, SUBSCRIPTIONS_FILE, TIN_ARTICLE_NAME, tin_progname, tinrc, TMPDIR, TRUE, txt_copyright_notice, txt_error_no_domain_name, txt_error_passwd_missing, txt_help_bug, txt_help_bug_report, txt_posted_info_file, userid, VERSION, and word_highlight.

Referenced by main().

◆ postinit_regexp()

◆ read_site_config()

Variable Documentation

◆ active_times_file

char active_times_file[PATH_LEN]

Definition at line 66 of file init.c.

Referenced by init_selfinfo(), open_newgroups_fp(), and read_site_config().

◆ article_name

◆ batch_mode

◆ bug_nntpserver1

char bug_nntpserver1[PATH_LEN]

Definition at line 68 of file init.c.

Referenced by init_selfinfo(), mail_bug_report(), and nntp_open().

◆ bug_nntpserver2

char bug_nntpserver2[PATH_LEN]

Definition at line 69 of file init.c.

Referenced by init_selfinfo(), mail_bug_report(), and nntp_open().

◆ check_for_new_newsgroups

t_bool check_for_new_newsgroups

Definition at line 127 of file init.c.

Referenced by init_selfinfo(), nntp_open(), read_cmd_line_options(), and read_news_active_file().

◆ cmd_line

◆ cmdline

◆ created_rcdir

t_bool created_rcdir

Definition at line 129 of file init.c.

Referenced by init_selfinfo(), and main().

◆ currmenu

◆ cvers

char cvers[LEN]

◆ dangerous_signal_exit

t_bool dangerous_signal_exit

Definition at line 130 of file init.c.

Referenced by init_selfinfo(), and signal_handler().

◆ dead_article

char dead_article[PATH_LEN]

Definition at line 71 of file init.c.

Referenced by init_selfinfo(), and post_loop().

◆ dead_articles

char dead_articles[PATH_LEN]

Definition at line 72 of file init.c.

Referenced by init_selfinfo(), and post_loop().

◆ default_organization

char default_organization[PATH_LEN]

◆ default_signature

char default_signature[PATH_LEN]

Definition at line 74 of file init.c.

Referenced by init_selfinfo(), and msg_write_signature().

◆ disable_gnksa_domain_check

t_bool disable_gnksa_domain_check

◆ disable_sender

t_bool disable_sender

Definition at line 132 of file init.c.

Referenced by init_selfinfo(), and read_site_config().

◆ domain_name

char domain_name[MAXHOSTNAMELEN+1]

Definition at line 75 of file init.c.

Referenced by get_from_name(), init_selfinfo(), and read_site_config().

◆ filter_file

◆ force_no_post

t_bool force_no_post = FALSE

Definition at line 136 of file init.c.

Referenced by init_selfinfo(), nntp_open(), and read_cmd_line_options().

◆ global_attributes_file

char global_attributes_file[PATH_LEN]

Definition at line 76 of file init.c.

Referenced by init_selfinfo(), and read_attributes_file().

◆ global_config_file

char global_config_file[PATH_LEN]

Definition at line 77 of file init.c.

Referenced by init_selfinfo(), and main().

◆ hist_last

int hist_last[HIST_MAXNUM+1]

Definition at line 118 of file init.c.

Referenced by hist_add(), hist_next(), hist_prev(), and read_input_history_file().

◆ hist_pos

int hist_pos[HIST_MAXNUM+1]

Definition at line 119 of file init.c.

Referenced by hist_add(), hist_next(), hist_prev(), and read_input_history_file().

◆ homedir

◆ index_maildir

char index_maildir[PATH_LEN]

Definition at line 79 of file init.c.

Referenced by find_nov_file(), and init_selfinfo().

◆ index_newsdir

char index_newsdir[PATH_LEN]

Definition at line 80 of file init.c.

Referenced by find_nov_file(), init_selfinfo(), read_cmd_line_options(), and usage().

◆ index_savedir

char index_savedir[PATH_LEN]

Definition at line 81 of file init.c.

Referenced by find_nov_file(), and init_selfinfo().

◆ inewsdir

char inewsdir[PATH_LEN]

Definition at line 82 of file init.c.

Referenced by init_selfinfo(), read_site_config(), and submit_news_file().

◆ input_history

char* input_history[HIST_MAXNUM+1][HIST_SIZE+1]

◆ iso2asc_supported

int iso2asc_supported

Definition at line 120 of file init.c.

Referenced by convert_tex2iso(), init_selfinfo(), and process_charsets().

◆ last_search

◆ libdir

char libdir[PATH_LEN]
static

Definition at line 561 of file init.c.

Referenced by init_selfinfo(), and read_site_config().

◆ list_active

◆ local_attributes_file

char local_attributes_file[PATH_LEN]

Definition at line 83 of file init.c.

Referenced by config_page(), init_selfinfo(), read_attributes_file(), and scope_page().

◆ local_config_file

char local_config_file[PATH_LEN]

Definition at line 84 of file init.c.

Referenced by config_page(), init_selfinfo(), main(), select_done(), and select_quit().

◆ local_input_history_file

char local_input_history_file[PATH_LEN]

Definition at line 85 of file init.c.

Referenced by init_selfinfo(), read_input_history_file(), and write_input_history_file().

◆ local_newsgroups_file

char local_newsgroups_file[PATH_LEN]

Definition at line 86 of file init.c.

Referenced by find_nov_file(), open_newsgroups_fp(), read_newsgroups_file(), and read_server_config().

◆ local_newsrctable_file

char local_newsrctable_file[PATH_LEN]

Definition at line 87 of file init.c.

Referenced by get_newsrcname(), init_selfinfo(), and write_newsrctable_file().

◆ lock_file

char lock_file[PATH_LEN]

Definition at line 88 of file init.c.

Referenced by cleanup_tmp_files(), init_selfinfo(), and update_index_files().

◆ mail_news_user

char mail_news_user[LEN]

Definition at line 90 of file init.c.

Referenced by check_start_save_any_news(), and read_cmd_line_options().

◆ mailbox

char mailbox[PATH_LEN]

Definition at line 91 of file init.c.

Referenced by feed_articles(), init_selfinfo(), print_save_summary(), and show_title().

◆ mailer

◆ newnewsrc

char newnewsrc[PATH_LEN]

◆ news_active_file

◆ newsgroups_file

char newsgroups_file[PATH_LEN]

Definition at line 95 of file init.c.

Referenced by init_selfinfo(), open_newsgroups_fp(), and read_site_config().

◆ newsrc

◆ newsrc_active

◆ nntp_caps

◆ no_write

◆ novfilename

char novfilename[NAME_LEN+1]

Definition at line 113 of file init.c.

Referenced by find_nov_file(), init_selfinfo(), and read_site_config().

◆ novrootdir

char novrootdir[PATH_LEN]

Definition at line 114 of file init.c.

Referenced by find_nov_file(), init_selfinfo(), and read_site_config().

◆ overviewfmt_file

char overviewfmt_file[PATH_LEN]

Definition at line 103 of file init.c.

Referenced by init_selfinfo(), open_overview_fmt_fp(), and read_site_config().

◆ page_header

char page_header[LEN]

Definition at line 97 of file init.c.

Referenced by init_selfinfo(), and mail_bug_report().

◆ post_article_and_exit

t_bool post_article_and_exit

◆ post_postponed_and_exit

t_bool post_postponed_and_exit

◆ posted_info_file

char posted_info_file[PATH_LEN]

Definition at line 98 of file init.c.

Referenced by init_selfinfo(), update_posted_info_file(), and user_posted_messages().

◆ postponed_articles_file

◆ process_id

◆ range_active

t_bool range_active

Definition at line 147 of file init.c.

Referenced by feed_articles(), get_feed_key(), group_page(), and thread_page().

◆ rcdir

◆ read_local_newsgroups_file

t_bool read_local_newsgroups_file

◆ read_news_via_nntp

◆ read_saved_news

◆ real_umask

mode_t real_umask
static

Definition at line 562 of file init.c.

Referenced by init_selfinfo().

◆ reread_active_for_posted_arts

t_bool reread_active_for_posted_arts

◆ save_active_file

char save_active_file[PATH_LEN]

Definition at line 101 of file init.c.

Referenced by init_selfinfo(), and read_cmd_line_options().

◆ show_description

◆ spooldir

char spooldir[PATH_LEN]

◆ strokes_regex

◆ subscriptions_file

char subscriptions_file[PATH_LEN]

Definition at line 104 of file init.c.

Referenced by init_selfinfo(), open_subscription_fp(), and read_site_config().

◆ system_status

int system_status

Definition at line 121 of file init.c.

Referenced by invoke_cmd(), and signal_handler().

◆ tin_progname

◆ tinrc

struct t_config tinrc

Definition at line 191 of file init.c.

Referenced by add_filter_rule(), add_mail_quote(), append_mail(), art_open(), attachment_page(), body_search(), build_gline(), build_scope_line(), build_sline(), build_tline(), check_article_to_be_posted(), check_for_spamtrap(), check_score_defaults(), check_start_save_any_news(), checknadd_headers(), choose_new_group(), ClearScreen(), compose_mail_mime_forwarded(), compose_mail_text_plain(), config_page(), copy_body(), create_mail_headers(), create_mail_save_dirs(), create_normal_article_headers(), create_save_active_file(), decode_value(), do_rfc15211522_encode(), draw_arrow_mark(), draw_attachment_arrow(), draw_group_arrow(), draw_mark_selected(), draw_page(), draw_page_header(), draw_pager_line(), draw_percent_mark(), draw_subject_arrow(), draw_thread_arrow(), draw_url_arrow(), EndInverse(), erase_arrow(), feed_article(), feed_articles(), fetch_postponed_article(), filter_articles(), filter_menu(), find_base(), find_nov_file(), free_attributes(), generic_search(), get_art_mark(), get_feed_key(), get_save_filename(), get_score_of_thread(), get_search_pattern(), get_termcaps(), group_page(), group_rehash(), highlight_regexes(), index_group(), info_message(), info_pager(), init_selfinfo(), insert_from_header(), invoke_editor(), invoke_metamail(), load_article(), mail_bug_report(), mail_to_author(), mail_to_someone(), main(), make_threads(), mark_screen(), match_regex(), msg_write_signature(), need_reread_active_file(), nntp_open(), open_save_filename(), option_is_visible(), page_down(), page_up(), parse_format_string(), pipe_part(), post_loop(), post_process_files(), post_response(), postinit_regexp(), print_any_option(), print_art_separator_line(), print_from(), print_message_page(), print_save_summary(), process_bogus(), process_part(), process_text_body_part(), process_url(), prompt_getart_limit(), put_cooked(), quick_filter(), quick_filter_select_posted_art(), quick_post_article(), quote_wild(), quote_wild_whitespace(), rc_post_update(), rc_update(), read_cmd_line_groups(), read_config_file(), read_filter_file(), read_groups_descriptions(), read_site_config(), reposition_group(), reset_state(), resync_active_file(), rfc1522_decode(), save_and_process_art(), scroll_page(), search(), search_active(), search_article(), search_body(), search_config(), search_group(), selection_page(), set_default_attributes(), set_keypad_off(), set_keypad_on(), set_noteslines(), set_range(), set_xclick_off(), set_xclick_on(), setup_hard_base(), setup_screen(), shell_escape(), show_group_title(), show_inverse_video_status(), show_mini_help(), show_page(), show_progress(), show_selection_page(), show_title(), signal_handler(), spin_cursor(), StartInverse(), stat_thread(), strfmailer(), submit_mail_file(), submit_news_file(), tag_pattern(), test_regex(), thread_page(), tin_done(), toggle_inverse_video(), toggle_mini_help(), toggle_my_groups(), update_group_page(), update_index_files(), update_thread_page(), url_page(), usage(), wait_message(), word_highlight_string(), write_config_file(), write_filter_array(), write_newsrc_line(), and write_overview().

◆ txt_help_bug_report

char txt_help_bug_report[LEN]

Definition at line 106 of file init.c.

Referenced by init_selfinfo().

◆ userid

◆ verbose

◆ word_highlight

t_bool word_highlight

Definition at line 154 of file init.c.

Referenced by config_page(), init_selfinfo(), print_message_page(), read_config_file(), and show_page().

◆ xcol

int xcol

Definition at line 122 of file init.c.

Referenced by get_arrow_key().

◆ xmouse

int xmouse

Definition at line 122 of file init.c.

Referenced by get_arrow_key(), global_mouse_action(), and page_mouse_action().

◆ xref_supported

t_bool xref_supported = TRUE

Definition at line 155 of file init.c.

Referenced by main(), and read_overview().

◆ xrow

int xrow

Definition at line 122 of file init.c.

Referenced by get_arrow_key(), and global_mouse_action().