Add mutt, slrn, tf and ignore bak

This commit is contained in:
2019-10-18 11:25:27 +01:00
parent 1f68473e23
commit b4e12f7117
4 changed files with 883 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
bak

254
muttrc Normal file
View File

@@ -0,0 +1,254 @@
#!mutt
# -*-sh-*-
set header_cache="~/.mutt_hcache"
set index_format="%4C %Z %{%b %d} %-15.15F (%4c) %s"
set followup_to=no
set check_mbox_size=yes
#set ssl_force_tls
set ssl_starttls=yes
alternative_order text/plain text/html text
auto_view text/html
mime_lookup application/octet-stream
set folder="~/mail"
set spoolfile="/var/mail/paul" # where my new mail is located
mailboxes !
mailboxes =culture =bsllearners
mailboxes =mutt-dev =valgrind-users =inn-workers
mailboxes =cryptography =cryptography-new =cryptlib =ukcrypto
mailboxes =signs-of-god =scrumpy-msw =liberationtech
mailboxes =travis
mailboxes =ebay/aw-confirm
mailboxes =haskell-beginners =haskell-cafe
mailboxes =fodh
mailboxes =unsure =sa-unsure =crm-spam =sa-spam
mailboxes =freegle-bristol
set hostname="blacksun.vm.bytemark.co.uk"
set pgp_replyencrypt
set pgp_replysign
set pgp_replysignencrypted
alternates "(linedit-devel|usenet|paul|ebay)@blacksun.org.uk|(pwalker|paul.walker)@broadcom.com|arafel@gmail.com|h.devore@gmail.com|admin@vincentfamily.org.uk|paul@familywalker.org"
# default hooks
send-hook . set signature=~/.signature_plain
send-hook . my_hdr From: Paul Walker <paul@blacksun.org.uk>
folder-hook . set sort=threads
folder-hook . set strict_threads="yes"
# send-hooks
# These expressions should hopefully capture just the automated addresses used
# to add stuff, so if I email someone at those domains it'll still signature
# me.
send-hook readlater.*@instapaper\.com unset signature
send-hook post.*@pinboard\.in unset signature
send-hook lyndacarter.*@yahoogroups.com my_hdr From: Paul Walker <paul@blacksun.org.uk>
send-hook lyndacarter.*@yahoogroups.com set signature=~/.signature
lists busstop@culturelist\.org BritishSignLanguageLearners
lists deaf-uk-tech deaf-uk-chat deaf-bristol-events signs-of-god
lists liberationtech cryptography cryptography-new cryptlib ukcrypto
lists inn-workers linux-mips linedit-devel
# folder-hooks
folder-hook (culture|ukcrypto|brin-l) set strict_threads="no"
folder-hook sent set sort=date
save-hook "~f order-update@amazon.co.uk" =orders
save-hook "~f auto-confirm@amazon.co.uk" =orders
save-hook "~f auto-shipping@amazon.co.uk" =orders
save-hook "~f digital-no-reply@amazon.co.uk" =orders
save-hook "~f service@paypal.co.*" =paypal
save-hook "~f service@paypal.ch" =paypal
save-hook "~f bidpay.com" =bidpay
save-hook "~t fictionwise@blacksun.org.uk" =fictionwise
save-hook "~f bugzilla-daemon@mozilla.org" =bugzilla
save-hook "~f dyslexicstar" =paula
save-hook "~t gnupg-announce" =gnupg-announce
save-hook "~f flyingbuffalo.com" =flyingbuffalo
save-hook "~f rhodes@oletheros.com" =oletheros
save-hook "~f .*facebook.com" =facebook
save-hook "~f .*facebookmail.com" =facebook
save-hook "~f .*lightspeedpanel.com" =lightspeed
save-hook "~f .*twitter.com" =twitter
save-hook "~f .*kickstarter.com" =kickstarter
save-hook "~f .*ancestry\.co\.uk" =ancestry
save-hook "~f FTPersonalFinance@.*ft\.com" =ic
save-hook "~f .*ft\.com" =ft
save-hook "~f .*biblegateway\.com" =biblegateway
save-hook "~f .*claire\.walker10@gmail\.com" =claire
save-hook "~f .*bananafrog@fastmail\.fm" =claire
save-hook "~f .*dailysciencefiction.com" =dsf
save-hook "~f .*h-l\.co\.uk" =hl
set nomove
set noconfirmappend
set abort_unmodified=yes # automatically abort replies if I don't
# change the message
set alias_file=~/.mutt/aliases # where I keep my aliases
set allow_8bit # never do Q-P encoding on legal 8-bit chars
#set arrow_cursor # use -> instead of hiliting the whole line
#set askbcc
#set askcc
set attribution="On %d, %n wrote:\n"
#set autoedit # go to the editor right away when composing
set auto_tag # always operate on tagged messages
#set charset="iso-8859-1" # character set for your terminal
set copy=yes # always save a copy of outgoing messages
set delete=ask-yes # purge deleted messages without asking
set edit_hdrs # let me edit the message header when composing
#set editor="joe +8" # editor to use when composing messages
#set editor="emacs -nw" # editor to use when composing messages
#set editor=builtin
#set editor="~/.edit.sh"
set editor="joe +9"
set fcc_attach=no # Include attachments in copies of sent messages?
#set force_name # save outgoing by recipient, create if mailbox doesn't exist
#set forw_format="[%a: %s]" # subject to use when forwarding messages
# format of lines in the message index
#set hdr_format="%4C %Z %02m/%02N %-15.15L (%4l) %s"
#set header # include message header when replying
set help # show the help lines
#set history=20 # number of lines of history to remember
#set nohold # move read message to ``mbox''
#set hostname="cs.hmc.edu" # my DNS domain
#set in_reply_to="%i; from %f on %d"
set include=yes # always include the message in replies
set indent_str="> "
#set mailcap_path="~/.mailcap:/usr/local/share/mailcap"
set nomark_old # i don't care about whether a message is old
set markers=no
set mbox=mail/personal # where to store read messages
unset metoo # don't remove my address when replying
set mime_fwd=ask-yes # use message/rfc822 type to forward messages
set move=no # don't ask about moving messages, just do it
#set pager=less # some people prefer an external pager
#set pager_context=3 # no. of lines of context to give when scrolling
#set pager_format="-%S- %-20.20f %s" # format of the pager status bar
#set pager_stop # don't move to the next message on next-page
#set point_new # jump to the first new message on startup
set print=ask-yes # ask me if I really want to print messages
set print_cmd='lpr ' # how to print things (I like to save trees)
set noprompt_after # ask me for a command after the external pager exits
set query_command="abook --mutt-query '%s'"
#set quote_regexp="^ *[a-zA-Z]*[>:#}]" # how to catch quoted text
set read_inc=25 # show progress when reading a mailbox
#set recall # when there are postponed messages, ask me to resume
set postponed="~/mail/postponed"
set record=+sent # save copies of outgoing messages in +outbox
set reply_to=ask-yes # ask me if I want to use the given reply-to address
set resolve # move to the next message when an action is performed
#set reverse_alias # attempt to look up my names for people
set reverse_name
set nosave_empty # remove files when no messages are left
#set save_name # save outgoing messages by recipient, if the
# mailbox already exists
set sendmail="/usr/sbin/sendmail"
set signature="~/.signature_plain" # file which contains my signature
set shell="/bin/bash" # program to use for shell escapes
#set status_on_top # some people prefer the status bar on top
#set strict_threads # don't thread by subject
#set tilde # use virtual lines to pad blank lines in the pager
set timeout=3 # how long to wait before autochecking for new mail
set pop_checkinterval=600
set tmpdir=/tmp # where to store temp files
#set to_chars=" +TCF"
#set url_regexp="((ftp|http|https)://|mailto:)[^ ]*[^., \n\t>\)]"
#set use_mailcap=yes # always use a mailcap entry when found
#set verify_sig=yes # don't automatically verify message signatures
set visual=joe # editor invoked by ~v in the builtin editor
#set web_browser=lynx # program to use when viewing URLs
set write_inc=25 # show progress while writing mailboxes
set beep
set fast_reply
set write_bcc=no
set pgp_auto_decode=yes
#
# I subscribe to a lot of mailing lists, so this is _very_ useful. This
# groups messages on the same subject to make it easier to follow a
# discussion. Mutt will draw a nice tree showing how the discussion flows.
#
#sort threads
#
# Header fields I don't normally want to see
#
ignore * # this means "ignore all lines by default"
# I do want to see these fields, though!
unignore from: subject to cc date x-mailer x-url user-agent
#
# Color definitions
#
color hdrdefault brightblue black
color quoted white black
color quoted magenta black
color signature brightred black
color indicator brightyellow red
color error brightred black
color status brightyellow blue
color tree brightmagenta black
color tilde brightmagenta black
color message brightcyan black
color normal white black
color attachment yellow black
color search black green
color header brightcyan black ^(From|Subject|To|Cc|Date):
color body brightyellow black "(ftp|http)://[^ \)]+"
color body brightcyan black [-a-z_0-9.]+@[-a-z_0-9.]+
color signature red black
mono header underline ^(From|Subject):
mono quoted bold
#
# Key bindings
#
bind index { top-page
bind index } bottom-page
bind pager G bottom
#
# Keyboard macros
#
#macro index \# ':this is a really long macro string that might not work everywhere'
#
# User Defined Headers
#
#my_hdr From: Paul Walker <paul@blacksun.org.uk>
#
# I use Mutt on several different machines, so I put local config commands
# in a separate file so I can have the rest of the settings the same on all
# machines.
#
source ~/.mutt/aliases
source ~/.mutt/keybind
source ~/.mutt/gpg.rc
send-hook . "unset pgp_autoencrypt;unset pgp_autosign"
send-hook paulmorrison@iafrica.com "set pgp_autoencrypt"
send-hook .*dsilvers@digital-scurf.+ "set pgp_autoencrypt"
send-hook .*@mutt.org "set pgp_autosign"
send-hook linedit-devel@.* my_hdr From: Paul Walker <linedit-devel@blacksun.org.uk>
send-hook linedit-devel@.* set signature=~/.signature_plain
send-hook .*vincentfamily\.org\.uk my_hdr From: Paul Walker <admin@vincentfamily.org.uk>
send-hook .*familywalker\.org my_hdr From: Paul Walker <paul@familywalker.org>

