mutt: add mutt/

This commit is contained in:
2020-05-16 20:24:29 +01:00
parent 34312349c6
commit b502c1e8cb
4 changed files with 475 additions and 1 deletions

106
mutt/aliases Normal file
View File

@@ -0,0 +1,106 @@
alias ruth Ruth Wade <ruthlwade@gmail.com>
alias ruth-work Ruth Wade <ruthwalker@treatmentnetwork.co.uk>
alias roxanne Roxanne Dunning <axis-mundi@theculture.org>
alias dan Daniel Thompson <daniel@redfelineninja.org.uk>
alias greg.bear Greg Bear <grbear@earthlink.net>
alias danb Daniel Berrange <dan@bibliotech.net>
alias charles Charles Talibard <charles@impulse.org.uk>
alias lin Sia Lin Chan <sia_lin_chan@hotmail.com>
alias matt Matt Taylor <matt.taylor@gmx.net>
alias culture busstop@culturelist.org
alias evan Evan Vetere <vetere@sine.com>
alias haakon Håkon T Sønderland <hts@antares.no>
alias mattmcleod matt@boggle.org
alias rob Rob Andrews <rob@impure.org.uk>
alias carolm Carol Mulholland <Carol@flagship-uk.demon.co.uk>
alias richd Richard Downer <rd@frontiertown.co.uk>
alias work pwalker@broadcom.com
alias marcus Marcus <aurelius@theculture.org>
alias brad Brad DeLong <delong@econ.berkeley.edu>
alias elench elench@yahoogroups.com
alias liam Liam Wickins <liamw@picochip.com>
alias paula Paula-Lou Masters <moomin_mad35@hotmail.com>
alias oletheros matt rhodes <rhodes@oletheros.com>
alias simon Simon Avery <flash@soggybeaver.com>
alias gord Gord Sellar <gordsellar@yahoo.com>
alias magnework Magne Vigulf Sandven <Magne.Sandven@oracle.com>
alias robtognoni Rob Tognoni <info@rob-tognoni.com>
alias philpoole Phil Poole <phil@poole2327.freeserve.co.uk>
alias paula paula lou <dyslexicstar@aol.com>
alias magne Henriette K. og Magne V. Sandven <sandven@bredband.no>
alias kim Kim Randell <kim.randell@blueyonder.co.uk>
alias rik Rik Burke <rocko@askquestionslater.net>
alias rich Richard Baker <rich@theculture.org>
alias babb gARetH baBB <hick.hostap@gink.org>
alias josh Josh Brandt <mute@sidehack.sat.gweep.net>
alias pagoda Pagoda <keith@pagodagames.co.uk>
alias mepbm Middle Earth PBM <me@middleearthgames.com>
alias lalhome Lalith Vipulananthan <lal@singularitymetaltab.net>
alias jolyon Jolyon Thompson <ultimatejo@supanet.com>
alias anthony Anthony Kemble <anthonykemble@yahoo.co.uk>
alias jeffmill eogan_ma@yahoo.com
alias carol Carol Mulholland <carol@pbmgames.com>
alias paul.appleby Paul Appleby <paul.appleby@mod-comp.co.uk>
alias spamcop-submit SpamCop <submit.klnjDfcoVrjVGG1A@spam.spamcop.net>
alias hugh Hugh O\'Donnell <hugh@shuggies.co.uk>
alias nk norskklassen@yahoogroups.com
alias flybuf games@flyingbuffalo.com
alias cryptography cryptography@metzdowd.com
alias claire-b Claire Bickell <cbickell@bigpond.net.au>
alias charlie Charlie Bell <charlie@backtomerton.com>
alias danh Dan Hon <lists@danhon.com>
alias mop Marianne Ohl Phillips <marianne@netins.net>
alias ptomblin Paul Tomblin <ptomblin@xcski.com>
alias dad jrwalker49@hotmail.com
alias hannah Hannah Storie <hannah@cosmic.org.uk>
alias dymond Andrew Dymond <mrdymond@yahoo.co.uk>
alias kate Katherine Randell <kate@memetic-glutton.org>
alias bark bark-project@guckes.net
alias scott Scott Beeler <scottbeeler@cox.net>
alias diana Diana <poupie@email.cz>
alias milan Milan <pinkrabbit@centrum.sk>
alias kathy k-drummond@excite.com
alias connolly John Connolly <connoll@iol.ie>
alias jen Jenny Thompson <jenny@redfelineninja.org.uk>
alias brendan Brendan Nelson <brendan.nelson@line.co.uk>
alias randi James Randi <randi@randi.org>
alias me-darth Paul Walker <arafel@darthvader.net>
alias bert Bert Hindle <robert.hindle@gmail.com>
alias paulcox Paul Cox <paulcox@onetel.net>
alias ellen Ellen Carlsen <ELLEN.CARLSEN@CARLSENPALMER.PLUS.COM>
alias ali Alasdair Farmer <Ali@FarmersHaven.com>
alias ali-work Ali Farmer <afarmer@broadcom.com>
alias andy.sheen Andy Sheen <andy.sheen@virgin.net>
alias dave David Cook <dtcook@kbnet.co.uk>
alias chris Chris Smith <chris@chris-s.net>
alias rachel Rachel Warrington <rachelwarrington@doctors.org.uk>
alias martinhughes Martin Hughes <martin4bsl@yahoo.co.uk>
alias kandis Kandis Ip <kandisip@btinternet.com>
alias simon_dunn Simon Dunn <simon_dunn@hotmail.co.uk>
alias louise Jeremy and Louise Pocock <fabpococks@dsl.pipex.com>
alias chris.vincent Chris Vincent <chris.vincent@rocketmail.com>
alias margaret Margaret Millar <mbmillar@mantonhollow.com>
alias bsllearners BritishSignLanguageLearners@yahoogroups.co.uk
alias diane.mcguinness Diane McGuinness <diane.mcguinness@blueyonder.co.uk>
alias gill Gill Behenna <gill@signsofgod.org.uk>
alias grange \"CSales.Ramada Bristol North, The Grange\" <csales.grange@ramadajarvis.co.uk>
alias claire Claire Walker <bananafrog@fastmail.fm>
alias hodgeheg Andrew Slack <andrewslack@live.co.uk>
alias pinboard Pinboard <post+arafel+06bdb2@pinboard.in>
alias instapaper Instapaper <readlater.nrfiqxx9iv@instapaper.com>
alias kindle paul_69395@kindle.com
alias kinnison Daniel Silverstone <dsilvers@digital-scurf.org>
alias mum FRIEDA WALKER <ditzymadam@googlemail.com>
alias haywards Haywards <bookings@haywardstravel.com>
alias evernote Evernote <arafel2.022a8@m.evernote.com>
alias hoppy HoPpY <HoPpY@slugsix.com>
alias chriswright Christopher Wright <wrightc@eviscerati.org>
alias evernote_dev <evernote_blacksun_dev.62e66bf@sandbox.evernote.com>
alias jean Jean Vincent <jean@vincentfamily.org.uk>
alias steve Steve Colk <s.colk@amberleyroad.org>
alias jon Jonathan Smith <jonleesmith@gmail.com>
alias andy Andrew Thomas <a.thomas@trinitynetwork.org>
alias stash post+hdevore+7ac7b8@pinboard.in
alias kim.graham Kim Graham <kim.graham@ccsadoption.org>
alias nick.haydock STEVEN HAYDOCK <nick.haydock@virgin.net>
alias stefan Stefan Bates <s.bates@oceanhome.co.uk>

