diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-06-08 17:05:30 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-06-08 17:05:30 +0200 |
commit | 381eb6df61ce6d6e2c7bd926a5bd73f7b4c2333f (patch) | |
tree | b1cf57dea578ac40c373cbdec969fce153a4d427 /home/.mutt | |
download | dotfiles-381eb6df61ce6d6e2c7bd926a5bd73f7b4c2333f.tar.gz dotfiles-381eb6df61ce6d6e2c7bd926a5bd73f7b4c2333f.tar.bz2 dotfiles-381eb6df61ce6d6e2c7bd926a5bd73f7b4c2333f.zip |
initial commit
Diffstat (limited to 'home/.mutt')
-rw-r--r-- | home/.mutt/accounts/gmail | 17 | ||||
-rw-r--r-- | home/.mutt/colors | 87 | ||||
-rw-r--r-- | home/.mutt/gpg | 89 | ||||
-rw-r--r-- | home/.mutt/muttrc | 21 |
4 files changed, 214 insertions, 0 deletions
diff --git a/home/.mutt/accounts/gmail b/home/.mutt/accounts/gmail new file mode 100644 index 0000000..f890f9a --- /dev/null +++ b/home/.mutt/accounts/gmail @@ -0,0 +1,17 @@ +## Receive Options +set imap_user = jodersky@gmail.com +set imap_pass = "`pass sites/gmail.com`" +set folder = imaps://jodersky@imap.gmail.com +set spoolfile = +INBOX +#set record = +Sent + +## Send Options +set smtp_url=smtps://$imap_user:$imap_pass@smtp.gmail.com +set realname = "Jakob Odersky" +set from = jodersky@gmail.com +set hostname = "gmail.com" + +set ssl_force_tls = yes +unset ssl_starttls + +account-hook $folder "set imap_user=jodersky@gmail.com imap_pass=`pass sites/gmail.com`"
\ No newline at end of file diff --git a/home/.mutt/colors b/home/.mutt/colors new file mode 100644 index 0000000..c8affeb --- /dev/null +++ b/home/.mutt/colors @@ -0,0 +1,87 @@ +## Theme kindly inspired from +## http://nongeekshandbook.blogspot.ie/2009/03/mutt-color-configuration.html + +## Colours for items in the index +color index brightcyan black ~N +color index brightred black ~O +color index brightyellow black ~F +color index black green ~T +color index brightred black ~D +mono index bold ~N +mono index bold ~F +mono index bold ~T +mono index bold ~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]+" + +## 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-Fnord:" +color header yellow black "^X-WebTV-Stationery:" + +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-Fnord:" +color header yellow black "^X-WebTV-Stationery:" +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 cyan +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/home/.mutt/gpg b/home/.mutt/gpg new file mode 100644 index 0000000..96b89d1 --- /dev/null +++ b/home/.mutt/gpg @@ -0,0 +1,89 @@ +set pgp_use_gpg_agent = yes +set pgp_autosign = yes +unset pgp_autoencrypt +#set pgp_encryptself +set pgp_replysign = yes +set pgp_replyencrypt = yes +set pgp_verify_sig = yes +set pgp_sign_as = 0x4E7DA7B5A0F86992D6EB3F514601878662E33372 + +# Command formats for gpg. +# +# +# %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="/usr/lib/mutt/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="/usr/lib/mutt/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" +# This will work when #172960 will be fixed upstream +# set pgp_getkeys_command="gpg --recv-keys %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"
\ No newline at end of file diff --git a/home/.mutt/muttrc b/home/.mutt/muttrc new file mode 100644 index 0000000..f4d9ee7 --- /dev/null +++ b/home/.mutt/muttrc @@ -0,0 +1,21 @@ +## General options +set header_cache = "~/.cache/mutt" +set imap_check_subscribed +set imap_keepalive = 300 +unset imap_passive +set mail_check = 60 +set certificate_file = "~/.mutt/certificates" +#set mbx_type=Maildir +#set postponed = ~/Mail/postponed +#set record = ~/Mail/sent + +# UI +source ~/.mutt/colors +set editor = "emacs -nw" + +# GPG +source ~/.mutt/gpg + +## Gmail +source "~/.mutt/accounts/gmail" +folder-hook $folder "source ~/.mutt/accounts/gmail" |