523
slrnrc Normal file
View File

@@ -0,0 +1,523 @@
% -*- slang -*-
% This is a sample startup file for the slrn news reader. The percent
% character is used for comments.
% Note OS/2 and Win32 users:
% To separate directories you can either use a single '/' or
% double '\\'. Single backslashes are not supported. For example, use
% "C:\\home\\file.txt" or "C:/home/file.txt" but NOT "C:\home\file.txt"
% SERVER to NEWSRC mapping
%server "hsdndev.harvard.edu" ".jnewrc-hsdndev"
%server "news.uni-stuttgart.de" ".jnewsrc-stuttgart"
% The next line is for those servers that require a password.
%nnrpaccess "HOSTNAME" "USERNAME" "PASSWORD"
%nnrpaccess "HOSTNAME" "USERNAME" "" % Prompt for password
%nnrpaccess "HOSTNAME" "" "" % Prompt for username and password
set hostname "blacksun.org.uk"
set username "paul"
set realname "Paul Walker"
set replyto "paul@blacksun.org.uk"
% Name of signature file to use
set signature ".signature"
% The quote string will be used when following up/replying
set quote_string ">"
% If non-zero, signature will not be included in quoted text of followups
set followup_strip_signature 0
% If set to 1, slrn will not allow you to post articles that contain
% non-quoted lines whose length exceeds 80 characters. If set to 2, a warning
% will be generated.
set reject_long_lines 1
% This regular expression defines lines that are consider to be quoted lines.
% It says that any lines beginning with 0-2 spaces followed by a either
% a >, <, :, |, or = character is a quoted line.
ignore_quotes "^ ? ?[><:=|]"
% This sets the follow-up and reply strings. Here, the following format
% specifiers are recognized:
% %d:date, %r:real name, %f:email address, %s:subject,
% %m:msgid, %n:newsgroups, %%: percent
set followup_string "On %d, %r wrote:"
set reply_string "In %n, you wrote:"
%Custom headers to add to NEW posts
%set custom_headers "Approved: probably not\nX-No-Archive: yes\n"
set custom_headers "X-No-Archive: yes\n"
% Custom headers for followup/reply. These can use format specifiers as
% in the 'followup' string variable.
%set followup_custom_headers "Approved: probably not\nX-No-Archive: yes\n"
%set followup_custom_headers "X-No-Archive: yes\n"
%set reply_custom_headers "X-Comment-to: (%r)\n"
% Headers to show when viewing an articles. This is a comma-separated
% list of strings that specify what headers to show. Note that these
% strings are not regular expressions. However, one may use, e.g.,
% "X-" to match any header beginning with "X-". Similarly, "F" will
% match "From:" and "Followup".
visible_headers "From:,Subject:,Newsgroups:,Followup-To:,Reply-To:,Date:,Approved:"
% WWW browser to use. The 'U' key in article mode searches the current article
% for a URL and then calls X browser if slrn appears to be run in X windows
% and non_Xbrowser otherwise. Note: The second Xbrowser form assumes that
% netscape is already running.
set non_Xbrowser "lynx '%s'"
set Xbrowser "netscape '%s' &"
%set Xbrowser "netscape -remote 'openURL(%s)' &"
% If autobaud is present, output rate will be synced to baud rate
%autobaud
% if non-zero, display first article when entering article-mode.
set show_article 0
% if non-zero, show description of newsgroup if available
%set show_descriptions 1
% column where group descriptions start
%set group_dsc_start_column 40
% If non-zero, backups of the newsrc file are not performed.
set no_backups 0
% 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, slrn will automatically un-subscribe new groups.
% The default is 0.
set unsubscribe_new_groups 0
% 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
% 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 0
% Set to 1 to have slrn scroll by full page instead of by line.
set scroll_by_page 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
% Setting either of these to 0 will enable you to move directly to the
% next article/group without confirmation
set query_next_group 1
set query_next_article 1
% if zero, you will not see the "next group:" prompt. This is NOT the same
% as the 'query_next_group' variable.
%set prompt_next_group 1
% Set this to 0 for no-confirmation on follow, reply, quit, etc...
set confirm_actions 1
% If 0, do not display the name of the author.
% If 1, display subject then name. If 2, display name then subject.
%set author_display 2
% if 1, display author realname, if 0, display full address
%set display_author_realname 1
% If 0, save all groups when writing newsrc file
% if 1, do not save any unsubscribed groups
% if 2, do not save any unread-unsubscribed groups
set write_newsrc_flags 0
% If non-zero, you will be prompted whether or not a Cc header will be
% generated on the followup.
set cc_followup 0
% set cc_followup_string "[This message has also been posted.]"
% Set to 0 to turn off display of ~ at end of article
set use_tilde 1
% Filename where articles you have posted are archived.
set save_posts "News/Sent"
set save_replies "News/Sent_Emails"
%File where failed posts are appended. Use "" to disable saving.
%set failed_posts_file "dead.letter"
% The sendmail command allows you to substitute another mailer. Be sure that
% it implements the same interface as sendmail!
set sendmail_command "/usr/lib/sendmail -oi -t -oem -odb"
%set sendmail_command "/usr/exim/bin/exim -oi -t -oem -odb"
% Name of score file (relative to HOME directory)
set scorefile "News/Score"
% Articles scoring min_high_score and above constitute a high scoring article.
% Articles scoring below max_low_score define a low scoring article.
% Articles scoring at or below kill_score will be killed.
set min_high_score 1
set max_low_score 0
set kill_score -9999
% Name of directory where decoded files are placed (relative to HOME)
set decode_directory "downloads"
% Directory where all other files are saved.
set save_directory "News"
% Directory where postponed articles are placed. (Make sure it exists)
set postpone_directory "News/postponed"
% If non-zero, abort posting or email operation if the file was not modified
% by the editor.
set abort_unmodified_edits 1
% Command used to invoke editor. In the following example, %s represents
% the file name and %d represents the starting line number
%set editor_command "jed '%s' -g %d -tmp"
%set editor_command "joe '%s'"
set editor_command "~/.edit.sh '%s'"
% Editor command for editing posts, mail, and score files. Note the use of
% single quotes around %s. This is only necessary if you use filenames
% with spaces in them.
%set mail_editor_command "jed '%s' -g %d -tmp"
%set post_editor_command "jed '%s' -g %d -tmp"
%set score_editor_command "jed '%s' -g %d -tmp"
% If non-zero, files used for posting, followup and reply will be regarded as
% temporary files in the directory specified by the TMPDIR environment
% variable or /tmp.
set use_tmpdir 0
% 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 7
%set display_score 1
% If 1, a header with a new subject will start a new thread.
set new_subject_breaks_threads 0
% If non-zero, threads will be uncollapsed when a group is entered
set uncollapse_threads 1
% If non-zero, slrn will read the active file when starting. This may lead to
% faster startup times IF your network connection is fast. If it slow,
% DO NOT USE IT. If you can, I recommend setting it to 1.
set read_active 1
% If non-zero and read_active is zero, slrn will attempt to use the NNTP
% XGTITLE command when listing unsubscribed groups.
%set use_xgtitle 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 6
% 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 100
% Numes of lines to read from the server between percentage counter updates
% This number will vary with the speed of the connection to your server
set lines_per_update 100
% Valid character sets: isolatin, ibm850, next, koi8
% ibm850 is the default on OS/2
% next is the default on NeXT machines
% isolatin is the defaule on all other systems.
%set charset isolatin
%---------------------------------------------------------------------------
% Mime support
%---------------------------------------------------------------------------
% set use_mime 1
%set mime_charset "iso-8859-1"
%set mime_charset "utf-8"
% If non-zero, call metamail for mime formats that slrn does not handle
set use_metamail 0
set metamail_command "metamail"
% If non-zero, header numbers will be displayed in the left-margin of the
% header window. These numbers may be used as ``thread selectors''.
set use_header_numbers 1
% If non-zero, prompt for reconnection if the NNTP connection drops. If zero,
% attempt reconnection without asking user.
%set query_reconnect 1
% 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 2
% Help text to be displayed at bottom of screen in various modes:
%set art_help_line "bla bla"
%set header_help_line "more bla bla"
%set group_help_line "and even more"
%---------------------------------------------------------------------------
% Local spool configuration
%---------------------------------------------------------------------------
% set spool_inn_root "/var/lib/news"
% set spool_root "/var/spool/news"
% set spool_nov_root "/var/spool/news/over.view"
%
%% -- The following filenames are relative to spool_inn_root unless they
%% start with "/".
% set spool_active_file "data/active"
% set spool_activetimes_file "data/active.times"
% set spool_newsgroups_file "data/newsgroups"
%% -- The following filenames are relative to spool_nov_root
% set spool_nov_file ".overview"
%If set to 1, then spool.c will actually check each article file exists when
%reading an overview file. This adds a perceptible delay (especially in a
%large spool directory), so I've made it an option. With some servers it is
%almost redundant, whereas with others which don't expire entries from
%overview files regularly, it's almost vital. If the users sees a lot of
%"article not available" errors, they should probably try turning it on.
set spool_check_up_on_nov 0
%---------------------------------------------------------------------------
% GroupLens Support
%---------------------------------------------------------------------------
%set use_grouplens 1
%color grouplens_display blue white
%set grouplens_host "grouplens.cs.umn.edu"
%set grouplens_port 9000
%set grouplens_pseudoname "YOUR_PSEUDONAME"
%grouplens_add "rec.cooking.recipes"
%grouplens_add "comp.os.linux.misc"
%---------------------------------------------------------------------------
% Colors
%---------------------------------------------------------------------------
color header_number "lightblue" "black"
color header_name "lightblue" "black"
color normal "lightgray" "black"
color error "red" "lightgray"
color status "yellow" "blue"
color group "black" "lightgray"
color article "lightgray" "black"
color cursor "brightgreen" "lightgray"
color author "magenta" "black"
color subject "brightblue" "black"
color headers "brightblue" "black"
color menu "yellow" "blue"
color menu_press "blue" "yellow"
color tree "red" "black"
color quotes "yellow" "black"
color thread_number "blue" "lightgray"
color high_score "red" "lightgray"
color signature "red" "black"
color description "blue" "lightgray"
color tilde "green" "black"
color response_char "green" "lightgray"
%-----------------------------------------------------
% Monochrome attributes for monochrom terminals. One or more attributes
% may be specified.
%-----------------------------------------------------
mono normal "none"
mono header_number "none"
mono header_name "bold"
mono error "blink" "bold"
mono status "reverse"
mono group "bold"
mono article "none"
mono cursor "bold" "reverse"
mono author "none"
mono subject "none"
mono headers "bold"
mono menu "reverse"
mono menu_press "none"
mono tree "bold"
mono quotes "underline"
mono thread_number "bold"
mono high_score "bold"
mono signature "none"
mono description "none"
mono response_char "bold"
%------------------------ Group keymap------------------------------------
setkey group post_postponed "\eP"
setkey group add_group "A" % add a new newsgroup
setkey group bob "\e<" % beg of buffer
setkey group bob "^K\eOA"
setkey group bob "^K\e[A"
setkey group catchup "C" % mark group as read
setkey group line_down "\eOB" % next group
setkey group line_down "\e[B"
setkey group line_down "^N"
setkey group eob "\e>" % end of buffer
setkey group eob "^K\eOB"
setkey group eob "^K\e[B"
setkey group group_search_forward "/"
setkey group help "?"
setkey group page_down "^D" % next page of groups
setkey group page_down "\e[6~"
setkey group page_down "^V"
setkey group page_up "\eV" % previous page of groups
setkey group page_up "^U"
setkey group page_up "\e[5~"
setkey group post "P"
setkey group quit "Q"
setkey group redraw "^L"
setkey group redraw "^R"
setkey group refresh_groups "G"
setkey group save_newsrc "X"
setkey group select_group "\r" % read articles from group
setkey group select_group " "
setkey group subscribe "S" % subscribe to group (See unsubscribe)
setkey group suspend "^Z"
setkey group toggle_group_formats "\033A"
setkey group toggle_scoring "K"
setkey group toggle_hidden "l"
setkey group toggle_list_all "L"
setkey group unsubscribe "U" % unsubscribe
setkey group line_up "\eOA" % previous line
setkey group line_up "\e[A"
setkey group line_up "^P"
%---------------- Article mode keymap -------------------------------------
setkey article post_postponed "\eP"
setkey article goto_article "j"
setkey article pipe "|"
setkey article skip_quotes "\t"
setkey article header_page_up "^U"
setkey article header_page_up "\e[5~"
setkey article header_page_up "\eV"
setkey article header_page_down "\e[6~"
setkey article header_page_down "^D"
setkey article header_page_down "^V"
setkey article post "P"
setkey article toggle_header_formats "\ea"
setkey article get_parent_header "\ep"
setkey article catchup_all "c"
setkey article catchup_all "\ec"
setkey article uncatchup_all "\eu"
setkey article catchup "\eC"
setkey article uncatchup "\eU"
setkey article article_page_down " " % scroll to next page of article or select article
setkey article article_page_up "^?" % scroll to next page of article
setkey article article_page_up "b" % (scroll_up or article_pageup)
setkey article article_line_up "\e\e[A" % Scroll article one line up
setkey article article_line_up "\e\eOA"
setkey article article_line_down "\e\e[B" % Scroll article one line down
setkey article article_line_down "\e\eOB"
setkey article article_line_down "\r"
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
setkey article delete "d" % Mark current article as read and move to the next unread one
setkey article header_line_down "^N" % Move to the next article
setkey article header_line_down "\e[B"
setkey article header_line_down "\eOB"
setkey article mark_spot ";" % Set mark at current article
setkey article exchange_mark "," % Set the mark and return to the location of the previous mark.
setkey article followup "f" % Followup on the article
setkey article forward "F" % Forward the article to someone
setkey article help "?" % Show help screen
setkey article hide_article "H" % Hide the article window.
setkey article zoom_article_window "z" % Zoom/UnZoom article window
setkey article article__eob ">" % goto the end of the article
setkey article article_left "\eOD"
setkey article article_left "\e[D"
setkey article next "n" % next unread article
setkey article skip_to_next_group "N" % next group
setkey article previous "p" % previous unread article
setkey article quit "q" % Quit back to group mode.
setkey article redraw "^L" % Redraw the display
setkey article redraw "^R"
setkey article reply "r" % Reply to the author of the current article
setkey article article_bob "<" % goto the beginning of the article
setkey article article_right "\e[C"
setkey article article_right "\eOC"
setkey article save "O" % append to a file in Unix mail format
setkey article subject_search_forward "s" % Search forward/backward for an article with a specific subject
setkey article subject_search_backward "S"
setkey article suspend "^Z" % Suspend the newsreader
setkey article toggle_collapse_threads "\et"
setkey article toggle_rot13 "\eR"
setkey article toggle_sort "\eS"
setkey article toggle_headers "t" % Toggle the display of some headers on and off
setkey article toggle_quotes "T"
setkey article undelete "u" % Mark the current article as unread
setkey article header_line_up "^P" % Move to the previous article
setkey article header_line_up "\eOA"
setkey article header_line_up "\e[A"
setkey article header_bob "\e<" % Move to first article in list
setkey article header_eob "\e>" % Move to last article in list
setkey article shrink_article_window "^^" % Ctrl-6 or Ctrl-^ % Shrink header window
setkey article enlarge_article_window "^" % Shift-6 or just ^ % Enlarge header window
setkey article next_high_score "!"
setkey article print "y"
setkey article wrap_article "W" % toggle wrapping
%setkey article skip_to_prev_group "" % No default binding
%setkey article fast_quit "" % No default binding
% 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 up "\eA"
setkey group down "\eB"
setkey article down "\eB"
setkey article up "\eA"
setkey article left "\eD"
setkey article right "\eC"
#endif
% Command prompt keymap
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 deleol "^K" % Delete to End of line
setkey readline trim "\e/" % Trim whitespace
setkey readline quoted_insert "^Q" % Quoted insert
%interpret /usr/local/share/slrn/search.sl
interpret /home/paul/.slrn/approved.sl

