diff options
Diffstat (limited to '.mutt')
-rw-r--r-- | .mutt/accounts.rc | 13 | ||||
-rw-r--r-- | .mutt/attachments.rc | 2 | ||||
-rw-r--r-- | .mutt/color.rc | 84 | ||||
-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/default.rc | 8 | ||||
-rw-r--r-- | .mutt/gpg.rc | 14 | ||||
-rw-r--r-- | .mutt/khard.rc | 5 | ||||
-rw-r--r-- | .mutt/lac@linuxaudio.org.rc | 18 | ||||
-rw-r--r-- | .mutt/lac@linuxaudio.org.sig | 2 | ||||
-rw-r--r-- | .mutt/macros.rc | 36 | ||||
-rw-r--r-- | .mutt/muttrc | 32 | ||||
-rw-r--r-- | .mutt/security.rc | 2 | ||||
-rw-r--r-- | .mutt/sidebar.rc | 12 | ||||
-rw-r--r-- | .mutt/sorting.rc | 2 |
19 files changed, 299 insertions, 0 deletions
diff --git a/.mutt/accounts.rc b/.mutt/accounts.rc new file mode 100644 index 0000000..8e69ba3 --- /dev/null +++ b/.mutt/accounts.rc @@ -0,0 +1,13 @@ +# dave@sleepmap.de (default) +set spoolfile = "+sleepmap.de/INBOX" +source "~/.mutt/dave@sleepmap.de.rc" +folder-hook sleepmap.de/* source ~/.mutt/dave@sleepmap.de.rc + +# lac@linuxaudio.org +folder-hook linuxaudio.org/* source ~/.mutt/lac@linuxaudio.org.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 diff --git a/.mutt/attachments.rc b/.mutt/attachments.rc new file mode 100644 index 0000000..693f174 --- /dev/null +++ b/.mutt/attachments.rc @@ -0,0 +1,2 @@ +set mime_forward=yes +set mime_forward_rest=yes diff --git a/.mutt/color.rc b/.mutt/color.rc new file mode 100644 index 0000000..b413dca --- /dev/null +++ b/.mutt/color.rc @@ -0,0 +1,84 @@ +# Colors for items in the index +color index brightcyan default ~N +color index brightred default ~O +color index brightyellow default ~F +color index black green ~T +color index brightred default ~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 default "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*" +color body brightgreen default "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 default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" + +# Header +color header green default "^from:" +color header green default "^to:" +color header green default "^cc:" +color header green default "^date:" +color header yellow default "^newsgroups:" +color header yellow default "^reply-to:" +color header brightcyan default "^subject:" +color header red default "^x-spam-rule:" +color header green default "^x-mailer:" +color header yellow default "^message-id:" +color header yellow default "^Organization:" +color header yellow default "^Organisation:" +color header yellow default "^User-Agent:" +color header yellow default "^message-id: .*pine" +color header yellow default "^X-Fnord:" +color header yellow default "^X-WebTV-Stationery:" + +color header red default "^x-spam-rule:" +color header green default "^x-mailer:" +color header yellow default "^message-id:" +color header yellow default "^Organization:" +color header yellow default "^Organisation:" +color header yellow default "^User-Agent:" +color header yellow default "^message-id: .*pine" +color header yellow default "^X-Fnord:" +color header yellow default "^X-WebTV-Stationery:" +color header yellow default "^X-Message-Flag:" +color header yellow default "^X-Spam-Status:" +color header yellow default "^X-SpamProbe:" +color header red default "^X-SpamProbe: SPAM" + +# Coloring quoted text - coloring the first 7 levels: +color quoted cyan default +color quoted1 yellow default +color quoted2 red default +color quoted3 green default +color quoted4 cyan default +color quoted5 yellow default +color quoted6 red default +color quoted7 green default + +# Default color definitions +#color hdrdefault white green +color signature brightmagenta default +color indicator black cyan +color attachment black green +color error red default +color message white default +color search brightwhite magenta +color status brightyellow blue +color tree brightblue default +color normal white default +color tilde green default +color bold brightyellow default +color underline magenta default +color markers brightcyan default + +# Color 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..77921ac --- /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>+INBOX.Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+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..75c1efb --- /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>+Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+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..c8ad85c --- /dev/null +++ b/.mutt/dave@sleepmap.de.sig @@ -0,0 +1,4 @@ +David Runge +Schreinerstraße 11 +10247 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..8ea2283 --- /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>+Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+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/default.rc b/.mutt/default.rc new file mode 100644 index 0000000..7d3dfc6 --- /dev/null +++ b/.mutt/default.rc @@ -0,0 +1,8 @@ +set editor=`echo \$EDITOR` +set folder = "~/Mail" +set mbox_type = Maildir +set mail_check = 60 + +set date_format = "%F %T (%Z)" +set index_format = "%4C %D %Z %-15.15L (%?l?%4l&%4c?) %s" +set folder_format = "%2C %N %2l %-8.8u %-8.8g %8s %d %f" diff --git a/.mutt/gpg.rc b/.mutt/gpg.rc new file mode 100644 index 0000000..002730d --- /dev/null +++ b/.mutt/gpg.rc @@ -0,0 +1,14 @@ +set pgp_good_sign="^gpg: Good signature from " +set pgp_use_gpg_agent = yes +set pgp_sign_as = 0xF5A1A949 +set pgp_timeout = 60 +set crypt_use_gpgme = yes +set crypt_autosign = yes +set crypt_replyencrypt = yes +set crypt_replysignencrypted = yes + +# add message-hook for non standard-compliant (old) gnupg style messages +message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp" + +send-hook . 'reset crypt_autoencrypt' +source "~/.mutt/gpg-auto.rc" diff --git a/.mutt/khard.rc b/.mutt/khard.rc new file mode 100644 index 0000000..1899e79 --- /dev/null +++ b/.mutt/khard.rc @@ -0,0 +1,5 @@ +# auto-completing mails when pressing tab in "new mail" dialog using khard address books +set query_command= "khard email --search '%s'" +bind editor <Tab> complete-query +bind editor ^T complete + diff --git a/.mutt/lac@linuxaudio.org.rc b/.mutt/lac@linuxaudio.org.rc new file mode 100644 index 0000000..7e4bb85 --- /dev/null +++ b/.mutt/lac@linuxaudio.org.rc @@ -0,0 +1,18 @@ +set from = "David Runge <lac@linuxaudio.org>" +set sendmail = "/usr/bin/msmtp -a linuxaudio.org" +set folder = "~/Mail/linuxaudio.org" +set spoolfile = "+INBOX" +set postponed = "+Drafts" +set record = "+Sent" +set realname = "David Runge" +set signature = "~/.mutt/lac@linuxaudio.org.sig" + +color status green default + +macro index D \ + "<save-message>+Trash<enter>" \ + "move message to the trash" + +macro index S \ + "<save-message>+Spam<enter>" \ + "mark message as spam" diff --git a/.mutt/lac@linuxaudio.org.sig b/.mutt/lac@linuxaudio.org.sig new file mode 100644 index 0000000..57a5901 --- /dev/null +++ b/.mutt/lac@linuxaudio.org.sig @@ -0,0 +1,2 @@ +Linux Audio Conference +http://lac.linuxaudio.org diff --git a/.mutt/macros.rc b/.mutt/macros.rc new file mode 100644 index 0000000..4440dca --- /dev/null +++ b/.mutt/macros.rc @@ -0,0 +1,36 @@ + +# source folder settings and enter folder +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>' + +# adding default download folder +macro attach W "<save-entry><bol>~/Downloads/<eol>" \ + "Save to Downloads folder" + +# 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" + +# notmuch-mutt +macro index <F8> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ + <shell-escape>notmuch-mutt -r --prompt search<enter>\ + <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ + <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ + "notmuch: search mail" + +macro index <F9> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ + <pipe-message>notmuch-mutt -r thread<enter>\ + <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\ + <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ + "notmuch: reconstruct thread" + +macro index <F6> \ + "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\ + <pipe-message>notmuch-mutt tag -- -inbox<enter>\ + <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \ + "notmuch: remove message from inbox" + diff --git a/.mutt/muttrc b/.mutt/muttrc new file mode 100644 index 0000000..f990e46 --- /dev/null +++ b/.mutt/muttrc @@ -0,0 +1,32 @@ +# defaults +source "~/.mutt/default.rc" + +# color +source "~/.mutt/color.rc" + +# gnupg +source "~/.mutt/gpg.rc" + +# mailboxes (set by offlineimap) +source "~/.mutt/mailboxes.rc" + +# sorting +source "~/.mutt/sorting.rc" + +# attachments +source "~/.mutt/attachments.rc" + +# khard (contacts) +source "~/.mutt/khard.rc" + +# accounts +source "~/.mutt/accounts.rc" + +# macros +source "~/.mutt/macros.rc" + +# security +source "~/.mutt/security.rc" + +# sidebar +source "~/.mutt/sidebar.rc" diff --git a/.mutt/security.rc b/.mutt/security.rc new file mode 100644 index 0000000..af00478 --- /dev/null +++ b/.mutt/security.rc @@ -0,0 +1,2 @@ +# disable enter-command (so password commands won't show up in command history) +bind generic,alias,attach,browser,editor,index,compose,pager,pgp,postpone ':' noop diff --git a/.mutt/sidebar.rc b/.mutt/sidebar.rc new file mode 100644 index 0000000..a5da4d2 --- /dev/null +++ b/.mutt/sidebar.rc @@ -0,0 +1,12 @@ +set sidebar_visible = yes +set sidebar_sort = yes +set sidebar_width = 30 + +macro index b '<enter-command>toggle sidebar_visible<enter><refresh>' +macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>' + +# Ctrl-n, Ctrl-p to select next, previous folder. +# Ctrl-o to open selected folder. +bind index,pager \CP sidebar-prev +bind index,pager \CN sidebar-next +bind index,pager \CO sidebar-open diff --git a/.mutt/sorting.rc b/.mutt/sorting.rc new file mode 100644 index 0000000..48827f7 --- /dev/null +++ b/.mutt/sorting.rc @@ -0,0 +1,2 @@ +set sort = "threads" +set sort_aux = "last-date-received" |