Introduction
Introduction Statistics Contact Development Disclaimer Help
Adding slrn config. - dotfiles - These are my dotfiles. There are many like it,…
Log
Files
Refs
README
---
commit 59ec2bc0cfdaf8241127f11e1414c157297272fe
parent a1e27e7dab29ae259b59f35a149c6cc61aab0a8b
Author: Jay Scott <[email protected]>
Date: Mon, 3 Jul 2023 22:21:50 +0100
Adding slrn config.
Diffstat:
M bootstrap.sh | 2 +-
A slrn/colors | 125 +++++++++++++++++++++++++++++…
A slrn/config | 45 +++++++++++++++++++++++++++++…
A slrn/score | 26 ++++++++++++++++++++++++++
A slrn/slrnpull.conf | 38 +++++++++++++++++++++++++++++…
5 files changed, 235 insertions(+), 1 deletion(-)
---
diff --git a/bootstrap.sh b/bootstrap.sh
@@ -4,7 +4,7 @@ DOTFILES=$(pwd)
FILES='ashrc castgetrc profile vimrc'
ROOT='bin'
-CONFIG='foot git isync lynx mpd mutt ncmpcpp newsboat qutebrowser senpai sway'
+CONFIG='foot git isync lynx mpd mutt ncmpcpp newsboat qutebrowser senpai slrn …
link() {
for f in $FILES; do ln -sfn "$DOTFILES/$f" "$HOME/.$f"; done
diff --git a/slrn/colors b/slrn/colors
@@ -0,0 +1,125 @@
+%
+%% 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 1
+
+% 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 2
+
+% 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 0
+
+% This color object is only used when highlight_unread_subjects is set to 2
+% (see the reference manual for details):
+color unread_subject "default" "default"
+mono unread_subject "none"
+
+% These settings are used for color terminals:
+color article "default" "default"
+color author "default" "default"
+color boldtext "white" "default"
+color box "black" "white"
+color cursor "default" "default" "reverse"
+color date "default" "default"
+color description "default" "default"
+color error "brightred" "default"
+color frame "gray" "black"
+color from_myself "brightmagenta" "default"
+color group "default" "default"
+color grouplens_display "gray" "default"
+color header_number "gray" "default"
+color header_name "gray" "default"
+color headers "gray" "default"
+color neg_score "red" "default"
+color pos_score "brightblue" "default"
+color high_score "yellow" "default"
+color italicstext "white" "default"
+color menu "white" "black"
+color menu_press "white" "gray"
+color message "default" "default"
+color normal "lightgray" "default"
+color pgpsignature "cyan" "default"
+color quotes "gray" "default"
+color quotes1 "gray" "default"
+color quotes2 "gray" "default"
+color quotes3 "gray" "default"
+color quotes4 "gray" "default"
+color quotes5 "gray" "default"
+color quotes6 "gray" "default"
+color quotes7 "gray" "default"
+color response_char "blue" "default"
+color signature "gray" "default"
+color selection "white" "gray"
+color status "white" "black"
+color subject "default" "default"
+color thread_number "gray" "default"
+color tilde "gray" "default"
+color tree "gray" "default"
+color underlinetext "white" "default" "underline"
+color url "brightblue" "default"
+color verbatim "white" "default"
+
+% 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"
+mono frame "reverse"
+mono from_myself "bold"
+mono group "bold"
+mono grouplens_display "none"
+mono header_name "bold"
+mono header_number "none"
+mono headers "none"
+mono high_score "bold"
+mono italicstext "bold"
+mono menu "reverse"
+mono menu_press "none"
+mono neg_score "none"
+mono normal "none"
+mono pgpsignature "none"
+mono pos_score "reverse"
+mono quotes "none"
+mono quotes1 "none"
+mono quotes2 "none"
+mono quotes3 "none"
+mono quotes4 "none"
+mono quotes5 "none"
+mono quotes6 "none"
+mono quotes7 "none"
+mono response_char "bold"
+mono selection "bold"
+mono signature "none"
+mono status "reverse"
+mono subject "none"
+mono thread_number "bold"
+mono tilde "bold"
+mono tree "none"
+mono underlinetext "underline"
+mono url "bold"
+mono verbatim "none"
+
+% vim:set ft=slrnrc:
diff --git a/slrn/config b/slrn/config
@@ -0,0 +1,45 @@
+% user
+set username "jay"
+set hostname "jay.invalid"
+set realname "jay.scot"
+set generate_message_id 0
+
+% apps
+set editor_command "vim '+set tw=72' +%d '%s'"
+set Xbrowser "firefox '%s' &"
+
+% attrib
+set followup_string "On %D, %r <%f> wrote:"
+set reply_string "In %n, you wrote:"
+
+% paths
+set scorefile ".config/slrn/score"
+set spool_inn_root "/home/jay/.config/slrn/"
+set spool_root "/home/jay/.config/slrn/news"
+set spool_nov_root "/home/jay/.config/slrn/news"
+set read_active 1
+set use_slrnpull 1
+set server_object "spool"
+
+% mime
+charset display utf8
+charset outgoing utf8
+
+% display
+set confirm_actions 0
+set sorting_method 9
+set uncollapse_threads 1
+set top_status_line " %n"
+set group_status_line "%D %-20g -- %L (%P)"
+set header_status_line "%p [%r/%t] %-20g -- %L (%P)"
+set art_status_line "%p %s %-20g -- %L (%P)"
+set overview_date_format "%d %b %Y %H:%M"
+
+visible_headers "Date:,From:,Newsgroups:,Subject:"
+header_display_format 0 "%F%B %21r %T%s %-26g %D %-5c"
+
+% keybinds
+setkey group "set_prefix_argument(4); () = select_group();" "
+setkey article create_score "K"
+
+include ".config/slrn/colors"
diff --git a/slrn/score b/slrn/score
@@ -0,0 +1,26 @@
+% : Logical AND ie all tests must be passed (Conjunction)
+% :: Logical OR ie any of the tests are passed (Disjunction)
+% ~ Logical NOT ie an exception from the score rule (Negation)
+% = Stop score processing and award the score if the test is passed
+% * Wild card character
+
+[*]
+ Score:: -9999
+ %
+ % Kill all articles which are uppercase and contain $ sign
+ Subject: \$
+ ~Subject: \c[a-z]
+ %
+ % Google groups are a source of, basically, all spam
+ Message-ID: googlegroups
+ %
+ % Known spam remailer
+ From: nobody@dizum\.com
+ %
+ % Prolific spammer
+ From: doctor@doctor\.nl2k\.ab\.ca
+
+[eternal-september.*]
+ Score:: -9999
+ From: Tigerbrother
+ From: Dragonbrother
diff --git a/slrn/slrnpull.conf b/slrn/slrnpull.conf
@@ -0,0 +1,38 @@
+default 0 0 0
+
+eternal-september.info
+eternal-september.newusers
+eternal-september.talk
+eternal-september.support
+eternal-september.config
+eternal-september.test
+eternal-september.grouprequests
+eternal-september.where.are.all.the.newsgroups
+alt.2600
+alt.2600.hackers
+alt.2600.hope
+alt.anonymous
+alt.culture.usenet
+alt.fan.countries.scotland
+alt.fan.usenet
+alt.gopher
+alt.linux
+alt.ph.uk
+alt.usenet.newbies
+alt.test 1000 14 0
+comp.infosystems.gopher
+comp.mail.mutt
+comp.os.linux.announce
+comp.os.misc
+free.answers
+mailing.unix.mutt-users
+mailing.unix.slrn
+news.groups
+news.groups.proposals
+news.groups.questions
+news.software.nntp
+rec.radio.shortwave
+soc.culture.scottish
+uk.local.scot-highlands
+uk.radio.amateur
+comp.infosystems.gemini
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.