-
Notifications
You must be signed in to change notification settings - Fork 2
/
muttrc
131 lines (108 loc) · 4.54 KB
/
muttrc
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
### MUTT config file ###
# Basic setup
set mbox_type=Maildir
set folder=$HOME/.mail
set spoolfile=+/adambair/INBOX
set date_format="%A, %D at %k:%M:%S %Z"
set mime_forward=yes
unset markers
# address book and aliases
set alias_file=~/.mutt-alias
source ~/.mutt-alias
set query_command= "abook --mutt-query '%s'"
# Handle HTML email (also see ~/.mailcap)
# auto_view text/html
set my_gen=index,alias,query,attach,compose,postpone,browser,pgp,smime
# smtp
set use_from = yes
set envelope_from = "yes"
set sig_dashes # A signature must always start with a "-- "
# set sig_on_top
set sendmail_wait=-1 # Don't wait around for sendmail.
set copy=yes # Whether to save sent messages
set delete=yes # Do not ask when purging deleted message
set beep_new=yes # Beep when new messages arrive?
set move=no # Move read messages to another folder?
set forward_quote=yes # Quote the email body when forwarding?
set include=yes # Quote the email body when replying?
# set editor="vim -f"
set editor="vim -c 'set textwidth=0'"
set header_cache="~/.mutt/headers"
set mail_check=30 # check for new mail every xx seconds
set timeout=15 # after xx secs of no keypresses, start checking for new mail
set reverse_name # Reply with the address used in the TO/CC header
set ascii_chars=yes # Use ASCII arrows
set send_charset="iso-8859-1:utf-8"
set reverse_realname=yes # Reply with the name used in FROM
set reverse_alias=yes
set fast_reply="yes"
set confirmappend=no # Confirm when appending messages to an existing mailbox?
set pager_index_lines=6 # Show x message headers from your message index above an email you are reading
set smart_wrap # Don't wrap mid-word
set pager_context=5 # Retain x lines of previous page when scrolling.
set pager_stop = yes
set status_on_top # Status bar on top.
set sort=threads
set sort_aux=reverse-date
set tilde
unset collapse_unread
unset mark_old
unset ignore_list_reply_to
unset record
alternative_order text/plain text/html # Show plain text first
# Formating
set compose_format="-- %v-- Compose [Approximate Message Size: %l Attachments: %a]%>-"
set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
set alias_format="%4n %2f %t %-12a %r"
set status_format="-%r-%v--[%?M?%M/?%m msgs%?n?, %n new?%?d?, %d del?%?F?, %F flag?%?t?, %t tag?%?p?, %p postp?%?b?, %b inc?%?l?, %l?]--(%f)--%s-%>-%P-"
set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
set message_format="%-.16n: %s"
set pager_format="~~ %s %|~"
set attribution='On %{%a, %d %b %Y}, %n wrote:\n'
set forward_format = "[%s]"
#### Macros and such
# url viewing
macro index,pager cb |urlview 'call urlview to extract URLs out of a message'
macro generic,index,pager g "<group-reply>"
# VIMERIZE THIS BIACH
bind generic,pager j next-entry
bind generic,pager k previous-entry
bind pager J next-entry
bind pager K previous-entry
macro index,pager gg "<first-entry>"
macro index,pager G "<last-entry>"
macro index,pager "<previous-page>"
macro index,pager "<next-page>"
# allow space characters in macros ex: [Gmail].All Mail
bind editor <space> noop
# CONFIGS
source '~/.mutt/config/headers'
source '~/.mutt/config/colors'
source '~/.mutt/config/contacts'
# ACCOUNTS
source '~/.mutt/config/adambair'
source '~/.mutt/config/kalopsian'
source '~/.mutt/config/openbay'
source '~/.mutt/config/intridea'
mailboxes =adambair/INBOX
mailboxes =openbay/INBOX
mailboxes =kalopsian/INBOX
# 'L' performs a notmuch query, showing only the results
macro index L "<enter-command>unset wait_key<enter><shell-escape>read -p 'notmuch query: ' x; echo \$x >~/.cache/mutt_terms<enter><limit>~i \"\`notmuch search --output=messages \$(cat ~/.cache/mutt_terms) | head -n 600 | perl -le '@a=<>;chomp@a;s/\^id:// for@a;$,=\"|\";print@a'\`\"<enter>" "show only messages matching a notmuch pattern"
# 'a' shows all messages again (supersedes default <alias> binding)
macro index a "<limit>all\n" "show all messages (undo limit)"
macro index A "<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all new as read"
# SIDEBAR
# set up the sidebar, default not visible
# set sidebar_width=30
# set sidebar_visible=no
# set sidebar_delim='|'
# set sidebar_sort=yes
# bind index cp sidebar-prev
# bind index cn sidebar-next
# bind index co sidebar-open
# bind pager cp sidebar-prev
# bind pager cn sidebar-next
# bind pager co sidebar-open
# macro index b '<enter-command>toggle sidebar_visible<enter>'
# macro pager b '<enter-command>toggle sidebar_visible<enter>'