diff options
-rw-r--r-- | .mutt/color.rc | 87 | ||||
-rw-r--r-- | .mutt/dave@c-base.org.rc | 17 | ||||
-rw-r--r-- | .mutt/dave@c-base.org.sig | 1 | ||||
-rw-r--r-- | .mutt/dave@sleepmap.de.rc | 18 | ||||
-rw-r--r-- | .mutt/dave@sleepmap.de.sig | 4 | ||||
-rw-r--r-- | .mutt/david.runge@campus.tu-berlin.de.rc | 18 | ||||
-rw-r--r-- | .mutt/david.runge@campus.tu-berlin.de.sig | 11 | ||||
-rw-r--r-- | .mutt/gpg.rc | 85 | ||||
-rw-r--r-- | .mutt/mailboxes | 1 | ||||
-rw-r--r-- | .mutt/muttrc | 50 |
10 files changed, 292 insertions, 0 deletions
diff --git a/.mutt/color.rc b/.mutt/color.rc new file mode 100644 index 0000000..c8affeb --- /dev/null +++ b/.mutt/color.rc @@ -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/.mutt/dave@c-base.org.rc b/.mutt/dave@c-base.org.rc new file mode 100644 index 0000000..eede7d5 --- /dev/null +++ b/.mutt/dave@c-base.org.rc @@ -0,0 +1,17 @@ +set from = "David Runge <dave@c-base.org>" +set sendmail = "/usr/bin/msmtp -a c-base.org" +set folder = "~/Mail/c-base.org" +set spoolfile = "+INBOX" +set postponed = "+INBOX.Drafts" +set record = "+INBOX.Sent" +set signature = "~/.mutt/dave@c-base.org.sig" + +color status blue default + +macro index D \ + "<save-message>+c-base.org/INBOX.Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+c-base.org/INBOX.Spam<enter>" \ + "mark message as spam" diff --git a/.mutt/dave@c-base.org.sig b/.mutt/dave@c-base.org.sig new file mode 100644 index 0000000..1e6a3ea --- /dev/null +++ b/.mutt/dave@c-base.org.sig @@ -0,0 +1 @@ +I can feel my mind is going... diff --git a/.mutt/dave@sleepmap.de.rc b/.mutt/dave@sleepmap.de.rc new file mode 100644 index 0000000..e54ba3f --- /dev/null +++ b/.mutt/dave@sleepmap.de.rc @@ -0,0 +1,18 @@ +set from = "David Runge <dave@sleepmap.de>" +set sendmail = "/usr/bin/msmtp -a sleepmap.de" +set folder = "~/Mail/sleepmap.de" +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set record = "+Sent" +set realname = "David Runge" +set signature = "~/.mutt/dave@sleepmap.de.sig" + +color status green default + +macro index D \ + "<save-message>+sleepmap.de/Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+sleepmap.de/Spam<enter>" \ + "mark message as spam" diff --git a/.mutt/dave@sleepmap.de.sig b/.mutt/dave@sleepmap.de.sig new file mode 100644 index 0000000..6af43c7 --- /dev/null +++ b/.mutt/dave@sleepmap.de.sig @@ -0,0 +1,4 @@ +David Runge +Köpenicker Straße 163 +10997 Berlin +http://sleepmap.de diff --git a/.mutt/david.runge@campus.tu-berlin.de.rc b/.mutt/david.runge@campus.tu-berlin.de.rc new file mode 100644 index 0000000..6730175 --- /dev/null +++ b/.mutt/david.runge@campus.tu-berlin.de.rc @@ -0,0 +1,18 @@ +# Receive options +set from = "David Runge <david.runge@campus.tu-berlin.de>" +set sendmail = "/usr/bin/msmtp -a tu-berlin.de" +set folder = "~/Mail/tu-berlin.de" +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set record = "+Sent" +set signature = "~/.mutt/david.runge@campus.tu-berlin.de.sig" + +color status red default + +macro index D \ + "<save-message>+sleepmap.de/Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+sleepmap.de/Spam<enter>" \ + "mark message as spam" diff --git a/.mutt/david.runge@campus.tu-berlin.de.sig b/.mutt/david.runge@campus.tu-berlin.de.sig new file mode 100644 index 0000000..3a5497f --- /dev/null +++ b/.mutt/david.runge@campus.tu-berlin.de.sig @@ -0,0 +1,11 @@ +David Runge +Elektronisches Studio, Fachgebiet Audiokommunikation + +Technische Universität Berlin +Fakultät I Geistes- und Bildungswissenschaften +Institut für Sprache und Kommunikation +Einsteinufer 17c, Sekr. E-N 8, 10587 Berlin + +Website: http://www.ak.tu-berlin.de/studio +E-Mail: studio@ak.tu-berlin.de +Telefon: +493031422327 diff --git a/.mutt/gpg.rc b/.mutt/gpg.rc new file mode 100644 index 0000000..c713b6d --- /dev/null +++ b/.mutt/gpg.rc @@ -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 --with-fingerprint --with-fingerprint --list-keys %r" + +# read in the secret key ring +set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --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/mailboxes b/.mutt/mailboxes new file mode 100644 index 0000000..66cb956 --- /dev/null +++ b/.mutt/mailboxes @@ -0,0 +1 @@ +mailboxes "+c-base/INBOX" "+sleepmap/Drafts" "+sleepmap/INBOX" "+sleepmap/Lists" "+sleepmap/Sent" "+sleepmap/Trash" "+tu-berlin/Drafts" "+tu-berlin/INBOX" "+tu-berlin/Sent" "+tu-berlin/Spam" "+tu-berlin/Trash" diff --git a/.mutt/muttrc b/.mutt/muttrc new file mode 100644 index 0000000..87ec844 --- /dev/null +++ b/.mutt/muttrc @@ -0,0 +1,50 @@ +# General settings +set editor=`echo \$EDITOR` +set my_name="David Runge" +source "~/.mutt/color.rc" +# GPG +source "~/.mutt/gpg.rc" +message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp" + +# IMAP: offlineimap +set folder = "~/Mail" +source ~/.mutt/mailboxes +set mail_check = 60 +set sort = "threads" +set sort_aux = "last-date-received" +set mbox_type = Maildir +#source "gpg -dq ~/.mutt/my-pwds.gpg |" + +## khard +# auto-completing mails when pressing tab in "new mail" dialog using khard address books +set query_command= "khard mutt --search '%s'" +bind editor <Tab> complete-query +bind editor ^T complete + +# adding e-mail addresses to khard address book +macro index,pager A \ + "<pipe-message>khard add-email<return>" \ + "add the sender email address to khard" + + +## dave@sleepmap.de +set spoolfile = "+sleepmap.de/INBOX" +source "~/.mutt/dave@sleepmap.de.rc" +folder-hook sleepmap.de/* source ~/.mutt/dave@sleepmap.de.rc + +## david.runge@tu-berlin.de +folder-hook tu-berlin.de/* source ~/.mutt/david.runge@campus.tu-berlin.de.rc + +## dave@c-base.org +folder-hook c-base.org/* source ~/.mutt/dave@c-base.org.rc + +## Shortcuts +macro index,pager <f2> '<sync-mailbox><enter-command>source ~/.mutt/dave@sleepmap.de.rc<enter><change-folder>!<enter>' +macro index,pager <f3> '<sync-mailbox><enter-command>source ~/.mutt/david.runge@campus.tu-berlin.de.rc<enter><change-folder>!<enter>' +macro index,pager <f4> '<sync-mailbox><enter-command>source ~/.mutt/dave@c-base.org.rc<enter><change-folder>!<enter>' + + +## Security +# Disable enter-command +bind generic,alias,attach,browser,editor,index,compose,pager,pgp,postpone ':' noop + |