summaryrefslogtreecommitdiff
path: root/mutt
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-03-02 20:23:28 +0200
committerLars Wirzenius <liw@liw.fi>2015-03-02 20:23:28 +0200
commit585300a2e86331864e91236cff42c32c67a9cb8d (patch)
tree890b453169087dc79f8348a057d763a5307ce919 /mutt
parent95a27c78eb348eae0de561b236a001f8b768282a (diff)
downloadliw-dot-files-585300a2e86331864e91236cff42c32c67a9cb8d.tar.gz
Move mutt stuff under mutt/
Diffstat (limited to 'mutt')
-rwxr-xr-xmutt/mutt-editor10
-rw-r--r--mutt/muttrc-colours62
-rw-r--r--mutt/muttrc-common35
-rw-r--r--mutt/muttrc-effi2
-rw-r--r--mutt/muttrc-exolobe116
-rw-r--r--mutt/muttrc-hammer-personal15
-rw-r--r--mutt/muttrc-tilaajavastuu15
7 files changed, 155 insertions, 0 deletions
diff --git a/mutt/mutt-editor b/mutt/mutt-editor
new file mode 100755
index 0000000..ec32f10
--- /dev/null
+++ b/mutt/mutt-editor
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# Script to run editor from mutt. For some reason, the combination of
+# mutt and Emacs results in gnome-terminal getting confused. Running
+# clear fixes that.
+
+set -eu
+
+"$EDITOR" "$@"
+reset
diff --git a/mutt/muttrc-colours b/mutt/muttrc-colours
new file mode 100644
index 0000000..ce5adff
--- /dev/null
+++ b/mutt/muttrc-colours
@@ -0,0 +1,62 @@
+##########################################################
+# Color theme of my very own.
+
+# Remove all color settings that are in effect. Start from
+# a clean slate.
+
+uncolor index *
+uncolor header *
+uncolor body *
+
+# Set color for each "object" mutt knows about, except body and header.
+# See file:///usr/share/doc/mutt/html/configuration.html#color for
+# a list of the objects.
+#
+# Valid colors are:
+#
+# white, black, green, magenta, blue, cyan, yellow, red, default, colorN
+#
+# A foreground color can be prefixed by "bright" for a brighter variant.
+#
+# I use gnome-terminal with the "Linux console" colour settings and a
+# "black on white" colour theme. The "white" color is a grey, not
+# white, so I use "default" as the background color to achieve white.
+#
+# * normal text: black on default (= white)
+# * de-emphasised text: white (= grey) on default (white)
+# * highlights: brightblue on default
+
+color attachment black default
+color bold brightblue default
+color error brightred default
+color hdrdefault white default
+color indicator brightwhite cyan
+color markers green default
+color message red default
+color normal black default
+color quoted brightblue default
+color search brightmagenta default
+color signature white default
+color status brightwhite black
+color tilde black default
+color tree black default
+color underline brightblue default
+
+# Set color for specific headers, chosen by regular expressions.
+
+color header brightblue default ^(From|Subject|To|Cc):
+
+# Set color for specific parts of the body of a message.
+
+color body red default "^gpg: .*"
+color body brightred default "^gpg: Can't check signature:.*"
+color body brightred default "^gpg: Bad signature.*"
+color body brightred default "^gpg: .*warning.*"
+color body brightred default "^gpg: .*failed.*"
+
+# Set colors for specific entries in a list of messages (an "index").
+
+#color index white default "~h List-*" # List mail
+color index green default "~p" # personal mail
+color index yellow default "~D" # deleted mail
+color index cyan default "~T" # tagged mail
diff --git a/mutt/muttrc-common b/mutt/muttrc-common
new file mode 100644
index 0000000..c233e1d
--- /dev/null
+++ b/mutt/muttrc-common
@@ -0,0 +1,35 @@
+ignore x-mailer x-url user-agent
+unignore reply-to
+unhdr_order *
+hdr_order from reply-to date to cc subject
+
+set pgp_use_gpg_agent=yes
+set pgp_sort_keys=reverse-date
+set pgp_auto_decode=yes
+
+set crypt_autopgp=yes
+set crypt_autosign=no
+set crypt_replysign=no
+set crypt_replysignencrypted=no
+
+set pipe_decode=yes
+set query_command="clab mutt-query -- %s"
+#macro pager A |'abook --add-email'\n
+
+set reply_self=yes
+
+set markers=no
+
+#set implicit_autoview=yes
+
+set check_new=yes
+
+set print_command="muttprint"
+
+set mime_forward=ask-yes
+
+set quote_regexp="^>"
+
+set editor="$HOME/liw-dot-files/mutt-editor"
+
+set timeout=30
diff --git a/mutt/muttrc-effi b/mutt/muttrc-effi
new file mode 100644
index 0000000..2a6b214
--- /dev/null
+++ b/mutt/muttrc-effi
@@ -0,0 +1,2 @@
+source "~/.muttrc"
+set from=lars.wirzenius@effi.org
diff --git a/mutt/muttrc-exolobe1 b/mutt/muttrc-exolobe1
new file mode 100644
index 0000000..f7f6ab5
--- /dev/null
+++ b/mutt/muttrc-exolobe1
@@ -0,0 +1,16 @@
+alternates '^liw@(liw|iki)\.fi$' '^liw@pieni\.net$' '^liw@braawi\.com$' '^lars@debian\.org$' '^lasutiti@googlemail\.com$' '^lars\.wirzenius@effi\.org$'
+
+set folder=$HOME/Maildirs.pieni
+set record=$HOME/Maildirs.pieni/Sent
+set spoolfile=$HOME/Maildirs.pieni/INBOX
+
+set from=liw@liw.fi
+
+unset smtp_url
+set smtp_url=smtp://127.0.0.1
+set signature=/home/liw/.signature
+
+set header_cache=/mnt/scratch/liw-scratch/.mutt.header_cache
+
+source "~/liw-dot-files/muttrc-common"
+source "~/liw-dot-files/muttrc-colours"
diff --git a/mutt/muttrc-hammer-personal b/mutt/muttrc-hammer-personal
new file mode 100644
index 0000000..e9c428d
--- /dev/null
+++ b/mutt/muttrc-hammer-personal
@@ -0,0 +1,15 @@
+set folder=$HOME/Maildirs.pieni
+set record=$HOME/Maildirs.pieni/Sent
+set spoolfile=$HOME/Maildirs.pieni/INBOX
+
+set from=liw@liw.fi
+
+unset smtp_url
+set smtp_url=smtp://liw@pieni.net:587
+set ssl_starttls=yes
+unset signature
+
+unset header_cache
+
+source "~/liw-dot-files/muttrc-common"
+source "~/liw-dot-files/muttrc-colours"
diff --git a/mutt/muttrc-tilaajavastuu b/mutt/muttrc-tilaajavastuu
new file mode 100644
index 0000000..365182b
--- /dev/null
+++ b/mutt/muttrc-tilaajavastuu
@@ -0,0 +1,15 @@
+set folder=$HOME/Maildirs.tilaajavastuu
+set record=$HOME/Maildirs.tilaajavastuu/L&AOQ-hetetyt
+set spoolfile=$HOME/Maildirs.tilaajavastuu/INBOX
+
+set from=lars.wirzenius@tilaajavastuu.fi
+
+unset smtp_url
+set smtp_url=smtp://tilwirlar@smtp.alison.fi:587
+set ssl_starttls=yes
+unset signature
+
+set header_cache=/home/liw/.mutt.header_cache
+
+source "~/liw-dot-files/muttrc-common"
+source "~/liw-dot-files/muttrc-colours"