From: Mike Frysinger Date: Tue, 21 Oct 2014 15:03:23 +0000 (-0400) Subject: muttrc: initial settings X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=dc0a4152e50f16b62850efb798d739268d6c4396;p=home.git muttrc: initial settings --- diff --git a/.config/mutt/bindings.rc b/.config/mutt/bindings.rc new file mode 100644 index 0000000..d631914 --- /dev/null +++ b/.config/mutt/bindings.rc @@ -0,0 +1,12 @@ +# http://www.mutt.org/doc/manual/manual-6.html#functions + +bind index t noop +bind index T noop +bind index x tag-entry +bind index X tag-pattern +bind index previous-line +bind index next-line +bind index display-message + +bind pager previous-line +bind pager next-line diff --git a/.config/mutt/gpg.rc b/.config/mutt/gpg.rc new file mode 100644 index 0000000..931a8b8 --- /dev/null +++ b/.config/mutt/gpg.rc @@ -0,0 +1,55 @@ +set crypt_autosign = yes +set crypt_verify_sig = yes +set pgp_auto_decode = yes +set pgp_autosign = yes +set pgp_sign_as = B902B5271325F892AC251AD441633B9FE837F581 +set pgp_use_gpg_agent = yes + +# 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 --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 --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 --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 %?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 --list-keys %r" + +# read in the secret key ring +set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r" + +# fetch keys +set pgp_getkeys_command="gpg --recv-key %r" + +# pattern for good signature - may need to be adapted to locale! +#set pgp_good_sign="^gpgv?: Good signature from " + +# This version uses --status-fd messages +set pgp_good_sign="^\\[GNUPG:\\] GOODSIG" diff --git a/.config/mutt/mail.rc b/.config/mutt/mail.rc new file mode 100644 index 0000000..904c427 --- /dev/null +++ b/.config/mutt/mail.rc @@ -0,0 +1,15 @@ +set mbox_type = Maildir +set folder = ~/.mail +set trash = +/trash +set record = +/sent-mail +set spoolfile = +/gentoo.org +set postponed = +/drafts + +set header_cache = ~/.cache/mutt/header +set message_cachedir = ~/.cache/mutt/message + +mailboxes `find ~/.mail/ \ + -regextype posix-extended -type d \ + '(' -regex '.*/(cur|new|tmp)$' -o -regex '.*/\.mail/(outbox|templates|trash|\.inbox\.directory)$' -prune ')' \ + -name cur -printf '"%h" ' | sort` +unmailboxes ~/.mail diff --git a/.config/mutt/main.rc b/.config/mutt/main.rc new file mode 100644 index 0000000..6e0fa46 --- /dev/null +++ b/.config/mutt/main.rc @@ -0,0 +1,40 @@ +set realname = "Mike Frysinger" +set from = "vapier@gentoo.org" +set use_from = yes +set use_envelope_from = yes + +set send_charset = "UTF-8" +set allow_8bit = yes +set assumed_charset = "UTF-8" + +set postpone = ask-yes +set read_inc = 50 +set recall = no +set sleep_time = 0 +set time_inc = 500 +set user_agent = no + +set sort = threads +set strict_threads = yes +set sort_browser = reverse-date +set sort_aux = last-date-received +set hide_thread_subject = yes +#set menu_scroll = yes +set pager_stop = yes + +ignore * +unignore from date subject to cc +unhdr_order * +hdr_order subject from to cc date + +# See strftime man page; replaces %d/%D in index_format. +set date_format = "%d %b %Y %H:%M" +# http://www.mutt.org/doc/devel/manual.html#index-format +set index_format = "%5C %Z %s %> %B %-30.30n %D" + +source ~/.config/mutt/bindings.rc +source ~/.config/mutt/sidebar.rc +source ~/.config/mutt/gpg.rc +source ~/.config/mutt/mail.rc +source ~/.config/mutt/network.rc +source ~/.config/mutt/theme.rc diff --git a/.config/mutt/network.rc b/.config/mutt/network.rc new file mode 100644 index 0000000..ac44046 --- /dev/null +++ b/.config/mutt/network.rc @@ -0,0 +1,4 @@ +set ssl_use_sslv2 = no +set ssl_use_sslv3 = no +set ssl_starttls = no +set smtp_url = "smtp://localhost:1111" diff --git a/.config/mutt/sidebar.rc b/.config/mutt/sidebar.rc new file mode 100644 index 0000000..a6da36a --- /dev/null +++ b/.config/mutt/sidebar.rc @@ -0,0 +1,18 @@ +set sidebar_width = 50 +set sidebar_visible = no +set sidebar_delim = '|' +set sidebar_sort = yes +#set sidebar_format = '%B %N' + +color sidebar_new brightred default + +bind index \Ck sidebar-prev +bind index \Cj sidebar-next +bind index \Co sidebar-open +bind pager \Ck sidebar-prev +bind pager \Cj sidebar-next +bind pager \Co sidebar-open + +macro index b 'toggle sidebar_visible' +macro pager b 'toggle sidebar_visible' +bind index B bounce-message diff --git a/.config/mutt/theme.rc b/.config/mutt/theme.rc new file mode 100644 index 0000000..b0b5804 --- /dev/null +++ b/.config/mutt/theme.rc @@ -0,0 +1,81 @@ +# Status flags +# D message is deleted (is marked for deletion) +# d message have attachments marked for deletion +# K contains a PGP public key +# N message is new +# O message is old +# P message is PGP encrypted +# r message has been replied to +# S message is PGP signed, and the signature is succesfully verified +# s message is PGP signed +# F message is flagged (!) +# * message is tagged + +# Colors for the message index +color index brightred black ~N +color index brightred black ~O +color index brightyellow black ~F +color index black cyan ~T +color index cyan black ~D + +# Highlights inside the body of a message. + +# URLs +color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" +color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" +mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" +mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+" + +# email addresses +color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" +#mono body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" + +# header +color header green black "^from:" +color header green black "^to:" +color header green black "^cc:" +color header green black "^date:" +color header yellow black "^newsgroups:" +color header yellow black "^reply-to:" +color header brightcyan black "^subject:" +color header red black "^x-spam-rule:" +color header green black "^x-mailer:" +color header yellow black "^message-id:" +color header yellow black "^Organization:" +color header yellow black "^Organisation:" +color header yellow black "^User-Agent:" +color header yellow black "^message-id: .*pine" +color header yellow black "^X-Message-Flag:" +color header yellow black "^X-Spam-Status:" +color header yellow black "^X-SpamProbe:" +color header red black "^X-SpamProbe: SPAM" + +# Coloring quoted text - coloring the first 7 levels: +color quoted cyan black +color quoted1 yellow black +color quoted2 red black +color quoted3 green black +color quoted4 cyan black +color quoted5 yellow black +color quoted6 red black +color quoted7 green black + +# Default color definitions +#color hdrdefault white green +color signature brightmagenta black +color indicator black white +color attachment black green +color error red black +color message white black +color search brightwhite magenta +color status brightyellow blue +color tree brightblue black +color normal white black +color tilde green black +color bold brightyellow black +#color underline magenta black +color markers brightcyan black +# Colour definitions when on a mono screen +mono bold bold +mono underline underline +mono indicator reverse diff --git a/.muttrc b/.muttrc new file mode 120000 index 0000000..894fffc --- /dev/null +++ b/.muttrc @@ -0,0 +1 @@ +.config/mutt/main.rc \ No newline at end of file