update with mutt
[dotfiles.git] / muttrc
1 # Name and info
2 set realname="Mart Lubbers"
3 set from="mart@martlubbers.net"
4 set use_from=yes
5 set envelope_from=yes
6 set my_hdr="X-PGP-Key: http://www.martlubbers.net/mart@martlubbers.net.asc"
7
8 # Receiving and sending email
9 set my_msmtp_pass=`gpg -d ~/passwd.gpg | grep -i mail | awk '{print $3}'`
10 set sendmail="/usr/local/bin/msmtp -C /home/mart/.mutt/msmtp --password=$my_msmtp_pass -f mart@martlubbers.net -a net"
11
12 # Bindings index
13 bind index gg first-entry
14 bind index G last-entry
15
16 # Bindings pager
17 bind pager k previous-line
18 bind pager j next-line
19 bind pager gg top
20 bind pager G bottom
21 bind pager R group-reply
22
23 # Macros
24 macro index S "<shell-escape>mutt-notmuch-py ~/.mutt/mail/temp<enter><change-folder-readonly>+temp<enter>" "search mail (using notmuch)"
25 macro index,pager $ "<sync-mailbox><shell-escape>offlineimap -c ~/.mutt/offlineimaprc -k Repository_Remote:remotepass=$my_msmtp_pass &<enter>" "Force refresh"
26 macro index,pager \CT "<tag-pattern>~C vim@vim.org | ~C vim_use<enter><tag-prefix-cond><save-message>=vim<enter><end-cond><tag-pattern>~C lists.debian.org<enter><tag-prefix-cond><save-message>=debian<enter><end-cond><tag-pattern>~C mutt-users@mutt.org<enter><tag-prefix-cond><save-message>=mutt<enter><end-cond><tag-pattern>~C praat-users<enter><tag-prefix-cond><save-message>=praat<enter><end-cond><sync-mailbox>" "Clean up mailing lists"
27 macro index,pager \cb "|urlview\n"
28
29 # Folders
30 set mbox_type=Maildir
31 set folder=~/.mutt/mail/
32 set spoolfile=+/INBOX/
33 set record="+Sent/"
34 set trash="+Trash/"
35 set postponed="+Drafts/"
36 set mask="!^\\.[^.]"
37 set timeout = 3
38 set mail_check=0
39 source ~/.mutt/mailboxes
40
41 #View
42 unset wait_key
43 unset markers
44 set sort_browser=alpha
45 set sort=pin
46 set sort_aux=date
47 set editor=vim
48 set duplicate_threads=yes
49 auto_view text/html
50 ignore headers *
51 unignore headers from to subject date cc
52
53 #Pager
54 set pager_index_lines=20
55 set pager_context=3
56 set pager_stop
57 set menu_scroll
58 set tilde
59 set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
60 alternative_order text/plain text/enriched text/html
61
62 # Adress book
63 set alias_file="~/.mutt/alias"
64 source "~/.mutt/alias"
65
66 # Mailing lists
67 subscribe debian-user-dutch@lists.debian.org
68 subscribe debian-user@lists.debian.org
69 subscribe vim_use@googlegroups.com
70 subscribe vim@vim.org
71 subscribe mutt-user@mutt.org
72 subscribe praat-users@egroups.com
73
74 #Skip some options
75 set include=yes
76 set delete=yes
77 set confirmappend=no
78 set fast_reply=yes
79
80 #Colors
81 color normal white default
82 color attachment brightyellow default
83 color hdrdefault cyan default
84 color indicator default cyan
85 color markers brightred default
86 color quoted green default
87 color signature cyan default
88 color status brightgreen blue
89 color tilde blue default
90 color tree red default
91 color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
92 color body brightblue default (https?|ftp)://[\-\.\,/%~_:?\#a-zA-Z0-9]+
93
94 color quoted1 brightyellow default
95 color quoted2 red default
96 color hdrdefault cyan default
97 color signature cyan default
98
99 color index green default ~p
100 color index brightyellow default ~N
101 color index blue default ~T
102 color index red default ~D
103 color index brightblue default ~F
104
105 #Crypto
106 set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
107 set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
108 set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
109 set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
110 set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
111 set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
112 set pgp_import_command="gpg --no-verbose --import -v %f"
113 set pgp_export_command="gpg --no-verbose --export --armor %r"
114 set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
115 set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
116 set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
117
118 set pgp_sign_as=0xAD3FEBE7
119 set pgp_timeout=60
120 set pgp_good_sign="^gpg: Good signature from"
121
122 set crypt_autosign
123 set crypt_replysign
124 set crypt_replysignencrypted=yes
125 set crypt_verify_sig=yes