-
Notifications
You must be signed in to change notification settings - Fork 0
/
.muttrc
145 lines (131 loc) · 4.19 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Headers {{{1
ignore *
unignore from to cc bcc date organization
unhdr_order *
hdr_order From: To: Cc: Subject: Date:
# Settings {{{1
unset abort_unmodified
set assumed_charset="utf-8:gbk"
set attach_charset="utf-8:gbk"
set beep_new
set charset="utf-8"
set edit_headers
set fast_reply
set forward_format = "Fwd: %s"
set forward_quote
set include
set ispell = "aspell -e -c"
set mail_check=120
set menu_scroll
set pager_context = 5
set pager_index_lines = 5
set pager_stop
set pipe_decode
set quit
set read_inc=100
set resolve
set reverse_alias
set reverse_name
set rfc2047_parameters=yes
set search_context=3
set sort=threads
set sort_aux=reverse-last-date-received
set ssl_force_tls = yes
set text_flowed
set timeout = 3
unset mark_old
unset markers
unset reply_to
unset sort_re
unset wait_key
# Bindings {{{1
macro index a "<limit>all\n" "show all messages (undo limit)"
macro index q '<change-folder>?<toggle-mailboxes>'
bind index p parent-message
macro index za "<collapse-thread>" "(un)collapse thread"
bind index zt current-top
bind index zz current-middle
bind index zb current-bottom
bind index h previous-page
bind index l next-page
bind index / limit
macro index,pager ,p "<pipe-message>cat > /tmp/" "save message as"
macro index,pager ,z "<shell-escape>offlineimap -q -o<return>" "sync IMAP"
macro index,pager ,R "<tag-pattern>all<return><tag-prefix><clear-flag>N<untag-pattern>all<return>" "mark all as read"
macro index,pager ,q \
"<enter-command>unset wait_key<enter><shell-escape>mutt-notmuch --output \
/tmp/.notmuch --prompt search<enter><change-folder-readonly>/tmp/.notmuch<enter>" \
"search mail (using notmuch)"
bind generic,index j next-entry
bind generic,index k previous-entry
bind index,pager . next-unread
bind index,pager J next-new-then-unread
bind index,pager K previous-new-then-unread
bind index,pager a create-alias
bind index,pager N search-opposite
bind index,pager <up> sidebar-prev
bind index,pager <down> sidebar-next
bind index,pager <right> sidebar-open
bind index,pager B sidebar-toggle-visible
macro index,pager \Cx0 "<enter-command>source ~/.mutt/local<enter>"
macro index,pager \Cx1 "<enter-command>source ~/.mutt/remote<enter>"
macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook"
macro attach V "<pipe-entry>cat > /tmp/mail.html && $BROWSER /tmp/mail.html<enter>"
bind pager \Cu half-up
bind pager \Cd half-down
bind pager p parent-message
bind pager G bottom
bind pager h previous-line
bind pager l next-line
bind pager H display-toggle-weed
bind pager N search-opposite
macro pager \cu "|urlscan\n"
macro attach \cu "|w3m -T text/html\n"
# Formats {{{1
set attribution='On %{%F}, %n wrote:'
set alias_format = "%4n %t %-20a %r"
set compose_format = "-- Compose %h [Approx. msg size: %l Atts: %a]%>-"
set date_format = "%d/%m/%y at %I:%M%P"
set index_format = "%3C %Z %[!%y-%m-%d] %-17.17F %s"
set pager_format = "%S [%C/%T] %n %s %> %P "
set status_format = "-%r- %f (%s) [%M/%m] [NEW=%n] %?V?[%V]?"
set status_format = "-%r- [%?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-"
bind attach ' ' select-entry
macro attach s <save-message><bol>/tmp/
bind browser $ check-new
bind browser ' ' select-entry
macro browser q '<exit><quit>'
# Sidebar {{{1
set sidebar_short_path
set sidebar_visible
set sidebar_width = 40
set sidebar_format = "%B%* %?N?%N?"
# Misc {{{1
set mailcap_path=~/.mutt/mailcap
auto_view application/* image/* text/html
alternative_order text/html text/plain
mime_lookup application/octet-stream
source "gpg -dq $HOME/.config/mutt/password.gpg |"
set folder=imaps://imap.gmail.com
set imap_user=saldivarcher@gmail.com
set imap_passive=yes
set imap_keepalive=300
unmailboxes *
mailboxes =INBOX =[Gmail]/Drafts =[Gmail]/'Sent Mail' =[Gmail]/Spam
mailboxes +binutils
mailboxes +binutils/gold
mailboxes +gcc
mailboxes +gcc/gcc-patches
mailboxes +fail2ban
mailboxes +llvm-dev
mailboxes +llvm-dev/lld
set spoolfile=+INBOX
set postponed=+[Gmail]/Drafts
set mbox_type=Maildir
## Send options
set smtp_url=smtps://$imap_user:$imap_pass@smtp.gmail.com
set from=saldivarcher@gmail.com
set realname="Miguel Saldivar"
set hostname="gmail.com"
unset record
source ~/.dot_files/mutt/theme