~gpanders/dotfiles

ref: ddf976bd44e7f574aade2f84bc9f947729b7caa8 dotfiles/.config/mutt/muttrc -rw-r--r-- 3.7 KiB
ddf976bdGregory Anders tmux: explicitly set default command to fish 4 months ago
                                                                                
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
set realname = "Gregory Anders"

# Settings for handling MIME types
set mailcap_path = ~/.config/mutt/mailcap
alternative_order text/calendar text/plain text/enriched text/html
unauto_view *
auto_view text/calendar
auto_view text/html
auto_view text/x-diff
auto_view text/x-patch

# The bgedit.sh script launches the editor in a new pane if tmux is active.
# Otherwise it just starts the editor as normal.
set editor = "~/.local/share/mutt/bgedit.sh `echo $EDITOR`"
set background_edit = `[ -n "$TMUX" ] && echo 'yes' || echo 'no'`

set envelope_from
set sendmail = msmtp

# Skip to compose when replying
set fast_reply

# Format of subject when forwarding
set forward_format = "Fwd: %s"

# Format of quoting header
set attribution = "On %{!%a, %d %b %Y at %H:%M %z}, %n wrote:"

# Include message in replies
set include

# Time before Mutt gives up waiting for user input (default is 600)
set timeout = 10

# Force UTF-8
set send_charset = "utf-8"

# Enable text_flowed formatting
set text_flowed

# Don't mark messages as "old" if they're still unread
set mark_old = no

# Don't ask to append messages to a mailbox
set confirmappend = no

# Don't ask to delete messages, just do it
set delete = yes

# Don't move cursor after applying an action to a message (e.g. deleting or tagging)
set resolve = no

# Automatically apply actions to all tagged messages. This is how most modern
# email clients work anyway
set auto_tag = yes

# Format of directory listings when using <change-folder>
set folder_format = "%t %N %-20.20f %?n?%8n?"

# Remove delay between switching folders
set sleep_time = 0

# Index view options
set date_format = "%a, %d %b %Y %H:%M:%S"
set index_format = " [%Z]  %-9@date@  %-20.20F %@list@%s"
index-format-hook date "~d<1d" "Today"
index-format-hook date "~d<2d" "Yesterday"
index-format-hook date "~d<1w" "%[%A]"
index-format-hook date "~d<1y" "%[%b %d]"
index-format-hook date "~A"    "%[%b %y]"

index-format-hook list "~l" "[%B] "

set pager_format = " %.50s / %n / %D%* %P "

set sort = threads
set sort_aux = reverse-last-date-received
set sort_re
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set pager_index_lines = 10
set pager_context = 3
set pager_stop

# Scroll menus by one line instead of a whole page when crossing a screen
# boundary
set menu_scroll

# Don't show + signs for wrapped lines
unset markers

# Colorized diffs and patches
color body red default "^diff \-.*"
color body yellow default "^index [a-f0-9].*"
color body green default "^\-\-\- .*"
color body red default "^[\+]{3} .*"
color body green default "^[\+][^\+]+.*"
color body red  default "^\-[^\-]+.*"
color body blue default "^@@ .* @@"

# Cache message headers and bodies
set message_cachedir = ~/.cache/mutt/
set header_cache = ~/.cache/mutt/

# Where to store certificates
set certificate_file = ~/.cache/mutt/certificates

set status_format = "    %m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? %?p?(%p postponed)? %>"

# Optionally convert emails to multipart/alternative with an HTML part
# The script below takes the plain text email on its stdin and produces
# HTML-ized output using a Markdown to HTML converter
set send_multipart_alternative = ask-no
set send_multipart_alternative_filter = ~/.local/share/mutt/md2html.sh

# Save history to file
set history_file = ~/.cache/mutt/history
set save_history = 10

# Set default directory to save attachments into
set attach_save_dir = ~/Downloads

source ~/.config/mutt/colors.rc
source ~/.config/mutt/bindings.rc
source ~/.config/mutt/sidebar.rc
source ~/.config/mutt/lists.rc
source ~/.config/mutt/gpg.rc

folder-hook . 'source ~/.config/mutt/default.rc'

# Create folder hook for each account
folder-hook gpanders.com 'source ~/.config/mutt/gpanders.rc'

# Source default account
source ~/.config/mutt/gpanders.rc