aboutsummaryrefslogtreecommitdiffstats
path: root/.mutt/muttrc
blob: 87ec844b3245c328556a0d2839606b18acd8aaee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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