From: Michael Prokop Date: Tue, 12 Jun 2012 13:58:30 +0000 (+0200) Subject: Drop grml-mutt, grml-slrn + accordingly grml-config-user X-Git-Tag: v2.1.0~3 X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=commitdiff_plain;h=149eeaf15d67ac3006dddd3f392e4b195b8d1293 Drop grml-mutt, grml-slrn + accordingly grml-config-user We don't ship mutt nur slrn any longer and no one is maintaining those scripts. If anyone is really using this script let's find those users with this change. :) --- diff --git a/debian/control b/debian/control index c340e93..7c7042a 100644 --- a/debian/control +++ b/debian/control @@ -13,15 +13,15 @@ Bugs: mailto:bugs@grml.org Package: grml-scripts Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, dialog, perl, zsh, dash, links | w3m | links2, screen, grml-etc-core -Suggests: python, grml-rebuildfstab, grml-network, grml-files, mutt, slrn, grml-docs, dirvish, sudo, idesk, python-dbus, notification-daemon, grml-quickconfig, lzop, alsa-utils +Suggests: python, grml-rebuildfstab, grml-network, grml-files, grml-docs, dirvish, sudo, idesk, python-dbus, notification-daemon, grml-quickconfig, lzop, alsa-utils Description: Collection of little tools - This package contains a lot of scripts and is only really suited for - full Grml systems. It provides, amongst others: grml-mutt, grml-slrn, - iimage, make_chroot_jail, qma, myip and lodgeit. + This package contains a lot of scripts and is only really suited + for full Grml systems. It provides, amongst others: iimage, + make_chroot_jail, qma, myip and lodgeit. . - Notice: not all the packages which are required for all the scripts - are in the "Depends:" line. If you want to get a full featured - grml-scripts package install the packages from the "Suggests:" line - too or just use the full Grml system. + Notice: not all the packages which are required for all the + scripts are in the "Depends:" line. If you want to get a full + featured grml-scripts package install the packages from the + "Suggests:" line too or just use the full Grml system. . For more details take a look at the grml-scripts manpage. diff --git a/debian/rules b/debian/rules index 6681dc6..de2fb39 100755 --- a/debian/rules +++ b/debian/rules @@ -71,12 +71,10 @@ binary-arch: build install /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-info.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-init.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-lock.1.gz \ - /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-mutt.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-soundtest.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-lang.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-resolution.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-runtty.1.gz \ - /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/grml-slrn.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/iimage.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/lodgeit.1.gz \ /usr/share/man/man1/grml-scripts.1.gz /usr/share/man/man1/logview.1.gz \ diff --git a/manpages/grml-scripts.1 b/manpages/grml-scripts.1 index 3e08a0e..ae9e6fb 100644 --- a/manpages/grml-scripts.1 +++ b/manpages/grml-scripts.1 @@ -33,16 +33,12 @@ collect hardware information and write it to info.tar.bz2 start browser with documentation for Grml .SS grml-lock lock virtual consoles -.SS grml-mutt -configuration script for mailclient mutt .SS grml-resolution change X resolution via a simple menu frontend .SS grml-runtty runs arbitrary programs on the specified tty .SS grml-lang switch keyboard layout -.SS grml-slrn -configuration script for newsreader slrn .SS iimage create statical webgallery .SS lodgeit diff --git a/usr_bin/grml-config-user b/usr_bin/grml-config-user deleted file mode 100755 index 6882a31..0000000 --- a/usr_bin/grml-config-user +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh -# Filename: grml-config-user -# Purpose: interface for configuring userland software on grml system -# Authors: grml-team (grml.org), (c) Nico Golde , (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -PATH=${PATH:-'/bin/:/sbin/:/usr/bin:/usr/sbin'} - -# set up some variables -DIALOG=$(which dialog) -PN=$(basename $0) - -allover() { -MENU=$($DIALOG --stdout --clear --title "$PN" --menu \ -"Configure userland tools." 0 0 0 \ -"grml-mutt" "Configure the mutt MUA" \ -"grml-slrn" "Configure the slrn newsreader" \ -"exit" "Exit this program") - -retval=$? - -case $retval in - 0) - if [ "$MENU" = "grml-mutt" ]; then - exec grml-mutt - fi - if [ "$MENU" = "grml-slrn" ]; then - exec grml-slrn - fi - if [ "$MENU" = "exit" ]; then - exit - fi - ;; - 1) - echo "Cancel pressed.";; - 255) - echo "ESC pressed.";; -esac -} - -allover - -## END OF FILE ################################################################# diff --git a/usr_bin/grml-mutt b/usr_bin/grml-mutt deleted file mode 100755 index 643e2d0..0000000 --- a/usr_bin/grml-mutt +++ /dev/null @@ -1,428 +0,0 @@ -#!/bin/sh -# Filename: grml-mutt -# Purpose: configuration script for mutt -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -PATH=${PATH:-'/bin/:/sbin/:/usr/local/bin:/usr/bin:/usr/sbin'} -PN=$(basename "$0") - -if [ -r /etc/grml/script-functions ] ; then - . /etc/grml/script-functions - check4progs dialog mutt || echo "Warning - mutt is not available. Continuing anyway.">&2 -fi - -writemuttrc() { -cat > $MUTTRC << EOF -# Filename: .muttrc -# Purpose: configuration for mailclient mutt, created by 'grml-mutt' -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -# important variables - adjust them if necessary - set realname="$REALNAME" - set from="$MAILADDR" - -# mailboxes - set pop_host="$POP3" -$POPDATA - mailboxes $IMAP -$IMAPDATA -# some default options: - set allow_8bit # send data as it is. no conversion. - unset arrow_cursor # Show current mail with an inverse bar. - set ascii_chars # set: use ASCII characters to build the thread tree - unset autoedit # call editor without prompting for To: and Subject:? - set auto_tag=yes # the next operation applies to the tagged messages automatically - unset confirmappend # set: prompt for confirmation on appending mail to folder - set confirmcreate # set: prompt for confirmation on creation of folders - set copy # Always keep a copy of my mails! - set delete=ask-yes # ask before deleting any messages - set edit_headers # edit all headers lines in the editor - set editor=vim # use Vim as the editor (Vi IMproved www.vim.org) - set folder=~/Mail # directory with all mail folders - unset followup_to # do not generate a Followup-To header -# set force_name # set: save outbound mail by username - set hidden_host # do not use a hostname in the address - PROBLEMATIC! - set history=100 # number of input lines for prompts to remember - set include # set: include mail as quoted text in replies - unset mark_old # set: make distinction between New mail and Old mail. - set mime_forward=ask-yes # ask: attach message - or just quote it? - unset move # do not move read mails from mailbox to $mbox (was: "set hold") - set pager_context=1 # number of lines that overlap on paging -# set pager_index_lines=0 # number of lines to see from the index - set pager_stop # "next_page" won't jump to next message at end of messages - set postponed=+postponed # where save postponed messages? -# set print_command="mp|lpr" # pipe message to "mp" for formattting - then on to "lpr" - unset prompt_after # set: gives you a prompt when pager exits - set quit=ask-yes # ask before exiting - set quote_regexp="^>" # some people just use '>' - *sigh* - set read_inc=10 # '10': show count number for every tenth mail - set record=+outbox # outbox / where to save outgoing mails - set recall=ask-yes # do not prompt for recalling postponed mails with 'm' - set reply_to=ask-yes # "reply": set: Use address in Reply-To? - set reverse_alias # show the name of sender as set with my alias for him - set reverse_name # reply as the user to whom the mail was sent to -# set save_name # save outbound mail to =username if it exists -# set shell=zsh # use the zsh for shell commands - set sort=threads # sorting method - I definitely like "threads" best - set status_on_top # set: present the status bar at top, ie before the index - set strict_threads # set: use references: for threading only, ie do not - # thread by subject or in-reply-to - set tilde # show non-existant lines of text with a tilde at begin-of-line - set tmpdir="/tmp" # directory where temporary files are to be placed - set to_chars="X+TCF" # message flags: non-personal,personal,To:,Cc:,From: - set use_from # 'set from=' requires a 'set use_from'! -# set use_envelope_from # when set, mutt will use $envelope_from_address as the envelope sender - set write_inc=10 # update number after each tenth read mail - -# Sending mail: -# set sendmail="/usr/bin/msmtp" # which sendmail program should be used? -# set smtp_url="smtp://yourusername@smtp.example.org:port/" # versions >=1.5... - # ... of Mutt have built-in SMTP support -# set smtp_pass="password" # password for smtp_url option - -# Options with a long value: -# set alternates=... - set attribution="* %n <%a> [%(%y%m%d %H:%M)]:" # how to cite the author - set reply_regexp="^((aw|antw.?|antwort|re|r e|r?f|sv):[ \t]*)*" - -# Format Options - set forw_format="(forw) %s" - set index_format="%4C %Z %[!%y%m%d] %-17.17F (%3l) %s" - set pager_format="%S [%C/%T] %n (%l) %s" - set status_format="%v: %f (%s) [%M/%m] [N=%n,*=%t,new=%b]" - -# Show the "text/plain" part *before* the "text/html" part: - alternative_order text/plain text/html - auto_view text/html - -# KEY BINDINGS - bind index zt current-top - bind index zz current-middle - bind index zb current-bottom - -# HEADER DISPLAY - ignore * - unignore from: date: subject: to: cc: reply-to: - unignore sender: - unignore priority: importance: - unignore organization organisation - unignore mail-followup-to: - unignore resent- x-resent -# unignore user-agent: x-agent: x-mailer: x-newsreader: x-mailing-list: -# unignore x-editor -# unignore message-id: newsgroups: posted-to: posted-and-mailed: -# unignore x-also-posted-to: x-newsgroups: -# unignore delivered-to x-envelope-to: -# unignore x-accept-language - unhdr_order * - hdr_order Sender: From From: Reply-To: Subject: Organization: Date: Message-Id: User-Agent: X-Editor: X-Mailer: X-Newsreader: X-Agent: To: Cc: Newsgroups: X-Resent Followup-To: Mail-Followup-To: -EOF -} - -lightcolors() { -cat >> $MUTTRC << EOF - -## color setup - -## some misc stuff: - color normal black white - color error red white - color indicator blue green - color status white blue - color tree blue white - color hdrdefault red white - color quoted blue white - color quoted1 green white - color quoted2 magenta white - color quoted3 cyan white - color tilde yellow black - color signature blue white - color search white blue # "search" - matches found with search within the internal pager. - color markers red black # "markers" indicate a wrapped line when showing messages with looong lines. - color bold green black - color underline yellow black - -## index-colors: - uncolor index * - -# mail from myself *and* to myself (TODO items): -# color index black brightyellow '~p ~f prokop' - -# Flagged Messages are important! - color index blue white ~N # New - color index magenta default ~T # Tagged - color index blue black ~D # Deleted Mails - use dark color as these are already "dealt with". - color index red default ~O # old messages - -# mail from important people (like myself ;-): -# color index white red '~f prokop' - -# Mails with no obvious addresses (empty To: and Cc: lines) - color index cyan white "! ~C ." - -# "DONE mails" ie those I have already replied to. - color index blue white '~Q' - -# non-multipart mails which are tex/html almost always are spam: - color index brightmagenta white "~h 'Content-Type: text/html'" - -# Sent to "Undisclosed Recipients": - color index white magenta '~C Undisclosed.*Recipients' - -# When the Subject indicates a reply (with ":re" but without "Fwd"!) -# then there *must* be a reference to the previous message! -# So if there is neither an In-Reply-To nor a References line -# then it must have been sent with a crappy mailer.... - color index yellow white "~s re: ! ~s fwd: ! ~x . ! ~h 'in-reply-to: '" - -# No characters in body -> SPAM! - color index white white "! ~b ." - - color index brightred black ~F # Flagged - -## body-colors: - -# highlight important keywords - color body brightyellow black "grml" - -# URLs (General Internet addresses): - color body yellow red "(finger|ftp|http|news|telnet)://[^ >]*" - color body yellow red "" -# web address without "http": - color body yellow red "www\\.[-.a-z0-9]+\\.[a-z][a-z][a-z]?([-_./~a-z0-9]+)?" - -# HTTPS addresses: - color body yellow red "https://[^ >]*" - -# FTP addresses: - color body yellow red "ftp://[^ ]*" - -# HTTP addresses: - color body yellow red "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]" - -# File names ("/path/file") -# color body brightgreen white "\\~?\(/[-_.,a-zA-Z0-9{}äöüß]+\)+" - color body blue white "\\~?\(/[-_.,a-zA-Z0-9{}äöüß]+\)+" - -# Path names ("/path/") - color body brightred white "\(/[-_.a-zA-Z0-9]+\)+/" - -# Variables ("$HOME") - color body brightmagenta white "\\$[a-zA-Z][-_a-zA-Z]+" - -# Attribution line: -# color body red white "^[*] .*:$" - -## abbreviations and "SCREAMING IN CAPS" in body: -# The following includes umlauts - but that's quite clunky. -# color body brightyellow red "[A-ZÄÖÜ][-A-ZÄÖÜ]+[A-ZÄÖÜ][ .!?]?" - -# "+USE_GNU_REGEX": -# When you use "+USE_GNU_REGEX" then you can also make use -# of "start of word" ("\<") and "end of word" ("\>"): - color body red white "\\<[-A-Z']{3,}\\>" - -# *Emphasized*, /emphasized/, and _emphasized_ words: -# color body brightred black "[*/_]+ *[- &[:alnum:]]+ *[*/_]+" -# this would catch false positives of the kind _foo* and /bar_ -# so we should choose matching pairs only: - color body brightred white "[*][-[:alnum:]]+[*]" - color body brightred white "/[-[:alnum:]]+/" - color body brightred white "_[-[:alnum:]]+_" - -# Smileys: :-) ;-) :-| :-/ :-( - color body brightyellow white "[;:]-[)/(|]" -# Grinning: "grin" ([g]) and "big grin" ([bg]): - color body blue red "<[Gg]>" - color body blue red "<[Bb][Gg]>" - -# Border Lines of length three or more. -# (Several Newsletters use border lines..) - color body green white "[-_=+~/\*]{3,}" - -# Extensive use of exclamation and question marks: -# "!!!" "???" - color body red white "[!?]{3,}" - -# Percentages ("Save xx.x %!") - color body brightgreen white "[.0-9]+ ?%" - -# Copyright (C) and Registered Trademark (r) - color body red white "[(][cr][)]" - color body red white "\\(c\\)" - -# Year Numbers 1980-2002 - color body blue white "19[89][0-9]" - color body blue white "200[012]" - -# Phone Numbers: - color body blue white "1-[0-9]{3}[- ][-0-9]+ +ext.? [0-9]+" - color body blue white \ -"(tele)?(cell|fax|fon|phone|tel)[.: ]+[+]?[- 0-9/()]{4,}[0-9]" - -# RTFM! -# " man word" - color body white red "^ +[$]? *man \\w+" - -# Lists -# bulleted list: -# * one -# * two -# * three -# dashed list: -# - one -# - two -# - three -# color body red black "^ *[-*] +" -# this pattern yields many false positives as it -# spans lines for which there is no syntax language. -# this is easier with Vim's syntax coloring. - color body red white "^ *[-*] +" - -# special IP host addresses: -# 192.x.x.x - color body white blue "129.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" - color body white blue "193.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" - -# HTML tags - color body yellow black "" - -# Emphasis by interspersed spaces -# Example: E M P H A S I S - color body red white '\<\w( +\w\>)+' - -# verbatim marks (#v+ till #v-) - color body yellow red ^\#v[-+] - - color attachment black white -EOF -} - -dialog --stdout --title "$PN" --msgbox "Welcome to $PN! - -This script will create a simple base -configuration for the mailclient mutt. - -Report bugs, send wishes and feedback to the grml team: -http://www.grml.org/ - contact (at) grml.org -" 13 65 - -GETREALNAME=$(dialog --stdout --title "$PN" --inputbox "Your real name (eg 'John GRML User'):" 0 56) || exit 0 -REALNAME=${GETREALNAME%/*} - -GETMAILADDR=$(dialog --stdout --title "$PN" --inputbox "Your main mail address (eg 'joedoe@grml.org'):" 0 56) || exit 0 -MAILADDR=${GETMAILADDR%/*} - -askpop(){ - GETPOPUSER=$(dialog --stdout --title "$PN" --inputbox "Enter username for POP3 account" 0 0) - POPUSER=${GETPOPUSER} - - GETPOPPWD=$(dialog --stdout --title "$PN" --passwordbox "Enter password for POP3 account (typing hidden)" 0 0) - POPPWD=${GETPOPPWD} -} - -ASKPOP=$(dialog --stdout --title "$PN" --yesno "Configure POP3?" 0 0) -retval=$? - -case $retval in - 0) - GETPOP3=$(dialog --stdout --title "$PN" --inputbox "Your POP3 account (pop[s]://[user]@hostname[:port]):" 0 56 "pop://") || exit 0 - POP3=${GETPOP3} - askpop && \ -POPDATA=" set pop_user=\"$POPUSER\" - set pop_pass=\"$POPPWD\" -" - ;; -esac - -askimap(){ - GETIMAPUSER=$(dialog --stdout --title "$PN" --inputbox "Enter username for IMAP account" 0 0) - IMAPUSER=${GETIMAPUSER} - - GETIMAPPWD=$(dialog --stdout --title "$PN" --passwordbox "Enter password for IMAP account (typing hidden)" 0 0) - IMAPPWD=${GETIMAPPWD} -} - -ASKIMAP=$(dialog --stdout --title "$PN" --yesno "Configure IMAP?" 0 0) -retval=$? - -case $retval in - 0) - GETIMAP=$(dialog --stdout --title "$PN" --inputbox "Your IMAP account (imap[s]://[user@]hostname[:port]/mailbox):" 0 65 "imap://") || exit 0 - IMAP=${GETIMAP} - askimap && \ -IMAPDATA=" set imap_user=\"$IMAPUSER\" - set imap_pass=\"$IMAPPWD\" -" - ;; -esac - -GETCOLOR=$(dialog --stdout --title "$PN" \ - --radiolist "Which color setup do you want to use?" 10 65 2 \ - dark "dark color setup (default)" on \ - light "light color setup" off) -retval=$? - -case $retval in - 0) COLOR=$GETCOLOR ;; - *) exit 1 ;; -esac - -writecolors() { - if [ "$COLOR" = 'light' ] ; then - lightcolors - fi -} - -GETMUTTRC=$(dialog --stdout --title "$PN" --inputbox "Choose a filename for this configuration:" 0 56 "$HOME/.muttrc") || exit 0 -MUTTRC=${GETMUTTRC} - -WRITEMUTTRC=$(dialog --stdout --title "$PN" --yesno "Write $MUTTRC?" 5 65) -retval=$? - -case $retval in - 0) - if [ -f "$MUTTRC" ] ; then - dialog --stdout --title "$PN" --yesno "$MUTTRC exists. Overwrite?" 5 65 - retval=$? - case $retval in - 0) - writemuttrc && writecolors && \ - dialog --stdout --title "$PN" --msgbox "Writing $MUTTRC was successful." 7 65 || \ - { dialog --stdout --title "$PN" --msgbox "Error $?: writing $MUTTRC failed." 7 65 ; exit 1 ; } - ;; - esac - else - writemuttrc && writecolors && \ - dialog --stdout --title "$PN" --msgbox "Writing $MUTTRC was successfull." 7 65 || \ - { dialog --stdout --title "$PN" --msgbox "Error $?: writing $MUTTRC failed." 7 65 ; exit 1 ; } - fi - ;; -esac - -dialog --stdout --title "$PN" --msgbox "Thanks for using $PN! - -More information on mutt: - -Manuals: man 1 mutt - man 5 muttrc - -Webpages: -www.mutt.org -wiki.mutt.org -www.spinnaker.de/mutt/ -www.michael-prokop.at/mutt/ - -####################################################### - -Report bugs, send wishes and feedback to the grml team: -http://www.grml.org/ - contact (at) grml.org -" 24 65 - -## END OF FILE ################################################################# diff --git a/usr_bin/grml-slrn b/usr_bin/grml-slrn deleted file mode 100755 index 763296c..0000000 --- a/usr_bin/grml-slrn +++ /dev/null @@ -1,350 +0,0 @@ -#!/bin/sh -# Filename: grml-slrn -# Purpose: configuration script for slrn -# Authors: grml-team (grml.org), (c) Michael Prokop -# Bug-Reports: see http://grml.org/bugs/ -# License: This file is licensed under the GPL v2. -################################################################################ - -PATH=${PATH:-'/bin/:/sbin/:/usr/local/bin:/usr/bin:/usr/sbin'} -PN=$(basename "$0") -USER=$(grep \`whoami\` /etc/passwd | cut -d: -f5 | cut -d, -f1) -HOST=$(hostname -f) - -if [ -r /etc/grml/script-functions ] ; then - . /etc/grml/script-functions - check4progs dialog slrn || { echo "Sorry, can't continue. Exiting.">&2 ; exit 1 ; } -fi - -[ -z "$EDITOR" ] && EDITOR='vim' -[ -z "$NNTPSERVER" ] && NNTPSERVER="news.`hostname`" - -# some functions used in the interactive part -testfiles() { - [ -d $HOME/News ] || mkdir $HOME/News - [ -f $HOME/.slrn_scoring ] || touch $HOME/.slrn_scoring -} - -writeslrnrc() { -cat > $SLRNRC << EOF -% Filename: .slrnrc -% Purpose: configuration for newsreader slrn, created by 'grml-slrn' -% Authors: grml-team (grml.org), (c) Michael Prokop -% Bug-Reports: see http://grml.org/bugs/ -% License: This file is licensed under the GPL v2. -%############################################################################### - -%############################################################################### -% Ressources: -% TFM: http://slrn.sourceforge.net/manual/slrn-manual.html -% Andrew Preater's .slrnrc: http://www.preater.f9.co.uk/slrn/slrnrc.gz -% Jurriaan's page: http://www.xs4all.nl/~thunder7/ -% Emmanuele's page: http://digilander.libero.it/ebassi/slrn.html -% Sven's site: http://www.guckes.net/slrn/ -% tsca's s-lang macros: http://www.geocities.com/tsca.geo/slang.html -% Tomasz K³oczko's slrn-stuff: http://cvs.pld.org.pl/slrn-pl/ -% Tomasz K³oczko's macros: http://cvs.pld.org.pl/slrn-pl/macros -% jbn's S-Lang code: http://forestfield.org/slrn/ -% S-lang regexps: http://www.s-lang.org/doc/html/slang-18.html -%############################################################################### - -% important variables - adjust them if necessary - set username "$USERNAME_SLRN" - set hostname "$HOSTNAME_SLRN" - set realname "$REALNAME_SLRN" - set organization "www.grml.org" -% set replyto "devnull@grml.org" - -% set signature "signature_ng" -% set signoff_string "-mika-" - - server "$NEWSSERVER" ".newsrc_$NEWSSERVER" - -% 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.isp.tld" "username" "password" - - set write_newsrc_flags 0 - - set generate_message_id 0 - set generate_date_header 1 - set read_active 1 - - set editor_command "$EDITOR -f +%d '%s'" - set mail_editor_command "mutt -H '%s'" - set score_editor_command "$EDITOR '%s'" % $HOME/.slrn_scoring" - set abort_unmodified_edits 1 - set metamail_command "metamail" - set non_Xbrowser "screen -t 'url' $BROWSER %s" - set Xbrowser "screen -t 'url' $BROWSER %s" - -% Command to use for printing -#ifdef UNIX - set printer_name "muttprint" -#elifdef WIN32 - % set printer_name "MyPrinter" -#endif - - set save_posts "News/My_Posts" - set save_replies "News/My_Replies" - set failed_posts_file "~/dead.letter" - - set scorefile "$HOME/.slrn_scoring" - set decode_directory "News" - set save_directory "News" - set postpone_directory "News/postponed" - set followup_string "* %r <%f> wrote:" - set followup_strip_signature 0 - ignore_quotes "^ *[a-zA-Z-]*>" "^ *[\]|)]" "^ *:[^-()^]" - set reply_string "* %r <%f> [%n]: - set cc_followup 1 - set cc_post_string "[This message has also been posted to %n.]" - - header_display_format 0 "%F%-5S%-5l: [%20r] %t %70s %-12g[%10d]" - 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]" - -% How to display the groups index - group_display_format 0 " %F%-5u %n%45g%d" - group_display_format 1 " %F%-5u [%-6t] %n" - group_display_format 2 " %F [%-5u|%-6t] %n%45g%d" - group_display_format 3 " %F%-5u %n%50g%-8l-%h" - - set spoiler_display_mode 1 - - set use_mime 1 -% set charset isolatin -% set mime_charset "iso-8859-15" - - set sorting_method 5 - set check_new_groups 1 % let slrn check for new newsgroups - set unsubscribe_new_groups 1 % new groups are unsubscribed by default - - set beep 2 - set new_subject_breaks_threads 0 % No, no! - - visible_headers "Subject:,From:,Organization:,Newsgroups:,Date:,Followup-To:,Mail-Copies-To:,Reply-To:,Message-ID:,Supersedes:,User-Agent,Approved,X-Mailer,X-Newsreader:,X-Posting-Agent:,X-Http-User-Agent:,X-,!X-Trace:,!X-Complaints-To:,!X-Face:,!X-MSMail-Priority:,!X-MimeOLE:,!X-Priority:,!X-Accept-Language:" - - set process_verbatim_marks 1 - set simulate_graphic_chars 1 - set display_cursor_bar 0 - set scroll_by_page 0 - set color_by_score 3 - set highlight_unread_subjects 2 - set highlight_urls 1 - set confirm_actions 31 % 1 & 2 & 4 & 8 & 16 - set warn_followup_to 2 - set emphasized_text_mask 1 % message only - set emphasized_text_mode 3 % Display text as text! - set query_next_article 0 % Very annoying until I turned it off. - set wrap_flags 7 % _Automatically_ wrap quoted material and body - set wrap_method 2 -EOF -} - -lightcolors() { -cat >> $SLRNRC << EOF - -% color setup -color article "blue" "white" -color author "red" "white" -color boldtext "black" "white" -color box "black" "white" -color cursor "yellow" "red" -color date "brightblue" "black" -color description "black" "white" -color error "red" "white" -color frame "yellow" "blue" -color from_myself "brightred" "black" -color group "blue" "white" -color grouplens_display "yellow" "red" -color header_name "green" "white" -color header_number "green" "white" -color headers "blue" "white" -color high_score "brightred" "white" -color italicstext "magenta" "white" -color menu "yellow" "red" -color menu_press "blue" "yellow" -color message "black" "white" -color neg_score "magenta" "white" -color normal "black" "white" -color pgpsignature "brown" "white" -color pos_score "blue" "white" -color quotes "red" "white" -color quotes1 "magenta" "white" -color quotes2 "brown" "white" -color quotes3 "red" "white" -color quotes4 "brown" "white" -color quotes5 "blue" "white" -color quotes6 "black" "white" -color quotes7 "brown" "white" -color response_char "green" "white" -color selection "yellow" "white" -color signature "black" "white" -color status "yellow" "red" -color subject "black" "white" -color thread_number "blue" "white" -color tilde "green" "white" -color tree "red" "white" -color underlinetext "cyan" "white" -color verbatim "red" "white" - -% This color object is only used when highlight_unread_subjects is set to 2 -% (see the reference manual for details) -color unread_subject "red" "white" -mono unread_subject "bold" - -% 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" -EOF -} - -# FIXME TODO -darkcolors() { -cat >> $SLRNRC << EOF -% dark color setup -% .... -EOF -} - -infoscreen() { -dialog --stdout --title "$PN" --msgbox "Thanks for using $PN! - -More information on slrn: - -Manual: man 1 slrn - -Webpages: -www.slrn.org -www.michael-prokop.at/slrn/ - -####################################################### - -Report bugs, send wishes and feedback to the grml team: -http://www.grml.org/ - contact (at) grml.org -" 20 65 -} - -# interactive part -dialog --stdout --title "$PN" --msgbox "Welcome to $PN! - -This script will create a simple base -configuration for the newsreader slrn. - -Report bugs, send wishes and feedback to the grml team: -http://www.grml.org/ - contact (at) grml.org -" 13 65 - -GETREALNAME_SLRN=$(dialog --stdout --title "$PN" --inputbox "Your real name (eg 'John GRML User'):" 0 65 "$USER" ) || exit 0 -REALNAME_SLRN=${GETREALNAME_SLRN%/*} - -GETMAILADDR=$(dialog --stdout --title "$PN" --inputbox "Your main mail address (eg 'joedoe@grml.org'):" 0 65 `whoami`@$HOST ) || exit 0 -MAILADDR=${GETMAILADDR} -USERNAME_SLRN=$(echo "$MAILADDR" | sed "s/@.*//") -HOSTNAME_SLRN=$(echo "$MAILADDR" | sed "s/.*@//") - -GETNEWSSERVER=$(dialog --stdout --title "$PN" --inputbox "What's the newsserver you want to use? -(eg 'news."$HOSTNAME_SLRN"'):" 8 65 "$HOST" ) || exit 0 -NEWSSERVER=${GETNEWSSERVER} - -GETCOLOR=$(dialog --stdout --title "$PN" \ - --radiolist "Which color setup do you want to use?" 10 65 2 \ - dark "dark color setup (default)" on \ - light "light color setup" off) -retval=$? -case $retval in - 0) COLOR=$GETCOLOR ;; - *) exit 1 ;; -esac - -writecolors() { - if [ "$COLOR" = 'light' ] ; then - lightcolors - fi - if [ "$COLOR" = 'dark' ] ; then - darkcolors - fi -} - -GETSLRNRC=$(dialog --stdout --title "$PN" --inputbox "Choose a filename for this configuration:" 0 65 "$HOME/.slrnrc") || exit 0 -SLRNRC=${GETSLRNRC} - -WRITESLRNRC=$(dialog --stdout --title "$PN" --yesno "Write $SLRNRC?" 5 65) -retval=$? - -case $retval in - 0) - if [ -f "$SLRNRC" ] ; then - dialog --stdout --title "$PN" --yesno "$SLRNRC exists. Overwrite?" 5 65 - retval=$? - case $retval in - 0) - writeslrnrc && writecolors && \ - dialog --stdout --title "$PN" --msgbox "Writing $SLRNRC was successful." 7 65 || \ - { dialog --stdout --title "$PN" --msgbox "Error $?: writing $SLRNRC failed." 7 65 ; exit 1 ; } - ;; - esac - else - writeslrnrc && writecolors && \ - dialog --stdout --title "$PN" --msgbox "Writing $SLRNRC was successfull." 7 65 || \ - { dialog --stdout --title "$PN" --msgbox "Error $?: writing $SLRNRC failed." 7 65 ; exit 1 ; } - fi - ;; -esac - -infoscreen - -ASKRUN=$(dialog --stdout --title "$PN" --yesno "Run slrn now?" 0 0) -retval=$? - -case $retval in - 0) - slrn -create -h $NEWSSERVER -f $HOME/.newsrc_$NEWSSERVER -i $SLRNRC && \ - echo " -Start slrn with taken settings via: -% slrn -h $NEWSSERVER -f $HOME/.newsrc_$NEWSSERVER -i $SLRNRC - -Thanks for using $PN and have fun with slrn!" - ;; -esac - - -## END OF FILE #################################################################