summaryrefslogtreecommitdiff
path: root/mutt/.mutt
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-04-19 15:24:25 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-04-19 15:24:25 +0100
commite146e947c52ac4adbe426b3f893faff1e46ed5f8 (patch)
tree1605bf4eb78cc619988c92632f3cee2a56143fd5 /mutt/.mutt
parent83bd503208d45fa837348441196dd07223b13e3e (diff)
Use GNU stow for dotfiles management
Diffstat (limited to 'mutt/.mutt')
-rw-r--r--mutt/.mutt/.gitignore4
l---------mutt/.mutt/alias1
-rw-r--r--mutt/.mutt/colors23
-rw-r--r--mutt/.mutt/crypto85
-rw-r--r--mutt/.mutt/id_personal11
-rw-r--r--mutt/.mutt/id_work11
-rw-r--r--mutt/.mutt/mailboxes1
-rw-r--r--mutt/.mutt/mailcap5
-rw-r--r--mutt/.mutt/muttrc94
-rw-r--r--mutt/.mutt/signature1
10 files changed, 236 insertions, 0 deletions
diff --git a/mutt/.mutt/.gitignore b/mutt/.mutt/.gitignore
new file mode 100644
index 0000000..c3f6190
--- /dev/null
+++ b/mutt/.mutt/.gitignore
@@ -0,0 +1,4 @@
+attachments/*
+cache/*
+solarized
+temp/*
diff --git a/mutt/.mutt/alias b/mutt/.mutt/alias
new file mode 120000
index 0000000..1cc59a8
--- /dev/null
+++ b/mutt/.mutt/alias
@@ -0,0 +1 @@
+../../../personal/mutt/alias \ No newline at end of file
diff --git a/mutt/.mutt/colors b/mutt/.mutt/colors
new file mode 100644
index 0000000..39b16b2
--- /dev/null
+++ b/mutt/.mutt/colors
@@ -0,0 +1,23 @@
+# -*-muttrc-*-
+
+# Palette for use with the Linux console. Black background.
+
+color hdrdefault blue black
+color quoted blue black
+color signature blue black
+color attachment red black
+color prompt brightmagenta black
+color message brightred black
+color error brightred black
+color indicator black red
+color status brightgreen blue
+color tree white black
+color normal white black
+color markers red black
+color search white black
+color tilde brightmagenta black
+color index blue black ~F
+color index red black "~N|~O"
+
+# color body brightwhite black '\*+[^*]+\*+'
+# color body brightwhite black '_+[^_]+_+'
diff --git a/mutt/.mutt/crypto b/mutt/.mutt/crypto
new file mode 100644
index 0000000..393820b
--- /dev/null
+++ b/mutt/.mutt/crypto
@@ -0,0 +1,85 @@
+# -*-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 --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="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"
+
diff --git a/mutt/.mutt/id_personal b/mutt/.mutt/id_personal
new file mode 100644
index 0000000..96892b3
--- /dev/null
+++ b/mutt/.mutt/id_personal
@@ -0,0 +1,11 @@
+set from = "mail@urbainvaes.com"
+set sendmail="/usr/bin/msmtp -a personal"
+
+set spoolfile = "+Personal/Personal"
+set record = "+Personal/Personal.sent"
+set postponed = "+Personal/Personal.drafts"
+set trash = "+Personal/Personal.bin"
+
+macro index,pager gs "<change-folder> $record<enter>"
+macro index,pager gd "<change-folder> $postponed<enter>"
+macro index,pager gb "<change-folder> $trash<enter>"
diff --git a/mutt/.mutt/id_work b/mutt/.mutt/id_work
new file mode 100644
index 0000000..238cfcb
--- /dev/null
+++ b/mutt/.mutt/id_work
@@ -0,0 +1,11 @@
+set from = "u.vaes13@imperial.ac.uk"
+set sendmail="/usr/bin/msmtp -a imperial"
+
+set spoolfile = "+Work/Work"
+set record = "+Work/Work.sent"
+set postponed = "+Work/Work.drafts"
+set trash = "+Work/Work.bin"
+
+macro index,pager gs "<change-folder> $record<enter>"
+macro index,pager gd "<change-folder> $postponed<enter>"
+macro index,pager gb "<change-folder> $trash<enter>"
diff --git a/mutt/.mutt/mailboxes b/mutt/.mutt/mailboxes
new file mode 100644
index 0000000..a4be3a9
--- /dev/null
+++ b/mutt/.mutt/mailboxes
@@ -0,0 +1 @@
+mailboxes "+Work/Work" "+Work/Work.bin" "+Work/Work.drafts" "+Work/Work.sent" "+Personal/Personal" "+Personal/Personal.bin" "+Personal/Personal.drafts" "+Personal/Personal.sent"
diff --git a/mutt/.mutt/mailcap b/mutt/.mutt/mailcap
new file mode 100644
index 0000000..dcab31d
--- /dev/null
+++ b/mutt/.mutt/mailcap
@@ -0,0 +1,5 @@
+text/html; mv %s %s.html && qutebrowser %s.html >/dev/null 2>/dev/null; needsterminal;
+text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput
+text/plain; more %s;
+image/*; feh %s
+application/pdf; zathura %s
diff --git a/mutt/.mutt/muttrc b/mutt/.mutt/muttrc
new file mode 100644
index 0000000..2264a95
--- /dev/null
+++ b/mutt/.mutt/muttrc
@@ -0,0 +1,94 @@
+# Folders
+set folder = ~/.mail
+set alias_file = ~/.mutt/alias
+set header_cache = ~/.mutt/cache/headers
+set message_cachedir = ~/.mutt/cache/bodies
+set certificate_file = ~/.mutt/certificates
+set signature = ~/.mutt/signature
+set mailcap_path = ~/.mutt/mailcap
+set tmpdir = ~/.mutt/temp
+
+# Source crypto, aliases, mailboxes
+source ~/.mutt/colors
+source ~/.mutt/crypto
+source ~/.mutt/alias
+source ~/.mutt/mailboxes
+source ~/.mutt/id_work
+
+# General information
+set realname = "Urbain Vaes"
+set reverse_alias
+set sort = reverse-date
+set weed
+set fcc_clear
+unset markers
+set sleep_time = 0
+
+# Encryption
+set crypt_autosign = no
+set crypt_replyencrypt = yes
+set pgp_auto_decode = yes
+set pgp_autosign = no
+set pgp_sign_as = 716064C0
+set pgp_use_gpg_agent = yes
+set pgp_timeout = 3600
+
+# Sidebar
+set sidebar_width=26
+set sidebar_visible = yes
+set sidebar_delim='|'
+set sidebar_shortpath = yes
+set sidebar_folderindent = yes
+set sidebar_format = "%B%* %?F?[%F]?%?N?(%N)?%4S"
+bind index,pager \Cn sidebar-next
+bind index,pager \Cp sidebar-prev
+bind index,pager O sidebar-open
+
+# Prompts
+set delete = yes
+set quit = yes
+
+# Pager
+set pager_stop
+set pager_index_lines = 10
+
+# HTML messages
+auto_view text/html
+alternative_order text/plain text/enriched text/html
+
+# Editor
+set editor="$EDITOR"
+set include=yes
+
+# Macros
+macro index,pager gp "<change-folder> +Personal/Personal<enter>"
+macro index,pager gw "<change-folder> +Work/Work<enter>"
+
+# Key bindings
+bind attach <return> view-mailcap
+
+bind index,pager \Cf next-page
+bind index,pager \Cb previous-page
+bind index,pager \Cu next-unread-mailbox
+
+bind index gg first-entry
+bind index G last-entry
+bind index i flag-message
+
+bind pager \Ce next-line
+bind pager \Cy previous-line
+bind pager j next-entry
+bind pager k previous-entry
+bind pager R group-reply
+
+# Hooks
+folder-hook 'Work*' 'source ~/.mutt/id_work'
+folder-hook 'Personal*' 'source ~/.mutt/id_personal'
+
+# Source mutt solarized
+`[ "$COLORSCHEME" = "light" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-light-16.muttrc || echo set`
+`[ "$COLORSCHEME" = "dark" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set`
+
+# Identities
+set reverse_name
+alternates "*@urbainvaes.com"
diff --git a/mutt/.mutt/signature b/mutt/.mutt/signature
new file mode 100644
index 0000000..eb52bfb
--- /dev/null
+++ b/mutt/.mutt/signature
@@ -0,0 +1 @@
+Urbain Vaes