commit 9348b680cd14d1c08274da417b8556c0df727dfc
parent 9bebefe3db43f8bf8e140581030e87339aad3371
Author: parazyd <parazyd@dyne.org>
Date: Tue, 27 Feb 2018 23:27:03 +0100
Add mutt configurations.
Diffstat:
7 files changed, 220 insertions(+), 0 deletions(-)
diff --git a/mutt/colors b/mutt/colors
@@ -0,0 +1,45 @@
+color normal white default
+color tilde white default
+color indicator brightgreen default
+color tree red default
+color status blue default
+color hdrdefault cyan default
+
+color body magenta default "([A-Za-z0-9])+://[^ ]+" # URIs
+
+color underline brightgreen default
+color markers brightblack default
+color signature green default
+color error red default
+color attachment brightmagenta default
+color search black green
+
+# headers
+color header brightblue default "^(From|Date|Subject):"
+color header alertred default "^(X-Mailer|User-Agent): .*Apple|.*iPhone|.*Mac OS"
+
+# quotes
+color quoted brightgreen default
+color quoted1 green default
+color quoted2 brightgreen default
+color quoted3 green default
+color quoted4 brightgreen default
+color quoted5 green default
+
+# Colours for items in the index
+color index cyan default "."
+color index white default "~N" # New
+color index white default "~O" # Unread
+
+# color index brightblue default "~g" # gpg signed
+color index brightblue default "~G" # gpg encrypted
+
+color index brightgreen default "~F" # Flagged
+color index brightred default "~T" # Tagged
+color index red default "~f MAILER-DAEMON@*"
+color index red default "~f Mailer-Daemon@*"
+color index brightwhite default "~v" # Collapsed thread
+# color index brightyellow default "~V" # Collapsed thread unread
+
+color index red default "~=" # Duplicated messages
+color index red default "~D" # Deleted
diff --git a/mutt/general b/mutt/general
@@ -0,0 +1,22 @@
+set charset = "utf-8"
+set send_charset = "utf-8"
+
+unset beep
+unset help
+
+set weed = yes
+
+set arrow_cursor
+
+set reply_to = ask-yes
+set askcc = yes
+
+set sort = threads
+set sort_aux = reverse-last-date-received
+
+set imap_check_subscribed
+
+set forward_format = "[Fwd] %s"
+
+set sendmail = rpqueue
+set query_command = "rpabook -c '%s'"
diff --git a/mutt/gpg b/mutt/gpg
@@ -0,0 +1,88 @@
+# -*-muttrc-*-
+#
+# Command formats for gpg.
+#
+# This version uses gpg-2comp from
+# http://70t.de/download/gpg-2comp.tar.gz
+#
+# $Id$
+#
+# %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="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
+
+# verify a pgp/mime signature
+set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
+
+# decrypt a pgp/mime attachment
+set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
+
+# create a pgp/mime signed attachment
+# set pgp_sign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
+set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
+
+# create a application/pgp signed (old-style) message
+# set pgp_clearsign_command="gpg-2comp --comment '' --no-verbose --batch --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
+set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--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="pgpewrap gpg --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 %?p?--passphrase-fd 0? -v --batch --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
+set pgp_encrypt_sign_command="pgpewrap gpg %?p?--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="gpg --no-verbose --import %f"
+
+# export a key from the public key ring
+set pgp_export_command="gpg --no-verbose --export --armor %r"
+
+# verify a key
+set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
+
+# read in the public key ring
+set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
+
+# read in the secret key ring
+set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --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="^gpgv?: 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 '"'`"
+
+# This version uses --status-fd messages
+set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
+
+# pattern to verify a decryption occurred
+set pgp_decryption_okay="^\\[GNUPG:\\] DECRYPTION_OKAY"
+
diff --git a/mutt/headers b/mutt/headers
@@ -0,0 +1,18 @@
+ignore *
+unignore date:
+unignore from:
+unignore subject:
+unignore to:
+unignore cc:
+unignore bcc:
+unignore reply-to:
+unignore organisation:
+unignore x-mailer:
+unignore user-agent:
+unignore list-id:
+
+unmy_hdr *
+my_hdr User-Agent: rp
+
+set hostname = "fq"
+set hidden_host = yes
diff --git a/mutt/keybindings b/mutt/keybindings
@@ -0,0 +1,24 @@
+bind index w search
+bind index x sync-mailbox
+
+bind index <pagedown> next-page
+bind index <pageup> previous-page
+bind index <home> first-entry
+bind index <end> last-entry
+bind index <right> display-message
+bind index <down> next-entry
+bind index j next-entry
+bind index <up> previous-entry
+bind index k previous-entry
+bind index <left> noop
+bind index i noop
+
+bind index,pager \# noop
+
+bind pager w search
+bind pager <down> next-line
+bind pager j next-line
+bind pager <up> previous-line
+bind pager k previous-line
+
+macro pager Q "<decrypt-save>^<enter>yq"
diff --git a/mutt/mailcap b/mutt/mailcap
@@ -0,0 +1,3 @@
+text/html; lynx -dump -assume_charset=${charset} %s; nametemplate=%s.html; copiousoutput
+image/png; feh %s
+image/jpeg; feh %s
diff --git a/mutt/sidebar b/mutt/sidebar
@@ -0,0 +1,20 @@
+#bind index / vfolder-from-query
+#bind pager / vfolder-from-query
+
+set sidebar_width = 25
+set sidebar_visible = no
+
+set sidebar_divider_char = '│'
+# https://www.neomutt.org/guide/gettingstarted.html#intro-sidebar-format
+set sidebar_format = "%B %* %?N?%N?"
+
+set mail_check_stats
+
+color sidebar_new white default
+color progress default brightblue
+
+bind index p sidebar-prev
+bind index n sidebar-next
+bind index <space> sidebar-open
+
+macro index,pager S "<enter-command>toggle sidebar_visible<enter>"