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