summaryrefslogtreecommitdiff
path: root/mutt
diff options
context:
space:
mode:
Diffstat (limited to 'mutt')
-rw-r--r--mutt/attachments/.gitkeep0
-rw-r--r--mutt/cache/.gitkeep0
-rw-r--r--mutt/crypto85
-rw-r--r--mutt/id_personal11
-rw-r--r--mutt/id_work11
-rw-r--r--mutt/mailboxes1
-rw-r--r--mutt/mailcap5
-rw-r--r--mutt/muttrc94
-rw-r--r--mutt/signature1
9 files changed, 208 insertions, 0 deletions
diff --git a/mutt/attachments/.gitkeep b/mutt/attachments/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mutt/attachments/.gitkeep
diff --git a/mutt/cache/.gitkeep b/mutt/cache/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/mutt/cache/.gitkeep
diff --git a/mutt/crypto b/mutt/crypto
new file mode 100644
index 0000000..393820b
--- /dev/null
+++ b/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/id_personal b/mutt/id_personal
new file mode 100644
index 0000000..96892b3
--- /dev/null
+++ b/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/id_work b/mutt/id_work
new file mode 100644
index 0000000..238cfcb
--- /dev/null
+++ b/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/mailboxes b/mutt/mailboxes
new file mode 100644
index 0000000..a4be3a9
--- /dev/null
+++ b/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/mailcap b/mutt/mailcap
new file mode 100644
index 0000000..dcab31d
--- /dev/null
+++ b/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/muttrc b/mutt/muttrc
new file mode 100644
index 0000000..2eb660d
--- /dev/null
+++ b/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/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="vim"
+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`
+`[ "$COLORSCHEME" = "default" ] && echo source $HOME/.mutt/solarized/mutt-colors-solarized-dark-16.muttrc || echo set`
+
+# Identities
+set reverse_name
+alternates "*@urbainvaes.com"
diff --git a/mutt/signature b/mutt/signature
new file mode 100644
index 0000000..eb52bfb
--- /dev/null
+++ b/mutt/signature
@@ -0,0 +1 @@
+Urbain Vaes