82
mutt/gpg.rc Normal file
View File

@@ -0,0 +1,82 @@
# -*-muttrc-*-
#
# Command formats for gpg.
#
# This version uses gpg-2comp from
# http://muppet.faveve.uni-stuttgart.de/~gero/gpg-2comp.tar.gz
#
# $Id: gpg.rc,v 3.1 2002/03/26 22:23:58 roessler Exp $
#
# %p The empty string when no passphrase is needed,
# the string "PGPPASSFD=0" if one is needed.
#
# This is mostly used in conditional % sequences.
#
# %f Most PGP commands operate on a single file or a file
# containing a message. %f expands to this file's name.
#
# %s When verifying signatures, there is another temporary file
# containing the detached signature. %s expands to this
# file's name.
#
# %a In "signing" contexts, this expands to the value of the
# configuration variable $pgp_sign_as. You probably need to
# use this within a conditional % sequence.
#
# %r In many contexts, mutt passes key IDs to pgp. %r expands to
# a list of key IDs.
# Note that we explicitly set the comment armor header since GnuPG, when used
# in some localiaztion environments, generates 8bit data in that header, thereby
# breaking PGP/MIME.
# decode application/pgp
set pgp_decode_command="/usr/bin/gpg --charset utf-8 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
# verify a pgp/mime signature
set pgp_verify_command="/usr/bin/gpg --no-verbose --quiet --batch --output - --verify %s %f"
# decrypt a pgp/mime attachment
set pgp_decrypt_command="/usr/bin/gpg --passphrase-fd 0 --no-verbose --quiet --batch --output - %f"
# create a pgp/mime signed attachment
# set pgp_sign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_sign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
# create a application/pgp signed (old-style) message
# set pgp_clearsign_command="/usr/bin/gpg-2comp --comment '' --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_clearsign_command="/usr/bin/gpg --charset utf-8 --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
# create a pgp/mime encrypted attachment
# set pgp_encrypt_only_command="pgpewrap gpg-2comp -v --batch --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg --charset utf-8 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
# create a pgp/mime encrypted and signed attachment
# set pgp_encrypt_sign_command="pgpewrap gpg-2comp --passphrase-fd 0 -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap /usr/bin/gpg --charset utf-8 --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
# import a key into the public key ring
set pgp_import_command="/usr/bin/gpg --no-verbose --import -v %f"
# export a key from the public key ring
set pgp_export_command="/usr/bin/gpg --no-verbose --export --armor %r"
# verify a key
set pgp_verify_key_command="/usr/bin/gpg --verbose --batch --fingerprint --check-sigs %r"
# read in the public key ring
set pgp_list_pubring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
# read in the secret key ring
set pgp_list_secring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
# fetch keys
# set pgp_getkeys_command="pkspxycwrap %r"
# pattern for good signature - may need to be adapted to locale!
# set pgp_good_sign="^gpg: Good signature from"
# OK, here's a version which uses gnupg's message catalog:
set pgp_good_sign="`gettext -d gnupg -s 'Good signature from "' | tr -d '"'`"

