summaryrefslogtreecommitdiff
path: root/.mutt/muttrc
blob: e0228cddf78879b7929ae8558f2233fc23d4a41d (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
set mbox_type = Maildir
set mark_old = no
set keep_flagged = yes
set edit_headers = yes
set charset = UTF-8
set delete = yes
set include = yes
set autoedit = yes
set move = no
set pager_index_lines = 10
set pager_context = 4
set sort = threads
set sort_aux = reverse-last-date-received
set index_format = "%4C %Z %{%b %d} %-35L (%?l?%4l&%4c?) %s"

# Use CONDSTORE on IMAP servers that support to for faster syncing of updates
# to mailboxes. Will be slower for Gmail.
set imap_condstore = yes

# Support for flowed messages, which don't hard-wrap on clients like iOS mail.
# fo=w leaves whitespace at the end of lines to indicate that the paragraph
# continues on the next line.
set text_flowed = yes
set editor = 'vim -c "set fo+=w" -- %s'

set mail_check_stats = yes
set sidebar_visible = yes
set sidebar_format = "%B%* %?N?(%N)? %S"
set sidebar_divider_char = "│"
set sidebar_folder_indent = yes
set sidebar_short_path = yes

set header_cache = ~/.cache/mutt/headers
set message_cachedir = ~/.cache/mutt/bodies
set certificate_file = ~/.mutt/certificates
set mailcap_path = ~/.mutt/mailcap

# Slightly speed up folder read-write speed by updating the status messages
# every 50 messages instead of every 10.
set read_inc = 50
set write_inc = 50

ignore *
unhdr_order *
unignore from to cc subject date user-agent x-editor x-mailer
hdr_order user-agent x-mailer x-editor date to cc from subject
my_hdr X-Editor: `vim --version | head -n1 | sed 's/(.*//'`

alternative_order text/plain text/enriched text/html text/*
auto_view text/html
auto_view text/calendar

#set query_command = "grep -i '%s' ~/contacts.txt"

bind index G imap-fetch-mail
bind index \# noop
bind index \& noop
bind editor <delete> delete-char
bind editor <Tab> complete-query
bind editor ^T    complete

macro pager \cb <pipe-entry>'urlview'<enter> 'Follow links with urlview'

source ~/.mutt/active.account
# source colorscheme

# This has to be after active.account so $my_gpg_home is defined
set pgp_replyencrypt=yes
set pgp_check_gpg_decrypt_status_fd=yes
set pgp_decode_command="gpg --homedir $my_gpg_home --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="gpg --homedir $my_gpg_home --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --homedir $my_gpg_home --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_sign_command="gpg --homedir $my_gpg_home --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --homedir $my_gpg_home --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --homedir $my_gpg_home --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --homedir $my_gpg_home %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --homedir $my_gpg_home --no-verbose --import %f"
set pgp_export_command="gpg --homedir $my_gpg_home --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --homedir $my_gpg_home --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --homedir $my_gpg_home --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
set pgp_list_secring_command="gpg --homedir $my_gpg_home --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r"
set pgp_good_sign="^gpgv?: Good signature from "