% ========================================================================= % http://nion.modprobe.de/setup/slrnrc % Autor: Nico Golde % Homepage: http://www.ngolde.de % Letzte Änderung: Mit Jul 28 18:07:33 CEST 2004 % ========================================================================= %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Persönliche Einstellungen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % gibt jedem verschieden Server ein eigenes Setup File % server host file server news.individual.de .newsrc % default Einstellung für den Newsserver, damit man slrn nicht mehr auf der % Kommandozeile sagen muss, welchen er benutzen soll % Einbinden der Datei mit username und password % Syntax: nnrpaccess host username password include .slrn.server interpret .slrn.myfuncs % username set username nntp % hostname set hostname "ngolde.de" % realname: set realname "Nico Golde" % Header, die angezeigt werden sollen, wenn man eine Mail liest. visible_headers "Subject:,From:,Organization:,Newsgroups:,Date:,Followup-To:,Mail-Copies-To:,Reply-To:,Message-ID:,User-Agent:,X-Mailer,X-Newsreader:,X-Posting-Agent:,X-Http-User-Agent:" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% MTA, Mailer, Editor, etc %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Startet vim zum schreiben von News % Genauere Informationen in den Vim Manuals oder in Vim :help set editor_command "vim -c 'set tw=72' '+%d' '%s' -X" % mail_editor_command % Mutt für Replys und Mails benutzen set mail_editor_command "mutt -H '%s'" set sendmail_command "" set mail_editor_command "mutt -H '%s'" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Other Settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % auto_mark_article_as_read: % Mark seen articles as "read"? % Why - of course!! :-) set auto_mark_article_as_read 1 % no_backups: % Backup the newsrc? % YES! set no_backups 1 % Xbrowser: % Chose your favourite web browser for use with X: % set Xbrowser "Netscape '%s'" set Xbrowser "links '%s'" % non_Xbrowser: % Chose your favourite browser for use on terminals: % Please note the ticks around %s - important! % set non_Xbrowser "links '%s'" % set non_Xbrowser "lynx '%s'" set non_Xbrowser "lynx '%s'" % % SEE ALSO: % links: http://links.browser.org/ % links: http://www.math.fu-berlin.de/~guckes/links/ % % lynx: http://lynx.browser.org/ % lynx: http://www.math.fu-berlin.de/~guckes/lynx/ % % w3m: http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/ % header_display_format: % Chose the format within the article menu. % (requires slrn-0.9.6.2, I think.) % %d : date % %f : from header % %F : flags (read/unread, *' and #' tags, header number) % %G : Group lens score % %l : Number of lines % %n : server number % %r : author real name % %s : subject % %S : score % %t : thread tree % %% : percent character % %Xg: indicates that the cursor should be moved to column X % (numbered from 0). If X is negative, the cursor will % be moved X columns from the right edge of the window. % % Examples: %%% header_display_format 0 "%F%-5S%G%-5l:[%12r]%t%s" %%% header_display_format 0 "%F%G%-5l:[%12r]%t%s" %%% header_display_format 0 "%F%-5l:%t%s" %%% header_display_format 0 "%F%-5S%-5l:%t%50s %r" %%% header_display_format 0 "%F[%6D]%-5S%G%-5l:[%12r] %t%s" %%% header_display_format 0 "%F%-5S%G%-5l:[%12r] (%6D)%t%s" %%% header_display_format 0 "%F%-5S%-5l: [%15r] [%9d] %t %70s" header_display_format 0 "%F%-5S%-5l: [%15r] %t %70s" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Directories and Files for saving and (decoding) articles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % set postpone_directory "~/News/postpone/" % "~/" is *not* expanded! set postpone_directory "News/postpone" set save_posts "News/posted" set save_replies "News/replies" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Other Settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% The following variables need documentation, of course. %%% If you can provide any then please let me know! :-) % set group_dsc_start_column 40 % TODO "Please make use of the group_display_format variable instead." % Valid character sets: isolatin, ibm850, ibm852, next, koi8 % isolatin is the defaule on all other systems. set charset isolatin set mime_charset "iso-8859-1" % set mime_charset "iso-8859-15" compatible_charsets "iso8859-1,iso8859-15,Win-1252,Windows-1252,x-user-defined" % query_next_article 0 - do not prompt "see next article?" set query_next_article 0 % read_active: ... set read_active 0 % reject_long_lines: ... % set reject_long_lines 1 % reply_string: ... % set reply_string "In %n, you wrote:" % default % An attribution should always cite the name and address - and with % replies to posts in email it is nice to see the newsgroups, too. set reply_string "* %r <%f> [%n]:" % show_article: ... % show_article 1: display first article when entering article-mode. % show_article: ... % Do not display first article when entering article-mode: set show_article 0 % show_descriptions: % show_descriptions = 0: Do not show newsgroup descriptions. % show_descriptions > 0: Show newsgroup descriptions. % set show_descriptions 0 % TODO "Please make use of the group_display_format variable instead." %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% SORTING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % ._________________________________________________. % | Sorting Method | % | | % | 0 No sorting | % | 1 Thread Headers | % | 2 Sort by subject | % | 3 Thread, then sort by subject. | % | 4 Sort by scores. | % | 5 Thread, then sort by scores. | % | 6 Sort by score and subject | % | 7 Thread, then sort by score and subject | % | 8 Sort by date (most recent first) | % | 9 Thread, then sort by date (most recent first) | % | A Sort by date (most recent last) | % | B Thread, then Sort by date (most recent last) | % ._________________________________________________. % set sorting_method 3 set sorting_method 9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% TEXT DISPLAY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % If non-zero, slrn will draw the thread tree using simple ascii characters set simulate_graphic_chars 1 % emphasized_text_mask: % This bitmapped variable controls what parts of an article should be scanned % for emphasized text. Set it to one of the following values or the sum % of any combination of the values to scan the corresponding parts of the % article: % 1 message portion (the non-quoted, non-signature part) % 2 quoted portion % 4 signature % For example, using 3 (1+2) will cause the message and quoted portions to % be scanned. % set emphasized_text_mask 1 % spoiler_char: % set spoiler_char '*' %%% default set spoiler_char ' ' % Affects the display of articles. % When Slrn detects a line with only a CTRL-L inside % then it regards this as a "spoiler warning" and will % hide the following text by replacing every non-space % characters with an asterisk (by default) so as to hide % the following text from immediate view from the user. % % I prefer to set the spoiler character to a space, though, % as I do not want to see the structure of the following text, % either. Yes, the structure can be a spoiler, too. ;-) % %%% See also: http://www.math.fu-berlin.de/~guckes/afw/#spoiler % unsubscribe to new groups found automatically: set unsubscribe_new_groups 1 % % set unsubscribe_new_groups 0 % unsubscribe_new_groups 0 % subscribes to new groups automatically. % I find that configuring "negative actions" is a pain. % I'd rather prefer to negate a "postive action", eg: % set subscribe_to_new_groups 0 set use_metamail 0 set use_mime 1 % set use_xgtitle 1 % set use_xgtitle 0 % 0.9.7.1: "obsolete variable"! % art_help_line: Set the text with "minimal help info". % I hide the text as I *do* know it by now. ;-) set art_help_line "" %set header_help_line "more bla bla" %set group_help_line "and even more" % beep: % 0: do not send beep to terminal. % 1: send audible beep. % 2: send only visible bell. % 3: send both audible and visible bell. set beep 1 %nnrpaccess HOSTNAME USERNAME PASSWORD % write_newsrc_flags : % write_newsrc_flags = 0 (default): save all groups when writing newsrc file % write_newsrc_flags = 1 : do not save any unsubscribed groups % write_newsrc_flags = 2 : do not save any unread-unsubscribed groups set write_newsrc_flags 0 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Default header lines for posts - followups and replies. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % cc_followup set cc_followup -1 % set cc_followup_string "NOTE: This is a copy of a Usenet post." % set cc_followup_string "NOTE: This is a copy of a Usenet post.\nPlease reply publically on Usenet - thankyou!" % slrn 0.9.8.0 - name changed to "cc_post_string": set cc_post_string "NOTE: This is a copy of a Usenet post.\nPlease reply publically on Usenet - thankyou!" % followup_strip_signature % followup_strip_signature 0 : do not strip signature % followup_strip_signature ! : strip signature set followup_strip_signature 1 % set replyto guckes@math.fu-berlin.de set replyto nntp@ngolde.de % % I use this special address as it will indicate % a reply to a Usenet post. There are simply too % many newsreaders out there which never give any % indication to this whatsoever. Yes, this sucks. % % NOTE: % Please do not set the "Reply-To" to the same % address as the one in your "From:" line % as this is completely redundant. Thankyou! %%% Mail-Copies-To: guckes@math.fu-berlin.de %%% X-Newsreader-Info: http://www.math.fu-berlin.de/~guckes/slrn" % set custom_headers "Mail-Copies-To: guckes@math.fu-berlin.de\nX-Newsreader-Info: http://www.math.fu-berlin.de/~guckes/slrn" % set custom_headers "Mail-Copies-To: guckes-usenet-cc@math.fu-berlin.de" % set custom_headers "X-No-Archive: yes" % % Custom headers for followup/reply. % These can use format specifiers as % in the 'followup' string variable. % % set followup_custom_headers "X-Newsgroup: %n\nX-realname: %r\n" % set reply_custom_headers "X-Newsgroup: %n\nX-realname: %r\n" % scorefile: % The file that holds the data for scoring. % % scorefile setup for Unix file: % set scorefile ".slrn.score" % scorefile ".slrn.score" % % scorefile setup for Windows (8.3 filename): % set scorefile "slrn.sco" % If you want to install a scorefile for everyone % then the users' slrnrc must "include" (read) it: % include /path/slrn.global.score % follow-up: % The format string used to set the *attribution* in followups. % % The following format specifiers are recognized: % %d Date: % %r real name ("comment" within From: line) % %f address (taken from From: line) % %s Subject: % %m Message-Id: % %n Newsgroups: % %% a literal percent sign. % % set followup_string "%f (%r):" %%% default? set followup_string "* %r <%f>:" % % Example: % * Sven Guckes : % > You can find my slrnrc at % > http://www.math.fu-berlin.de/~guckes/setup/#slrn % % NOTE: The quoting of Message-Id:, Newsgroups:, and % Subject: in the attribution is discouraged! % After all, this information is already in the header. % 0.9.7.0 warn_followup_to % set warn_followup_to %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% QUOTED TEXT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % A note on the quote prefix: % "> " This is the Standard. Don't change it. Or else!! % ">" Used by many clients as the default. (alas) % "»" default with newsreader "knews" (augh!) % ":" default with newsreader "tin" (grrr!) % too bad that this is hard to keep from lines % which contain ex commands, eg ":g/re/p" :-( % %#]|)}=- used by various lusers who want to % "be different" (killkillkill!) % quote_string: % The string to be used to "cite" (read: indent) text % from the previous message when following up/replying: set quote_string ">" % Sven's quotes (working!): % Extensive setup allowing quoting with "names": % ignore_quotes "^ ? ?[A-Za-z0-9]*[]-|>#:)}=+%>]" % % Not so extensive quoting: % ignore_quotes "^ ? ?[]-|>#:)}=+%>]" % % Explanation: % "^ ? ?[#:|})>»-]" % "^" beginning of the line % " ? ?" at most two spaces % "[#:|})>»-]+" at least one of the characters in this set % ignore_quotes: % A regular expression which define the "quoted text" % which can be "ignored" (ie hidden from view) with % the command "toggle_quotes" (bound to 'T' by default). % ignore_quotes "^[>|#:][>|#: ]" % % Explanation of this regular expression: % "^[>|#:][>|#: ]*" % ^ beginning of line % [>|#:] any of the characters angle, pipe, hash, colon. % [>|#: ] next char is either space or another of previous char % * zero or more of the previous set % Sven Guckes : % Some other things I have tried - but did not like. ;-) % ignore_quotes "^ ? ?[>#:%|)}}=+-]" "^[ \t]*[A-Za-z]+>" % ignore_quotes "^[ \t]+[a-zA-Z]+>" "^ ? ?[]>#:|)}}=+-]+" % ignore_quotes "^[ \t]*[a-zA-Z]+>" % John E. Davis : % Yes, he is the author of SLRN! :-) % ignore_quotes "^\t? \\{0,5\\}[]{}><:=|+\xBB!]" "^[\t ]*[A-Za-z]+>" % Heikki "Hezu" Kantola : % ignore_quotes "^[ ]*[>^<:|&;%]" "^[ ]*[a-zA-Z-]*>" "^()" "^[-=]+>" "^\+\+" % Felix von Leitner % ignore_quotes "^ ? ?[>:)=-]" % ignore_quotes "^ ? ?[-=]?[>:]" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% TEXT COLOR (and "COLOUR" for you British people ;-) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% COLOUR settings. For defaults look in startup.c (search for "Color_Handle_Type"). % % slrn-0962 object names: % article author boldtext box cursor description error frame % group grouplens_display header_name header_number headers high_score % italicstext menu menu_press normal pgpsignature quotes response_char % selection signature status subject thread_number tilde tree underlinetext verbatum %%% possible color values: %%% default, black, blue, green, cyan, red, magenta, brown, lightgray, gray, %%% brightblue, brightgreen, brightcyan, brightred, brightmagenta, %%% yellow, white. %% Format: % color object foreground background color article white black color author cyan black % color boldtext yellow black % color box cyan black color cursor green black color description blue white color error red black color frame red black color group white black color grouplens_display red black color header_name cyan black color header_number green black color headers cyan black color high_score red black % color italicstext red black % missing in slrnrc.vim color menu yellow blue color menu_press blue black color normal white black % color pgpsignature white black % missing in slrnrc.vim color quotes cyan black % color quotes0 cyan black % missing in slrnrc.vim % color quotes1 brightgreen black % missing in slrnrc.vim % color quotes2 brightred black % missing in slrnrc.vim % color quotes3 yellow black % missing in slrnrc.vim % color quotes4 red black % missing in slrnrc.vim % color quotes5 blue black % missing in slrnrc.vim % color quotes6 green black % missing in slrnrc.vim % color quotes7 magenta black % missing in slrnrc.vim color response_char magenta black color selection magenta black color signature brightgreen black color status yellow blue color subject white black % color subject red white %Object "subject" is for the Subject of the *header* window! color thread_number blue black color tilde white black color tree red black % color url blue white % WISH! % color underlinetext white black % missing in slrnrc.vim % color verbatum green black % missing in slrnrc.vim % verbatum text is between pairing lines containing % "#v+" (verbose on) and "#v-" (verbose off). % Example: % #v+ % $ slrn --version % #v- %----------------------------------------------------- % Monochrome attributes for monochrom terminals. One or more attributes % may be specified. %----------------------------------------------------- mono article "none" mono author "none" % mono boldtext "bold" mono cursor "bold" "reverse" mono description "none" mono error "blink" "bold" mono frame "reverse" 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 verbatum "bold" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% setkey readline - key mappings for input prompts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% readline exists since version 0.9.2 setkey readline bol "^A" % Jump to Beginning of line setkey readline eol "^E" % Jump to End of line setkey readline right "\e[C" % Jump to Move right setkey readline left "\e[D" % Jump to Move left setkey readline bdel "^H" % Delete backward setkey readline bdel "^?" % Delete Backward setkey readline del "^D" % Delete Foreword setkey readline deleol "^K" % Delete to End of line setkey readline trim "\e/" % Trim whitespace setkey readline quoted_insert "^Q" % Quoted insert % setkey readline clear "^U" % Clear imput line - WISH! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% setkey article - key mappings use in article mode %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % goto_article - prompts for an article number within the current index % and will then jump to it. setkey article goto_article "J" % jump to an article number in % pipe - sends the current article to an external command. setkey article pipe "|" % skip_quotes - skips the quoted text at the end of the current page % and display the text after that. setkey article skip_quotes "\t" % header_page_down - presents the next page of the current index. setkey article header_page_down " " % Sven setkey article header_page_down "^F" setkey article header_page_down "\e[6~" setkey article header_page_down "\e[6z" % header_page_up - presents the previous page of the current index. setkey article header_page_up "^B" setkey article header_page_up "\e[3~" setkey article header_page_up "\e[5z" % post - start posting a new message to the (current) newsgroup. setkey article post "P" % get_parent_header - fetches the parent *post* from thew newsserver. setkey article get_parent_header "\ep" % catchup - mark messages as read setkey article catchup "\eC" % uncatchup - mark messages up to current message as unread setkey article uncatchup "\eU" % catchup_all - marks all articles in the current newsgroup as "read". setkey article catchup_all "c" setkey article catchup_all "\ec" % uncatchup_all % marks all articles in the current newsgroup as "new/unread". setkey article uncatchup_all "\eu" % article_page_down - scroll down one full page setkey article article_page_down " " setkey article article_page_down "\r % article_page_up - scroll up one full page setkey article article_page_up "^?" % scroll to next page of article setkey article article_page_up "b" % like "back" in "less" setkey article article_page_up "^H" % article_line_up - scroll article up one line setkey article article_line_up "\e[A" setkey article article_line_up "\eOA" setkey article article_line_up "^Y" % "vim" like % article_lineup - scroll article down one line setkey article article_line_down "\e[B" setkey article article_line_down "\eOB" setkey article article_line_down "^E" % "vim" like % article_search - search forward in article for string setkey article article_search "/" % Search forward through article setkey article author_search_forward "a" % Search forward for an author setkey article author_search_backward "A" % Search backward for an author setkey article cancel "\e^C" % Cancel the article % Mark current article as read and move to the next unread one: % setkey article delete setkey article delete "d" % setkey article header_line_down setkey article header_line_down "j" % Move to the next article setkey article header_line_down "\e[B" setkey article header_line_down "\eOB" % setkey article enlarge_article_window setkey article enlarge_article_window "+" % Enlarge header window setkey article enlarge_article_window "&" % setkey article enlarge_article_window "^" % setkey article enlarge_article_window "^E" % fast_quit setkey article fast_quit "Q" % header_bob % setkey article header_bob "1G" % (Sven) vi like jump to first line setkey article header_bob "^" % Move to first article in list (Sven) setkey article header_bob "\e<" % Move to first article in list setkey article header_bob "\e[1~" % header_eob setkey article header_eob "g" % (Sven) vi like jump to first line setkey article header_eob "\e>" % Move to last article in list setkey article header_eob "$" % Move to last article in list setkey article header_eob "\e[4~" setkey article header_eob "G" % (Sven) vi like jump to last line % mark_spot setkey article mark_spot ";" % Set mark at current article % exchange_mark - Set the mark and return to the location of the previous mark. setkey article exchange_mark "," % followup setkey article followup "f" % Followup on the article % forward setkey article forward "F" % Forward the article to someone % help setkey article help "?" % Show help screen % hide_article setkey article hide_article "i" % "index only" (Sven) setkey article hide_article "H" % Hide the article window. setkey article hide_article "Z" % Hide the article window. (Sven) % Scroll the article window to the left: % setkey article article_left setkey article article_left ">" setkey article article_left "\eOD" setkey article article_left "\e[D" % next setkey article next "n" % next unread article % previous unread article % setkey article previous setkey article previous "p" % quit setkey article quit "q" % Quit back to group mode. % redraw setkey article redraw "^L" % Redraw the display setkey article redraw "^R" % reply setkey article reply "r" % Reply to the author of current article % Scroll article to the right % setkey article article_right setkey article article_right "<" setkey article article_right "\e[C" setkey article article_right "\eOC" % save setkey article save "O" % append to a file in Unix mail format % setkey article shrink_article_window setkey article shrink_article_window "^^" % ^^ == Ctrl-^ % Problem on German keyboards: '^' is a dead key. % Use Ctrl-6 or Ctrl-Shift-6 instead. % Or use the "minus" key: setkey article shrink_article_window "-" % skip_to_next_group setkey article skip_to_next_group "N" % next group % subject_search_forward % Search forward for an article with a specific subject setkey article subject_search_forward "s" % subject_search_backward % Search backward for an article with a specific subject setkey article subject_search_backward "S" % suspend setkey article suspend "^Z" % Suspend the newsreader % setkey article toggle_header_formats setkey article toggle_header_formats "\ea" % toggle_rot13 setkey article toggle_rot13 "\eR" setkey article toggle_rot13 "D" % toggle_sort setkey article toggle_sort "\eS" % toggle_headers setkey article toggle_headers "t" % Toggle headers full/some % toggle_quotes setkey article toggle_quotes "T" % Toggle quoted text full/on-line % toggle_collapse_threads setkey article toggle_collapse_threads "\eOD" setkey article toggle_collapse_threads "\e[D" setkey article toggle_collapse_threads "\eOC" setkey article toggle_collapse_threads "\e[C" % Mark the current article as unread % setkey article undelete setkey article undelete "u" % Move to the previous article: % setkey article header_line_up setkey article header_line_up "k" setkey article header_line_up "\eOA" setkey article header_line_up "\e[A" % NOTE: You can also call functions from a "setkey" definition: % setkey article "call(\"catchup_all\");call(\"skip_to_next_group\")" "C" % setkey article "call(\"toggle_collapse_threads\");call(\"delete\")" "v" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % setkey group - key mappings use in group mode %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % add_group setkey group add_group "A" % add a new newsgroup % bob % bob % bob setkey group bob "^" % begin of buffer % setkey group bob "g" % begin of buffer % setkey group bob "1G" % begin of buffer setkey group bob "\e[H" setkey group bob "\eO^@" setkey group bob "\e[^@" setkey group bob "\e[1~" % catch_up setkey group catch_up "C" % mark group as read % setkey group line_down setkey group line_down "\eOB" setkey group line_down "\e[B" setkey group line_down "j" % eob % setkey group eob "G" % overrides "Get new % news" :-( setkey group eob "$" % end of buffer setkey group eob "\e[e" setkey group eob "\eOw" setkey group eob "\e[4z" setkey group eob "\e[X" setkey group eob "\e[4~" % group_search_forward setkey group group_search_forward "/" % help setkey group help "?" % page_down setkey group page_down "^F" % next page of groups setkey group page_down "\e[6~" % windows pc keyboard setkey group page_down "\e[6z" % page_up setkey group page_up "^B" % previous page of groups setkey group page_up "\e[3~" % windows pc keyboard setkey group page_up "\e[5~" setkey group page_up "\e[5z" % post setkey group post "P" % quit setkey group quit "Q" % redraw setkey group redraw "^L" % refresh_groups setkey group refresh_groups "^G" % save_newsrc setkey group save_newsrc "X" % select_group setkey group select_group "\r" % read articles from group setkey group select_group " " % subscribe setkey group subscribe "S" % subscribe to group (See unsubscribe) % suspend setkey group suspend "^Z" % toggle_group_display -> toggle_group_formats setkey group toggle_group_formats "\033A" % toggle_hidden setkey group toggle_hidden "l" % toggle_list_all setkey group toggle_list_all "L" % unsubscribe setkey group unsubscribe "U" % unsubscribe % line_up setkey group line_up "\eOA" % previous line setkey group line_up "\e[A" setkey group line_up "k" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% S-Lang macros %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % interpret .slrn.sl % interpret .slrn.test %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Test Area - Examples and Explanations are welcome! :-) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Still have to play around with these settings: % set use_localtime 1 % set date_locale "de_DE" % set overview_date_format "%y%m%d %H:%M" %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Generating your own Message-ID: header line %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % My posts are sent out with a special value for % the Message-Id line (called MID for short). % This allows me to set a score for these posts % and for their followups which should have my % MID in the References line. % I can thereby recognize my own posts and % the followups to my own posts more easily. :-) % % So, how can *you* do it, too? let me explain: % % First off, check whether your slrn has been compiled with % #define SLRN_HAS_GEN_MSGID 1 % Check your binary with "slrn --version" - % or use % % the following command chain should show it very easily: % slrn --version | grep -i msgid |sed -e 's/.*\([-+]GEN_MSGID\).*/\1/i' % % with slrn 0.9.6.3 the output will be "+GEN_MSGID" and % with slrn 0.9.7.4 the output will be "+gen_msgid". % % so - does it show "+GEN_MSGID" or "+gen_msgid"? Good. % % Now you can generate Message-IDs with your slrn. % First, you must tell it in its setup file % to actually generate them: set generate_message_id 1 % % Add the following patch to src/startup.c by adding % a line which defines the variable "posting_host": % % {"organization", &Slrn_User_Info.org}, % + {"posting_host", &Slrn_User_Info.posting_host}, /* patch ! */ % {"followup", &Slrn_User_Info.followup_string}, /* obsolete */ % % Now I can customize the variable "posting_host" in this setup file: % set posting_host "guckes.net" % % And when I post I get this result: % Message-ID: % % So this MID starts off with "slrn" thereby indicating % that slrn has been used as the user agent. fine. % Then there is "8dj5gi.4k0." followed by my user name. % And finally there's "@guckes.net". so far, so good. % % However, I do not really like it. I want more! % % Pine also adds both its name and the name of the OS, % so that would give me this: % Message-ID: % % Then again, the name of the agent and the OS type % is already in the header "User-Agent:" % User-Agent: slrn/0.9.6.2 (SunOS) % % So I'll just stay with the current date and time: % Message-ID: <2000-12-24-20-15-CET@guckes.net> % Format: YYYY-MM-DD-HH-MM DOMAIN % % I found out that I can add such a line to my posts % and it will be accepted by my news server. % So in the meantime I told my editor (Vim) to automagically % add a Message-ID to the header when I write posts with it. % % But now I use slang to create the Message-ID. % slrn reads in an slang file with "interpret file" % and this file contains the following code: % % static define create_msg_id () % { % variable tm = gmtime (_time ()); % % return sprintf ("%d-%02d-%02dT%02d-%02d-%02d@guckes.net", % tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, % tm.tm_hour, tm.tm_min, tm.tm_sec); % } % % define followup_hook () % { % set_string_variable % ("followup_custom_headers", % (sprintf ("Mail-Copies-To: guckes-usenet-cc@math.fu-berlin.de\n" + % "Message-ID: <%s>\n", create_msg_id () ) % ) % ); % % } % % the result then looks like this: % Message-ID: <2002-08-29T00-02-10@guckes.net> % Format: YYYY-MM-DDTHH-MM-SS@DOMAIN % % Let me know if this works for you, too! % send me a mail to slrn-setup(at)guckes.net! % the last line of this file is a "modeline" for the editor "Vim"; % it is used to automatically set some options to values when % editing this file, eg it sets the width of the text to "0" % which means that there is no limit to the length of lines. % and it defines that comments start with a precent sign % and that these can "nest". for more info see vim's online % help with ":help textwidth" and ":help 'comments'". %set spool_inn_root "/var/spool/slrnpull" %set spool_root "/var/spool/slrnpull/news" %set spool_nov_root "/var/spool/slrnpull/news" %set use_slrnpull 1 %set read_active 1 % %set server_object "spool" %set hostname "ngolde" %set username "nico" % vim: tw=0 comments=n\:\%