% -*- slang -*- %% My ~/.slrnrc - modified for slrn 0.9.7.3 %% The percent character is used for comments. % %% 1. Tell slrn about your identity (name, email address and such) % % The "From:" header will be generated from the following three variables. % With the example settings, it would read "john@doe.com (John Doe)". set username "arvid.warnecke" set hostname "tu-clausthal.de" set realname "Arvid Warnecke" % Set this if you want replies to your articles to go to a address different % from the one in "From:". %set replyto "arvid.warnecke@tu-clausthal.de" % The name of your signature file. If "", no signature is added. % I am doing this with an editor-command to load my scripts %set signature ".signature" % %% 2. Server specific settings % % Tell slrn which newsrc file it should use for which server. % Note: This does *not* set the default server; you need to set the % NNTPSERVER environment variable for this. server "localhost" ".news.localhost" % If a server requires authentication, add a nnrpaccess line for it. % If you leave username and/or password empty, slrn will prompt for it. %nnrpaccess "news.doe.com" "john" "secret" % This can either be set to "nntp" (read online) or "spool" (use local spool) set server_object "nntp" % This can be "nntp" (post directly to the server), "inews" (use external % program for posting) or "slrnpull" (spool message for slrnpull to send). set post_object "nntp" % Set this to zero if you want to leave Message-ID generation to your server % or your system does not have a proper unique hostname. set generate_message_id 0 % If non-zero, slrn reads the active file on each startup. You might want to % use this if your network connection is fast or the server has few groups. set read_active 1 % %% 3. Which external programs do you want to use? % % Set your favourite editor. Use %s for the file name and %d for the line % where the cursor should be placed (usually at the beginning of the body). %set editor_command "jed '%s' -g %d -tmp" %set editor_command "/home/arvid/bin/mksig2-slrn > .slrn-signature;vim %s -c ':$\n:r ~/.slrn-signature\n:1\n/^$/+'" set editor_command "vim '%s'" % You can have separate commands for editing posts, mail, and score files. %set mail_editor_command "jed '%s' -g %d -tmp --mail-mode" %set post_editor_command "jed '%s' -g %d -tmp --mail-mode" %set score_editor_command "jed '%s' -g %d -tmp --score-arrange-score" set mail_editor_command "mutt -H '%s'; exit 127" % The "exit 127" at the end tells slrn that mutt has completed % successfully (even if it did not). Anyway - this gets rid % of the prompt "Mail the message? Yes, No, Edit". set post_editor_command "/home/arvid/bin/mksig2-slrn > .slrn-signature;vim %s -c ':$\n:r ~/.slrn-signature\n:1\n/^$/+'" % If non-zero, abort posting or email operation if the file was not modified % by the editor. set abort_unmodified_edits 1 % In case we need metamail to display an article: set metamail_command "metamail" % WWW browser to use. Xbrowser is used when the DISPLAY environment variable % is set; non_Xbrowser otherwise. set non_Xbrowser "lynx '%s'" set Xbrowser "mozilla '%s' &" % Command to use for printing % Note: On Win32, this variable defines the name of the printer queue to use. %set printer_name "lpr -Plp" % In case you want to use another mailer than sendmail. Be sure that it % implements the same interface, though! %set sendmail_command "/usr/lib/sendmail -oi -t -oem -odb" % %% 4. Directory / file names % % Note: All filenames in this section are relative to HOME unless they start % with a '/'. % Filename where articles / email you sent are archived. % Note: If these are unset, slrn does not keep a copy of outgoing messages. set save_posts "news/My_Posts" set save_replies "news/My_Replies" % File where failed posts are appended. Use "" to disable saving. set failed_posts_file "dead.letter" % Name of score file. set scorefile ".slrn-score" % Name of directory where decoded files are placed. set decode_directory "news" % Directory where all other files are saved. set save_directory "news" % Directory where postponed articles are placed. Please make sure it exists. set postpone_directory "news/postponed" % Whether to put temporary files for postings, followups and replies in the % directory specified by the TMPDIR environment variable or /tmp. set use_tmpdir 0 % %% 5. Attribution lines / custom headers % % This sets the attribution lines for follow-ups and replies. The following % format specifiers are recognized: % %d:date, %D:date (formatted), %r:real name, %R:first name, % %f:email address, %s:subject, %m:msgid, %n:newsgroups, %%: percent %set followup_string "On %d, %r <%f> wrote:" set followup_string "On %d, %r wrote:" set reply_string "In %n, you wrote:" % Custom headers to add to *new* posts %set custom_headers "Mail-Copies-To: nobody" set custom_headers "Mail-Copies-To: never\nDistribution: world\nOrganization: Clausthal University of Technology\nX-Geek-Code: GCS/CC/IT/FA/P/MU/O dpu(-)* s: a-- C+++$ UHSL*++++$ P+ L+++ E--- W++ N+++@ K- o? w-->--- O- M->-- V>- PS+ PE Y+ PGP++ t+ 5 X(-) tv++ R-- b++>+++ DI+ D+++(---)@ G++(-) e(*)>+++@ h- r%>+++@ y+>**@\nX-Fingerprint: 2254 F4E3 68B9 60C6 0909 54FF C89F 0E34 7A56 7E80" % Custom headers for followup/reply/supersedes. These can use format % specifiers as in the 'followup_string' variable. %set followup_custom_headers "Mail-Copies-To: nobody" set followup_custom_headers "Mail-Copies-To: never\nDistribution: world\nOrganization: Clausthal University of Technology\nX-Geek-Code: GCS/CC/IT/FA/P/MU/O dpu(-)* s: a-- C+++$ UHSL*++++$ P+ L+++ E--- W++ N+++@ K- o? w-->--- O- M->-- V>- PS+ PE Y+ PGP++ t+ 5 X(-) tv++ R-- b++>+++ DI+ D+++(---)@ G++(-) e(*)>+++@ h- r%>+++@ y+>**@\nX-Fingerprint: 2254 F4E3 68B9 60C6 0909 54FF C89F 0E34 7A56 7E80" set reply_custom_headers "X-newsgroup: %n\nX-realname: %r" %set supersedes_custom_headers "X-Superseded-Date: %d" % These are inserted when sending email CCs of your postings. % cc_post_string currently does not support any % escapes. % If greater than 0, a Cc: header to poster will automatically be generated on % followups. If -1, prompt first. set cc_followup 0 set cc_followup_string "[This message has also been posted to %n.]" set cc_post_string "[This message has also been posted.]" % %% 6. Character mapping / MIME support % % Character set used for the local display; valid values are: % isolatin, ibm850, ibm852, next, koi8 set charset isolatin % Character set to declare when posting 8bit characters. Do *not* use % the same value as for "charset" here. set mime_charset "iso-8859-15" % You may set this to a comma-separated list of MIME charsets your terminal % is capable to display. The example adds two Chinese charsets: %compatible_charsets "Big5,gb2312" % If non-zero, call metamail for MIME formats slrn cannot handle. set use_metamail 1 % %% 7. Some preferences for the header window (see the manual for more) % % These sorting methods are available: % If 0, do not sort. If 1, perform threading. If 2, sort by subject. % If 3, thread then sort result by subject. % If 4, sort by score. If 5, thread then sort by score. % If 6, sort by score and subject. % If 7, thread, then sort by score and subject. % If 8, sort by date with most recent first. % If 9, thread, then sort by date with most recent first. % If 10, sort by date with most recent last. % If 11, thread then sort by date with most recent last. set sorting_method 5 % If non-zero, a header with a new subject will start a new thread. set new_subject_breaks_threads 1 % %% 8. Some preferences for the article pager (see the manual for more) % % Which headers do you want to see by default? % You can also match all headers starting with a given string and exclude % specific headers by preceding them with "!" (e.g. use "X-,!X-Trace:" to % display all the "X-"headers except "X-Trace:"). visible_headers "From:,Subject:,Newsgroups:,Date:,Followup-To:,Reply-To:,Distribution,X-,Organisation:,Organization,User-Agent:,Message-ID:,Mail-" % If non-zero, #v+ and #v- will be interpreted as markers of verbatim lines. %set process_verbatim_marks 1 % If non-zero, hide #v+/#v- verbatim marks. %set hide_verbatim_marks 0 % If non-zero, hide signature in articles. set hide_signature 0 % If non-zero, hide PGP signature in articles. set hide_pgpsignature 0 % If non-zero, display first article when entering article-mode. set show_article 0 % %% 9. Display / color settings % % If non-zero, slrn will draw the thread tree using simple ascii characters set simulate_graphic_chars 0 % Enable xterm/win32 mouse support: 1 to enable, 0 to disable set mouse 0 % Draw cursor bar ala tin instead of slrn "->" cursor? set display_cursor_bar 1 % Set to 1 to have slrn scroll by full page instead of by line. set scroll_by_page 0 % Should color be used to indicate the score of an article? % (0) scores do not influence colors (1) scores are colored by their value % (2) subjects are colored by score (3) both are colored by score set color_by_score 3 % If non-zero, the subjects of unread articles are highlighted set highlight_unread_subjects 1 % If non-zero, URLs are highlighted. set highlight_urls 1 % Enables blinking in monochrome mode and allows bright backgrounds in some % color terminals: set use_blink 1 % This color object is only used when highlight_unread_subjects is set to 2 % (see the reference manual for details): color unread_subject "white" "black" mono unread_subject "bold" % These settings are used for color terminals: color article "white" "black" color author "cyan" "black" color boldtext "yellow" "black" color box "black" "white" color cursor "black" "green" color date "lightgray" "black" color description "green" "black" color error "white" "red" color frame "yellow" "blue" color from_myself "brightmagenta" "black" color group "white" "black" color grouplens_display "lightgray" "black" color header_name "cyan" "black" color header_number "white" "black" color headers "green" "black" color neg_score "green" "black" color pos_score "blue" "black" color high_score "brightred" "black" color italicstext "cyan" "black" color menu "black" "green" color menu_press "black" "white" color message "lightgray" "black" color normal "lightgray" "black" color pgpsignature "lightgray" "black" color quotes "green" "black" color quotes1 "magenta" "black" color quotes2 "cyan" "black" color quotes3 "red" "black" color quotes4 "brown" "black" color quotes5 "brown" "black" color quotes6 "brown" "black" color quotes7 "brown" "black" color response_char "white" "black" color signature "red" "black" color selection "red" "green" color status "black" "green" color subject "white" "black" color thread_number "white" "black" color tilde "green" "black" color tree "green" "black" color underlinetext "magenta" "black" color url "white" "black" color verbatim "green" "black" % These attributes are for terminals that cannot display color: mono article "none" mono author "none" mono boldtext "bold" mono cursor "bold" "reverse" mono date "none" mono description "none" mono error "blink" "bold" mono frame "reverse" mono from_myself "bold" mono group "bold" mono grouplens_display "none" mono header_number "none" mono headers "bold" mono high_score "bold" mono italicstext "bold" mono menu "reverse" mono menu_press "none" mono normal "none" mono pgpsignature "none" mono quotes "underline" mono quotes1 "underline" mono quotes2 "underline" mono quotes3 "underline" mono quotes4 "underline" mono quotes5 "underline" mono quotes6 "underline" mono quotes7 "underline" mono response_char "bold" mono selection "bold" mono signature "none" mono status "reverse" mono subject "none" mono thread_number "bold" mono tree "bold" mono underlinetext "underline" mono url "bold" mono verbatim "none" % %% 10. Group mode key bindings % % Cursor movement: setkey group line_down "\eOB" % Go to the next group setkey group line_down "\e[B" setkey group line_down "^N" setkey group line_up "\eOA" % Go to the previous group setkey group line_up "\e[A" setkey group line_up "^P" setkey group page_down "^V" % Scroll to the next page setkey group page_down "\e[6~" setkey group page_down "\e[G" % (FreeBSD keycode) setkey group page_down "^D" setkey group page_up "\eV" % Scroll to the previous page setkey group page_up "\e[5~" setkey group page_up "\e[I" % (FreeBSD keycode) setkey group page_up "^U" setkey group bob "\e<" % Go to the bottom of the list setkey group bob "^K\eOB" setkey group bob "^K\e[B" setkey group eob "\e>" % Go to the top of the list setkey group eob "^K\eOB" setkey group eob "^K\e[B" setkey group group_search_backward "\\"% Group keyword search backward setkey group group_search_forward "/" % Group keyword search forward % Actions: setkey group select_group " " % Enter the current newsgroup setkey group select_group "\r" setkey group post "P" % Post an article setkey group post_postponed "\eP" % Post or edit a postponed article setkey group refresh_groups "G" % Get new news from server setkey group toggle_scoring "K" % Select scoring mode setkey group repeat_last_key "." % Repeat last key sequence setkey group evaluate_cmd "^X\e" % Read line and interpret it as S-Lang setkey group suspend "^Z" % Suspend slrn setkey group quit "Q" % Quit slrn % Group management: setkey group catchup "C" % Mark all articles as read setkey group uncatchup "\eu" % Mark all articles as unread setkey group add_group "a" % Add a new newsgroup setkey group subscribe "S" % Subscribe to the current newsgroup setkey group unsubscribe "U" % Unsubscribe from the current newsgroup setkey group move_group "m" % Move newsgroup to a different location setkey group transpose_groups "^X^T" % Transpose position of groups setkey group save_newsrc "X" % Force a save of the newsrc file % Display: setkey group toggle_group_formats "\033A" % Toggle group display formats setkey group toggle_hidden "l" % Toggle display of hidden groups setkey group toggle_list_all "L" % Toggle listing of unsubscribed groups setkey group redraw "^L" % Redraw the screen setkey group redraw "^R" setkey group help "?" % Display a help screen % %% 11. Article mode key bindings % % General movement: setkey article next "n" % next unread article setkey article previous "p" % previous unread article setkey article skip_to_next_group "N" % go to the next group setkey article skip_to_next_group "\e\e[C" setkey article skip_to_next_group "\e\eOC" setkey article skip_to_previous_group "\e\e[D" % go to the previous group setkey article skip_to_previous_group "\e\eOD" setkey article next_high_score "!" % next article with high score setkey article next_same_subject "=" % next article with same subject setkey article goto_last_read "L" % go to the last read article % Actions: setkey article post "P" % Post a new article setkey article post_postponed "\eP" % Post/edit a postponed article setkey article followup "f" % Post a followup setkey article reply "r" % Reply to poster setkey article forward "F" % Forward posting via mail setkey article supersede "\e^S" % Supersede article setkey article cancel "\e^C" % Cancel article setkey article save "O" % Save article setkey article pipe "|" % Pipe article setkey article print "y" % Print article setkey article decode ":" % Decode article setkey article suspend "^Z" % Suspend slrn setkey article quit "q" % Quit slrn setkey article fast_quit "Q" % Quit slrn immediately % Moving in the article pager: setkey article article_line_down "\eOD" % Scroll article down one line setkey article article_line_down "\e[D" setkey article article_line_up "\e\eOB" % Scroll article up one line setkey article article_line_up "\e\e[B" setkey article article_line_up "^H" % Backspace for up one line setkey article article_page_down " " % Scroll article down one page setkey article article_page_up "^?" % Scroll article up one page setkey article article_page_up "b" % Scroll article up one page setkey article article_eob ">" % Move to the end of the article setkey article article_bob "<" % Move to the beginning setkey article article_left "\eOD" % Pan article to the left setkey article article_left "\e[D" setkey article article_right "\eOC" % Pan article to the right setkey article article_right "\e[C" setkey article article_search "/" % Search forward in the article setkey article skip_quotes "\t" % Skip beyond quoted text setkey article forward_digest "g" % Skip to next digest % Moving in the header display: setkey article header_line_down "\eOB" % Move to next article setkey article header_line_down "\e[B" setkey article header_line_down "^N" setkey article header_line_up "\eOA" % Move to previous article setkey article header_line_up "\e[A" setkey article header_line_up "^P" setkey article header_page_down "^V" % Scroll down one page setkey article header_page_down "\e[6~" setkey article header_page_down "\e[G" % (FreeBSD keycode) setkey article header_page_down "^D" setkey article header_page_up "\eV" % Scroll up one page setkey article header_page_up "\e[5~" setkey article header_page_up "\e[I" % (FreeBSD keycode) setkey article header_page_up "^U" setkey article header_eob "\e>" % Go to last article in group setkey article header_bob "\e<" % Go to first article in group setkey article goto_article "j" % Move to article (number) setkey article author_search_forward "a" % Author search forward setkey article author_search_backward "A" % Author search backward setkey article subject_search_forward "s" % Subject search forward setkey article subject_search_backward "S" % Subject search backward % Marking as read/unread: setkey article delete "d" % Mark article as read setkey article undelete "u" % Mark article as unread setkey article delete_thread "\ed" % Mark (Sub-)Thread as read setkey article catchup_all "c" % Mark all articles as read setkey article catchup_all "\ec" setkey article catchup "\eC" % Catchup (up to this article) setkey article uncatchup_all "\eu" % Mark all articles as unread setkey article uncatchup "\eU" % Uncatchup (up to this article) setkey article expunge "x" % Remove all read articles % Display properties: setkey article toggle_headers "t" % Full headers (on/off) setkey article toggle_rot13 "\eR" % Toggle ROT-13 decryption setkey article toggle_quotes "T" % Display quoted lines (on/off) setkey article toggle_signature "\\" % Show signature (on/off) setkey article wrap_article "W" % Wrap long lines (on/off) setkey article show_spoilers "\e?" % Reveal spoilers (on/off) setkey article toggle_pgpsignature "]" % Show PGP signature (on/off) setkey article toggle_verbatim_marks "[" % Show verbatim marks (on/off) setkey article enlarge_article_window "^" % Enlarge the article window setkey article shrink_article_window "^^" % Shrink the article window setkey article zoom_article_window "z" % Maximize/Unmaximize article setkey article hide_article "h" % Hide/Show the article window setkey article browse_url "U" % Search for URL and follow it setkey article toggle_sort "\eS" % Select threading method setkey article toggle_collapse_threads "\et" % Collapse/Uncollapse thread setkey article toggle_header_formats "\ea" % Toggle header display formats setkey article redraw "^L" % Redraw screen setkey article redraw "^R" % Redraw screen setkey article help "?" % Display help screen % Miscellaneous actions: setkey article create_score "K" % Create a scorefile entry setkey article view_scores "v" % Show which rules matched setkey article locate_article "\el" % Locate article by Message-ID setkey article get_children_headers "\e^P" % Find all children setkey article get_parent_header "\ep" % Reconstruct thread setkey article mark_spot ";" % Mark current article position setkey article exchange_mark "," % Return to marked article setkey article tag_header "#" % Numerically tag article setkey article untag_headers "\e#" % Remove all numerical tags setkey article toggle_header_tag "*" % Set/remove header tag setkey article repeat_last_key "." % Repeat last key sequence setkey article grouplens_rate_article "0" % Rate article with grouplens setkey article evaluate_cmd "^X\e" % Interpret line as S-Lang % %% Command prompt key bindings % setkey readline bol "^A" % Beginning of line setkey readline eol "^E" % End of line setkey readline right "\e[C" % Move right setkey readline left "\e[D" % Move left setkey readline bdel "^H" % Delete backward setkey readline bdel "^?" % Delete Backward setkey readline del "^D" % Delete Foreword setkey readline delbol "^U" % Delete to Beginning of line setkey readline delbow "^W" % Delete to Beginning of word setkey readline deleol "^K" % Delete to End of line setkey readline trim "\e/" % Trim whitespace setkey readline quoted_insert "^Q" % Quoted insert setkey readline complete "\t" % Complete filename setkey readline cycle " " % Cycle among filenames % This is a special hack for HP terminals to get the arrow keys working. % Are there any other terminals being used with non-ANSI arrow keys? #if$TERM hpterm setkey group line_up "\eA" setkey group line_down "\eB" setkey article header_line_down "\eB" setkey article header_line_up "\eA" setkey article article_left "\eD" setkey article article_right "\eC" #endif %% Some other usefull stuff % set the display format in group-mode, toggle between this settings % with 'ESD-a' (default) % % F Group flag (`U' for unsubscribed, `N' for new) % d Group description (needs to be downloaded once with slrn -d) % h ``High water mark'' (highest article number in the group) % l ``Low water mark'' (lowest article number in the group) % n Group name % t Total number of articles in the group (estimate) % u Number of unread articles in the group group_display_format 0 "%F%-4u [%-6t] %n%50g%d" group_display_format 1 "%F%-4u %n%50g%d" group_display_format 2 "%F%-4u %n%50g%-8l-%h" % Maximum number of articles to read before slrn will prompt. Default is 100. % Set this to zero to turn of prompting. set query_read_group_cutoff 0 % Setting the header window display format. % The generic format specifier begins with the `%' character and must % be of the form: % num "%[-][w]x" % where the brackets indicate optional items. % Here, _w_ is a width specifier consisting of one or more digits. % If the minus sign (-) % is present, the item will be right justified, % otherwise it will be left justified. (num) is a number of theme, % switched by toggle_headers_format. num == 0 is default header_format % The item specifier _x_ is required and, depending % on it value, has the following meaning: % s : subject % S : score % r : author real name % f : from header % G : Group lens score % l : Number of lines % n : server number % d : date % t : thread tree % F : flags (read/unread, `*' and `#' tags, header number) % % : percent character % g : goto a specified column % %header_display_format 0 "%F%-5S%G%-5l:[%12r]%t%s" header_display_format 0 "%F%-5S%-5l:[%15r]%t%70s" header_display_format 1 "%F%G%-5l:[%12r]%t%s" header_display_format 2 "%F%-5l:%t%s" header_display_format 3 "%F%-5S%-5l:%t%50s %r" header_display_format 4 "%F%-5S [%10r]:%t%49s %-19g[%17d]" % If non-zero, slrn will automatically un-subscribe new groups. % The default is 0. set unsubscribe_new_groups 1 % If non-zero, all subject titles will be displayed even though many are % duplicated. A zero value makes the screen look less busy. set show_thread_subject 0 % Setting this to 1 will cause an article to automatically be marked as read % when viewed. Setting this to zero means that it is up to the user to % explicitly mark an article as read. set auto_mark_article_as_read 1 % Set this to 0 for no-confirmation on follow, reply, quit, etc... set confirm_actions 0 % What to wrap when wrapping an article: % 0 or 4 ==> wrap body % 1 or 5 ==> wrap headers, body % 2 or 6 ==> wrap quoted text, body % 3 or 7 ==> wrap headers, quoted text, body % The higher number indicates that every article will be automatically % wrapped. set wrap_flags 7 %Character to use to hide spoiler text: set spoiler_char '*' %set to 0 to keep the display still, and just reveal the spoiler %set to 1 to start a new page when spoiler is revealed %set to 2 to keep the display still, and reveal ALL spoilers %set to 3 to start new page and reveal ALL spoilers set spoiler_display_mode 0 set quote_string "> " % If 0, do not beep terminal. If 1, send audible beep. If 2, send only % visible bell. If 3, send both. set beep 2 % If non-zero, signature will not be included in quoted text of followups set followup_strip_signature 1 % Check PGP-Signatures setkey article "pipe_article (\"sed -e '1,/^$/d' | gpg --verify; sleep 1\")" "V" %interpret /home/arvid/.slrn/.slrn.xv.sl interpret /home/arvid/.slrn/onekey-score.sl %% Keys for onekey-score.sl % Copyright (C) 1999-2000 Thomas Schultz % For info on syntax take a look in ~/.slrn/onkey-score.sl % setkey article "OneKeyScore->create_score('r', -9999, 't', 5, 1);" "^K" setkey article "OneKeyScore->create_score('r', 3000, 't',10, 1);" "^W" setkey article "OneKeyScore->create_score('s', 1000, 't',10, 1);" "^S" setkey article "OneKeyScore->create_score('f', -9999, 'a', 100, 1); " "^F" %% Interpret slrnface to be able to see that stuff interpret /usr/share/slrn/macros/slrnface.sl %% Those both are for pgp/gpg in slrn %interpret /home/arvid/.slrn/gnupg.sl %interpret /home/arvid/.slrn/my-hooks.sl