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)  

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

Go to the source code of this file.

Functions

static int do_search (t_function func, t_bool repeat)
 
static int enter_pager (int art, t_bool ignore_unavail)
 
static int enter_thread (int depth, t_pagerinfo *page)
 
static int find_new_pos (long old_artnum, int cur_pos)
 
static int group_catchup (t_function func)
 
static int tab_pressed (void)
 
static t_bool prompt_getart_limit (void)
 
static t_function group_left (void)
 
static t_function group_right (void)
 
static void build_sline (int i)
 
static void build_multipart_header (char *dest, int maxlen, const char *src, int cmplen, int have, int total)
 
static void draw_subject_arrow (void)
 
static void show_group_title (t_bool clear_title)
 
static void show_tagged_lines (void)
 
static void toggle_read_unread (t_bool force)
 
static void update_group_page (void)
 
int group_page (struct t_group *group)
 
void show_group_page (void)
 
void clear_note_area (void)
 
void pos_first_unread_thread (void)
 
void mark_screen (int screen_row, int screen_col, const char *value)
 
t_bool group_mark_postprocess (int function, t_function feed_type, int respnum)
 

Variables

struct t_groupcurr_group
 
static struct t_fmt grp_fmt
 
t_menu grpmenu = { 0, 0, 0, show_group_page, draw_subject_arrow, build_sline }
 
static int ret_code = 0
 

Function Documentation

◆ build_multipart_header()

static void build_multipart_header ( char *  dest,
int  maxlen,
const char *  src,
int  cmplen,
int  have,
int  total 
)
static

Definition at line 1122 of file group.c.

References snprintf, and t_art_stat::total.

Referenced by build_sline().

◆ build_sline()

◆ clear_note_area()

void clear_note_area ( void  )

◆ do_search()

static int do_search ( t_function  func,
t_bool  repeat 
)
static

◆ draw_subject_arrow()

◆ enter_pager()

static int enter_pager ( int  art,
t_bool  ignore_unavail 
)
static

Definition at line 1517 of file group.c.

References t_pagerinfo::art, art, enter_thread(), and t_pagerinfo::ignore_unavail.

Referenced by group_page(), group_right(), and tab_pressed().

◆ enter_thread()

◆ find_new_pos()

static int find_new_pos ( long  old_artnum,
int  cur_pos 
)
static

Definition at line 1054 of file group.c.

References find_artnum(), grpmenu, t_menu::max, and which_thread().

Referenced by group_page().

◆ group_catchup()

◆ group_left()

static t_function group_left ( void  )
static

◆ group_mark_postprocess()

t_bool group_mark_postprocess ( int  function,
t_function  feed_type,
int  respnum 
)

◆ group_page()

int group_page ( struct t_group group)

Definition at line 142 of file group.c.

