-
Notifications
You must be signed in to change notification settings - Fork 0
/
.muttrc
196 lines (171 loc) · 7.28 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
#
# George 'papanikge' Papanikolaou mutt conf
#
# updated a bit for the .dotfiles repo on 05/10/2014
# 3.0 version for neomutt on 03/10/2017
#
# Account ---------------------------------------------------------------------
# set folder = "imaps://mailer.skroutz.gr/" ##### set up protonmail
set folder = "imaps://mailer.skroutz.gr/"
set imap_user = "gpapanikolaou@skroutz.gr"
set smtp_url = "smtp://gpapanikolaou@skroutz.gr@mailer.skroutz.gr:587"
set from = "gpapanikolaou@skroutz.gr"
set spoolfile = +INBOX
set postponed = +Drafts
set record = +Sent
set trash = +Trash
mailboxes = +INBOX #+Sent !/thestrangeloop !/trello !/cron !/commits
set tmpdir = "~/.mutt/temp"
set signature = "~/.mutt/signature"
set imap_keepalive = 30
set mail_check = 60
unset imap_passive
unset use_ipv6
# Use this to show fetch everything that there is on the server
# It also makes every mailbox visible in the sidebar
set imap_check_subscribed
set imap_list_subscribed
# You probably need a tool to fetch mail to have these:
# set header_cache = "~/.mutt/cache/headers/"
# set message_cachedir = "~/.mutt/cache/bodies/"
# General ---------------------------------------------------------------------
set editor = "vim --noplugin"
set new_mail_command = "notify-send 'New Mail'"
set pipe_decode # strip headers and eval mimes when piping
set reverse_alias # show names from alias file in index
set thorough_search # strip headers and eval mimes before searching
set thread_received # sort threads by date received, not sent
set quit
set ascii_chars
set allow_8bit
unset confirmappend
unset mark_old # read/new is good enough
unset wait_key # shut up, mutt
unset move
# Cryptography. Thanks Mr. Snowden. -------------------------------------------
source "gpg -qd ~/.mutt/passwords.gpg |"
# unset pgp_autosign
# unset pgp_verify_sig
# set pgp_timeout = 3600
# set pgp_use_gpg_agent = yes
# Header Options --------------------------------------------------------------
# as in firewall configuration, we first ignore all headers.
# Then, we unignore headers we want to be displayed.
ignore *
unignore from: to: cc: date: subject: Date Reply-To X-Mailer User-Agent Bcc
unhdr_order *
hdr_order from: to: cc: date: subject:
# Pager View Options ----------------------------------------------------------
set pager_context = 5 # number of context lines to show
set pager_index_lines = 10 # number of index lines to show
set pager_stop # don't go to next message automatically
set tilde # show tildes like in vim
set menu_scroll # scroll in menus
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
unset markers # no ugly plus signs
alternative_order text/plain text/enriched text/html
# Index View Options ----------------------------------------------------------
set sort = threads # like gmail
set sort_aux = reverse-last-date-received
set uncollapse_jump # don't collapse on an unread message
set sort_re # thread based on regex
set alias_format = "%4n %t %-20a %r"
set date_format = "%d/%m/%y at %I:%M"
# set index_format = "[%Z] %D %-20.20F %s" # see below
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
# Composing mail --------------------------------------------------------------
set askcc # always ask for CC:
set edit_headers # show headers when composing
set fast_reply # skip to compose when replying
set forward_quote # include message in forwards
set include # include message in replies
set envelope_from # which from?
set reverse_name # reply as who it was sent to
set sig_dashes # dashes before sig
set fcc_attach # save attachments with the body
set forward_decode # decode when forwarding
set realname = "George Papanikolaou"
set forward_format = "Fwd: %s"
set attribution = "On %d, %n wrote:"
unset mime_forward # forward attachments as part of body
# Keyboard shortcuts ----------------------------------------------------------
bind pager q exit
bind pager i toggle-quoted
bind pager / search
bind pager <up> next-line
bind pager <down> previous-line
bind pager g noop
bind pager gg top
bind pager G bottom
bind pager N search-opposite
bind pager R group-reply
bind attach <return> view-mailcap # View attachments properly. (??)
bind index i noop
bind index g noop
bind index gg first-entry
bind index G last-entry
bind index U next-unread
bind index N search-opposite
bind index R group-reply
bind index y imap-fetch-mail
bind index <space> collapse-thread
bind index,pager @ compose-to-sender
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
macro index gi "<change-folder>=INBOX<enter>" "Go to inbox"
macro pager S "<save-message>=Spam<enter>" "mark as Spam (skroutz)"
# Sidebar ---------------------------------------------------------------------
set sidebar_visible
set sidebar_width = 35
set sidebar_short_path
set sidebar_indent_string = ' '
set sidebar_divider_char = " | "
set sidebar_folder_indent
set mail_check_stats
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
set sidebar_sort_method = 'path'
bind index,pager \Ck sidebar-prev
bind index,pager \Cj sidebar-next
bind index,pager \Ci sidebar-open
# ----------------------------------------------------------------------------
# Powerline / nerdfont
# This is a bit "hackish" due to neomutt limitations
#
# Author: Sheoak <contact [at] sheoak.fr>
# ----------------------------------------------------------------------------
set index_format=" %zs %zc %zt %{!%d %b} . %-28.28L %?M?(%1M)& ? %?X?&·? %s"
set pager_format=" %n %zc %T %s%* %{!%d %b · %H:%M} %?X? %X ? %P "
set status_format = " %f%?r? %r? %m %?n? %n ? %?d? %d ?%?t? %t ?%?F? %F? %> %?p? %p ?"
set vfolder_format = " %N %?n?%3n& ? %8m · %f"
set attach_format = "%u%D %T%-75.75d %?T?%& ? %5s · %m/%M"
# no addressed to me, to me, group, cc, sent by me, mailing list
set to_chars=""
# unchanged mailbox, changed, read only, attach mode
set status_chars = " "
ifdef crypt_chars set crypt_chars = " "
set flag_chars = " "
set hidden_tags = "unread,draft,flagged,passed,replied,attachment,signed,encrypted"
tag-transforms "replied" "↻ " \
"encrytpted" "" \
"signed" "" \
"attachment" "" \
# The formats must start with 'G' and the entire sequence is case sensitive.
tag-formats "replied" "GR" \
"encrypted" "GE" \
"signed" "GS" \
"attachment" "GA" \
color status white black
# powerline status bar hack
color status green black ''
color status yellow black ''
color status red black ''
color status brightblack blue '(.*)' 1
color status blue black '.*()' 1
color status black blue '\s* [0-9]+\s*'
color status blue black '().*$' 1
color status yellow black '()\s*\s*[0-9]+\s*' 1
color status black yellow '\s*\s*[0-9]+\s*'
color status blue yellow '() ([0-9]+%|all|end) \s*' 1
color status black blue ' ([0-9]+%|all|end) \s*'
color status yellow black '()\s*' 1
color status default black ''
source ~/.mutt/dracula.muttrc