105
tfrc Normal file
View File

@@ -0,0 +1,105 @@
;; /lp on
/visual on
/set clock 0
/set maildelay 0
/set gethostbyname nonblocking
/set MYLIBDIR ~/lib/Tf
/log ~/data/logs/tf.log
/eval /lcd %{MYLIBDIR}
/if /test TERM=/"adm*"%; /then \
/eval /echo %{TERM}....%; \
; /setenv TERM=tvi912 %;\
/else \
/if /test TERMCAP=~""%; /then \
/visual on%; \
/isize 3%; \
/else \
/if /test NOSCREEN=~"1"%; /then \
/echo Not really a vt100!%; \
/else \
/visual on%; \
/isize 3%; \
/endif%; \
/endif%;\
/endif
;/vis
;/undef vis
/wrapspace 4
/set cleardone on
/set ignore_sigquit on
/set matching regexp
/set alias new
;; Load some stuff
/require tools.tf
/require worldqueue.tf
/require alias.tf
/require color.tf
/require completion.tf
;;; Load my extra commands & utilities
/load commands.tf
;;; Various signal triggers
/eval /def -F -T'lp.EW' -hSIGUSR1 = /send idlemsg is doing weird things.
;/eval /def -F -T'lp.EW' -hSIGUSR2 = /send idlemsg is probably playing xtet42 against Lazarus
/eval /def -F -T'lp.EW' -hSIGHUP = /send quit
/hook PROCESS = /echo %% Process started with pid %1
/sub full
;;; Tab completion. Comment out until you have read the help
;/quote /set completion_list= 'People
/load Worlds
/load macros.tf
;; If we are running in an X display
/if /test TERM=~"xterm"%; /then \
/set TERM=vt220 %;\
/def -i -h'WORLD' = /xtitle tf:%fg_world %;\
/echo Titlebar hook enabled - xterm mapped to vt220 termcap %;\
/def -i -p1 -h'RESIZE' resize_hook = /recall $[%2 - %{isize} - 3] %;\
/endif
;; Also, the world switching hook should work under vt100 screen as well
/if /test STY!~""%; /then \
/hook WORLD = /xtitle tf:%fg_world %;\
/echo Running under Screen %;\
/endif
;; If on an ADM, fix some key bindings
/if /test TERM=/"adm*"%; /then \
/unbind ^K %;\
/unbind ^H %;\
/unbind ^L %;\
/bind ^K = /dokey deol %;\
/bind ^H = /dokey bspc %;\
/bind ^L = /dokey redraw %;\
/bind ^[Q = /dokey LEFT %;\
/set clock 24-hour%;\
/def adm = /purge Hilite*%;\
/set emulation ansi_strip%;\
/nohilite%;\
/endif
;; Some other keys
;; forward world
/def -ib'[5~' = /dokey socketf
/def -ib'[6~' = /dokey socketb
/def -ib'' = /dokey recallb
/def -ib'Ow' = /dokey recallf
/def -ib'' = /dokey recallb
/def -ib'' = /dokey recallf
;; A useful function
/def divider = /echo -aCred ============================================================
;;/hook ACTIVITY|DISCONNECT {oaktree|Music}* = /world %1
;;/hook ACTIVITY|DISCONNECT {Music|oaktree}* = /world %1
/sub off