References _, t_cmdlineopts::args, art, ART_ABORT, art_close(), art_mark(), t_art_stat::art_mark, art_open(), ART_UNAVAILABLE, ART_WILL_RETURN, t_article::artnum, arts, assert, t_group::attribute, t_attribute::auto_select, base, bool_not, bug_report(), build_sline(), can_post, cancel_article(), CATCHUP, CATCHUP_NEXT_UNREAD, choose_new_group(), clear_message(), clear_note_area(), cmdline, CMDLINE_GETART_LIMIT, compile_regex(), config_page(), t_menu::curr, curr_group, cvers, debug, DEBUG_NEWSRC, t_config::default_select_pattern, DIGIT_1, DIGIT_2, DIGIT_3, DIGIT_4, DIGIT_5, DIGIT_6, DIGIT_7, DIGIT_8, DIGIT_9, do_auto_select_arts(), do_search(), do_shell_escape(), draw_subject_arrow(), end_of_list(), enter_pager(), enter_thread(), error_message(), regex_cache::extra, FALSE, feed_articles(), FEED_AUTOSAVE, FEED_MAIL, FEED_MARK_READ, FEED_MARK_UNREAD, FEED_PIPE, FEED_PRINT, FEED_RANGE, FEED_REPOST, FEED_SAVE, FEED_THREAD, filter_articles(), filter_file, filter_file_offset, filter_menu(), find_base(), find_new_pos(), t_menu::first, fmt_string(), for_each_art, for_each_art_in_thread, FreeAndNull, FreeIfNeeded, func, func_to_key(), GLOBAL_ABORT, GLOBAL_BUGREPORT, GLOBAL_DISPLAY_POST_HISTORY, GLOBAL_EDIT_FILTER, GLOBAL_FIRST_PAGE, GLOBAL_HELP, GLOBAL_LAST_PAGE, GLOBAL_LAST_VIEWED, GLOBAL_LINE_DOWN, GLOBAL_LINE_UP, GLOBAL_LOOKUP_MESSAGEID, GLOBAL_MENU_FILTER_KILL, GLOBAL_MENU_FILTER_SELECT, global_mouse_action(), GLOBAL_OPTION_MENU, GLOBAL_PAGE_DOWN, GLOBAL_PAGE_UP, GLOBAL_PIPE, GLOBAL_POST, GLOBAL_POSTPONED, GLOBAL_PRINT, GLOBAL_QUICK_FILTER_KILL, GLOBAL_QUICK_FILTER_SELECT, GLOBAL_QUIT, GLOBAL_QUIT_TIN, GLOBAL_REDRAW_SCREEN, GLOBAL_SCROLL_DOWN, GLOBAL_SCROLL_UP, GLOBAL_SEARCH_AUTHOR_BACKWARD, GLOBAL_SEARCH_AUTHOR_FORWARD, GLOBAL_SEARCH_BODY, GLOBAL_SEARCH_REPEAT, GLOBAL_SEARCH_SUBJECT_BACKWARD, GLOBAL_SEARCH_SUBJECT_FORWARD, GLOBAL_SET_RANGE, GLOBAL_SHELL_ESCAPE, GLOBAL_TOGGLE_HELP_DISPLAY, GLOBAL_TOGGLE_INFO_LAST_LINE, GLOBAL_TOGGLE_INVERSE_VIDEO, GLOBAL_VERSION, GROUP_AUTOSAVE, GROUP_CANCEL, group_catchup(), GROUP_DO_AUTOSELECT, GROUP_GOTO, group_keys, group_left(), GROUP_LEVEL, GROUP_LIST_THREAD, GROUP_MAIL, GROUP_MARK_THREAD_READ, GROUP_MARK_UNSELECTED_ARTICLES_READ, GROUP_NEXT_GROUP, GROUP_NEXT_UNREAD_ARTICLE, GROUP_NEXT_UNREAD_ARTICLE_OR_GROUP, GROUP_PREVIOUS_GROUP, GROUP_PREVIOUS_UNREAD_ARTICLE, GROUP_READ_BASENOTE, GROUP_REPOST, GROUP_REVERSE_SELECTIONS, group_right(), GROUP_SAVE, GROUP_SELECT_PATTERN, GROUP_SELECT_THREAD, GROUP_SELECT_THREAD_IF_UNREAD_SELECTED, GROUP_TAG, GROUP_TAG_PARTS, GROUP_TOGGLE_GET_ARTICLES_LIMIT, GROUP_TOGGLE_READ_UNREAD, GROUP_TOGGLE_SELECT_THREAD, GROUP_TOGGLE_SUBJECT_DISPLAY, GROUP_TOGGLE_THREADING, GROUP_UNDO_SELECTIONS, GROUP_UNTAG, grp_del_mail_arts(), GRP_ENTER, GRP_EXIT, GRP_NEXTUNREAD, GRP_QUIT, GRP_RETSELECT, grpmenu, handle_keypad(), HIST_SELECT_PATTERN, index_group(), t_config::info_in_last_line, info_message(), t_article::inrange, invoke_editor(), last_resp, last_search, line_is_tagged(), t_attribute::mailing_list, make_threads(), MARK_ARTICLE_UNREAD, MARK_FEED_READ, MARK_FEED_UNREAD, t_attribute::mark_ignore_tags, mark_offset, mark_screen(), MARK_THREAD_UNREAD, match_regex(), t_menu::max, MAXKEYLEN, move_down(), move_to_item(), move_up(), my_retouch, t_group::name, next_unread(), NOT_ASSIGNED, num_of_tagged_arts, page_down(), page_up(), PCRE_CASELESS, pgart, pickup_postponed_articles(), pos_first_unread_thread(), post_article(), prev_response(), prev_unread(), printascii(), prompt_getart_limit(), prompt_item_num(), prompt_msgid(), prompt_string_default(), prompt_yn(), quick_filter(), range_active, regex_cache::re, t_group::read_during_session, read_filter_file(), REGEX_FMT, ret_code, scroll_down(), scroll_up(), search_body(), t_article::selected, t_art_stat::selected_unread, selmenu, set_range(), set_xclick_off(), set_xclick_on(), t_attribute::show_author, SHOW_FROM_BOTH, SHOW_FROM_NONE, show_group_page(), show_group_title(), show_help_page(), show_inverse_video_status(), show_tagged_lines(), signal_context, snprintf, SPECIAL_CATCHUP_LEFT, stat_thread(), STRCMPEQ, STRCPY, T_ARTNUM_CONST, tab_pressed(), tag_multipart(), t_article::tagged, this_resp, t_article::thread, t_attribute::thread_articles, THREAD_MAX, THREAD_NONE, tin_errno, tin_ltoa(), tinrc, TINRC_CONFIRM_ACTION, TINRC_CONFIRM_SELECT, toggle_inverse_video(), toggle_mini_help(), toggle_read_unread(), top_of_list(), TRUE, txt_autoselecting_articles, txt_bad_command, txt_base_article, txt_base_article_range, txt_cannot_post, txt_confirm_select_on_exit, txt_index_page_com, txt_info_add_kill, txt_info_add_select, txt_info_all_parts_tagged, txt_info_all_parts_untagged, txt_info_no_previous_expression, txt_marked_as_unread, txt_no_arts, txt_no_last_message, txt_no_more_groups, txt_no_next_unread_art, txt_no_prev_group, txt_no_prev_search, txt_no_prev_unread_art, txt_prefix_tagged, txt_prefix_untagged, txt_quick_filter_kill, txt_quick_filter_select, txt_quit_despite_tags, txt_reading_article, txt_select_art, txt_select_pattern, txt_select_thread, txt_thread_marked_as_deselected, txt_thread_marked_as_selected, txt_thread_singular, undo_auto_select_arts(), undo_selections(), unfilter_articles(), t_art_stat::unread, UNREAD_GROUP, untag_all_articles(), untag_article(), update_group_page(), user_posted_messages(), which_thread(), and t_config::wildcard.

Referenced by read_groups().

◆ group_right()

◆ mark_screen()

◆ pos_first_unread_thread()

void pos_first_unread_thread ( void  )

◆ prompt_getart_limit()

static t_bool prompt_getart_limit ( void  )
static

◆ show_group_page()

◆ show_group_title()

◆ show_tagged_lines()

static void show_tagged_lines ( void  )
static

◆ tab_pressed()

static int tab_pressed ( void  )
static

Definition at line 1600 of file group.c.

References base, t_menu::curr, enter_pager(), GRP_NEXTUNREAD, grpmenu, next_unread(), and TRUE.

Referenced by group_page().

◆ toggle_read_unread()

◆ update_group_page()

Variable Documentation

◆ curr_group

◆ grp_fmt

struct t_fmt grp_fmt
static

Definition at line 55 of file group.c.

Referenced by build_sline(), and show_group_page().

◆ grpmenu

◆ ret_code