286
mutt/keybind Normal file
View File

@@ -0,0 +1,286 @@
# Command bind :
# Syntax: bind <map> <key> <function>
# Values for <map>:
# generic, alias, attach, browser, editor, index, compose, pager, pgp, postpone
# Special values for <key>: \t, <tab>, \r, \n, \e, <esc>, <up>, <down>,
# <left>, <right>, <pageup>, <pagedown>, <backspace>, <delete>,
# <insert>, <enter>, <home>, <end>, <space>, <f1>,...,<f10>
#
# Take care, there are some defaults hardcoded in keymap.c:km_init()
# Most defaults (Op*) are defined in functions.h.
#
# Generic keybindings (for all menus except pager!):
#
#bind generic \Ca first-entry
#bind generic \Ce last-entry
macro generic I ":exec change-folder\n!\n" \
"Change to index"
macro pager I ":exec change-folder\n!\n" \
"Change to index"
macro index A ":set pipe_decode\n|atw\n:unset pipe_decode\n" \
"Add sender to whitelist"
macro pager A ":set pipe_decode\n|atw\n:unset pipe_decode\n" \
"Add sender to whitelist"
macro index \es "<pipe-entry>sa-learn --spam\n<save-entry>=spam.done\n" \
"SpamAssassin learn as spam, save in spam.done"
macro index \eh "<pipe-entry>sa-learn --ham\n" \
"SpamAssassin learn as ham"
#macro index \es "<pipe-entry>crmlearn --learnspam\n<save-entry>=spam.done\n" \
# "crm114 learn as spam, save in spam.done"
#macro index \eh "<pipe-entry>crmlearn --learnnonspam\n" \
# "crm114 learn as ham"
#macro generic \ee "!joe /home/paul/.muttrc\n" \
# "Edit .muttrc"
macro generic \e1 ":set pgp_default_version=gpg ?pgp_default_version\n" \
"switch to GNU-PG"
macro generic \e2 ":set pgp_default_version=pgp2 ?pgp_default_version\n"\
"switch to PGP 2.*"
macro generic \e5 ":set pgp_default_version=pgp5 ?pgp_default_version\n"\
"switch to PGP 5.*"
macro generic \e6 ":set pgp_default_version=pgp6 ?pgp_default_version\n"\
"switch to PGP 6.*"
#
# index, OpMain, MENU_MAIN
# (Main Index)
#
bind index <up> previous-entry
bind index <down> next-entry
bind index <delete> delete-message
bind index * flag-message
bind index = noop
macro index \ea "!$EDITOR ~/.mutt/aliases\n:source ~/.mutt/aliases\n" \
"Edit aliases file and reload it"
macro index \Cb ":set pipe_decode\n|urlview\n:unset pipe_decode\n" \
"call urlview to extract URLs out of a message"
macro index \eb "/~B " "Search in message headers and boddies"
bind index C noop
bind index \Ce last-entry
bind index \Ca first-entry
bind index g change-folder
bind index G group-reply
bind index \eg change-folder-readonly
bind index i sync-mailbox
bind index J noop
bind index K noop
bind index n next-entry
bind index \Cn search-next
#bind index P recall-message
bind index p previous-entry
#bind index \ep post-message # only with NNTP patch
bind index \eq query
macro index Q ":set quit=yes\nq" "Quit mutt without asking"
macro index \er ":source ~/.muttrc\n" "Reload muttrc"
#bind index S copy-message
macro index \eu "|uudeview -\n" "UUdecode Mail(s)"
bind index x sync-mailbox
bind index y print-message
#bind index ??? next-thread
#bind index ??? read-subthread
#bind index ??? tag-subthread
#bind index ??? undelete-subthread
#bind index ??? next-unread
#bind index ??? previous-unread
#bind index ??? search-opposite
#bind index ??? current-top
#bind index ??? current-middle
#bind index ??? current-bottom
#bind index ??? exit
#
# pager, OpPager, MENU_PAGER
# (Message Pager)
#
bind pager <up> previous-line
bind pager <down> next-line
bind pager <left> previous-entry
bind pager <right> next-entry
bind pager <delete> delete-message
bind pager ^ noop
bind pager * flag-message
macro pager \; "<exit><tag-prefix>" "Goto index and enter tag-prefix"
macro pager \e1 ":set pgp_default_version=gpg ?pgp_default_version\n" \
"switch to GNU-PG"
macro pager \e2 ":set pgp_default_version=pgp2 ?pgp_default_version\n"\
"switch to PGP 2.*"
macro pager \e5 ":set pgp_default_version=pgp5 ?pgp_default_version\n"\
"switch to PGP 5.*"
macro pager \e6 ":set pgp_default_version=pgp6 ?pgp_default_version\n"\
"switch to PGP 6.*"
bind pager \Ca top
#macro pager \ea "!~/.mutt/mutt-alias.pl\n:source ~/.mutt/source_me\n"
macro pager \ea "!$EDITOR ~/.mutt/aliases\n:source ~/.mutt/aliases\n" \
"edit aliases file and reload it"
macro pager \Cb ":set pipe_decode\n|urlview\n:unset pipe_decode\n" \
"call urlview to extract URLs out of a message"
#bind pager C copy-message
bind pager \ec noop
bind pager \Ce bottom
macro pager \Cf "<forget-passphrase><exit><display-message>" \
"Forget passphrase and redisplay message"
macro pager \ef "|view-x-face\n" "Show X-Face"
bind pager g change-folder
bind pager G group-reply
bind pager \eg change-folder-readonly
macro pager \e\e0 ":set pager_index_lines=4\n:macro pager I \\e\\e1 toggle\\ pager_index_lines\n" "internal function"
macro pager \e\e1 ":set pager_index_lines=0\n:macro pager I \\e\\e0 toggle\\ pager_index_lines\n" "internal function"
#macro pager I "\e\e1" "toggle pager_index_lines"
#macro pager l "<exit><limit>" "Goto index and limit"
macro pager \el "|less\n" "View plain message using less"
bind pager n next-entry
bind pager \Cn search-next
bind pager p previous-entry
#bind pager P recall-message
bind pager \Cp noop
macro pager \eq "<exit><query>" "Go to index and start a query."
macro pager \er ":source ~/.muttrc\n" "Reload muttrc"
#bind pager S copy-message
macro pager \eu "|uudeview -\n" "uudecode mail"
bind pager w previous-page # page up like in less
macro pager x "<exit><sync-mailbox>" "Goto index and sync mailbox"
bind pager y print-message
#bind pager ??? next-thread
#bind pager ??? previous-thread
#bind pager ??? read-subthread
#bind pager ??? undelete-subthread
#bind pager ??? search-opposite
#bind pager ??? next-unread
#bind pager ??? previous-new
#bind pager ??? previous-unread
#bind pager ??? half-up
#bind pager ??? half-down
#
# attach, OpAttach+OpGeneric, MENU_ATTACH
# (View Attachments Menu)
#
macro attach \Cb ":set pipe_decode\n|urlview\n:unset pipe_decode\n" \
"Call urlview to extract URLs out of a message"
bind attach G group-reply
bind attach i exit
macro attach \el "|less\n" "View plain message using less"
# view plain message
bind attach Q exit
macro attach \eu "|uudeview -\n" "uudecode attachment"
# uudecode attachment
bind attach v view-attach
#bind attach ??? current-top
#bind attach ??? current-middle
#bind attach ??? current-bottom
#
# compose, OpCompose+OpGerneric, MENU_COMPOSE
# (Composing Menu, shows Attachments beforesending)
#
bind compose <insert> attach-file
bind compose <delete> detach-file
macro compose \el "|less\n" "View plain message using less"
macro compose \Cp "Fpgp +clearsig=on -fast\ny" \
"PGP sign mail without MIME"
# pgp sign mail without MIME
bind compose Q exit
macro compose S "Fpgp +clearsig=on -fast\ny^T^Uapplication/pgp; format=text; x-action=sign\n" \
"PGP sign mail with oldstyle MIME"
bind compose v view-attach
#bind compose ??? search-opposite
#bind compose ??? current-top
#bind compose ??? current-middle
#bind compose ??? current-bottom
#
# browser, OpBrowser+OpGeneric, MENU_FOLDER
# (File-Browser. Shows files in a directory)
#
#bind browser ??? search-opposite
#bind browser ??? current-top
#bind browser ??? current-middle
#bind browser ??? current-bottom
#
# alias, OpGeneric, MENU_ALIAS
# (Lists all aliases)
#
#bind alias ??? search-opposite
#bind alias ??? current-top
#bind alias ??? current-middle
#bind alias ??? current-bottom
#
# pgp, OpPgp+OpGeneric, MENU_PGP
# (Lists all matching PGP Keys from Keyring)
#
bind pgp \Cn search-next
bind pgp v view-name
#bind pgp ??? search-opposite
#bind pgp ??? current-top
#bind pgp ??? current-middle
#bind pgp ??? current-bottom
#
# query, OpQuery, MENU_QUERY
# (Lists all matching Query results)
#
bind query \eq query
#bind query ??? search-opposite
#bind query ??? current-top
#bind query ??? current-middle
#bind query ??? current-bottom
#
# <undef>, OpPost, MENU_POST
# (Postpone-Menu, lists all postponed messages)
# *not* yet configurable!!!
#
#bind postpone ??? search-opposite
#bind postpone ??? current-top
#bind postpone ??? current-middle
#bind postpone ??? current-bottom
#
# editor, OpEditor, MENU_EDITOR
# (Command line editor)
#
bind editor <delete> delete-char
######################## end of file ######################################