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