-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.neomuttrc
155 lines (126 loc) · 5.29 KB
/
.neomuttrc
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
#source ~/.neomutt/themes/powerline/colors/gruvbox-powerline.neomuttrc
source ~/.neomutt/themes/powerline/powerline.neomuttrc
set mailcap_path = "~/.neomutt/mailcap"
## Storage Setup
set header_cache = ~/.cache/neomutt/
set message_cachedir = ~/.cache/neomutt/
set tmpdir = ~/.cache/neomutt/
set virtual_spoolfile
set record = "+Sent"
## Notmuch configuration
set nm_default_uri = "notmuch:///home/.mail"
virtual-mailboxes "Inbox" "notmuch://?query=tag:inbox"
virtual-mailboxes "FSR" "notmuch://?query=to:*@ifsr.de"
virtual-mailboxes "[email protected]" "notmuch://?query=to:[email protected]"
virtual-mailboxes "FakRat" "notmuch://?query=*Fakultätsrat* or *Fakrat*"
virtual-mailboxes "BuS" "notmuch://?query=*bs2020* or *bs2021*"
virtual-mailboxes "Seminargruppen" "notmuch://?query=inf-*@ifsr.de or [email protected]"
virtual-mailboxes "All Unread Messages" "notmuch://?query=tag:unread"
virtual-mailboxes "Archive" "notmuch://?query=tag:archive"
virtual-mailboxes "Sent" "notmuch://?query=tag:sent"
virtual-mailboxes "Spam" "notmuch://?query=tag:spam"
macro index A "<modify-labels>+archive -unread -inbox<enter>" "Archive message"
macro index S "<modify-labels>+spam -unread -inbox<enter>" "Mark message as spam"
macro index c "<change-vfolder>?" "Change to vfolder overview"
macro index \\\\ "<vfolder-from-query>" "Search mailbox"
## Set of sane defaults for handling and displaying mail
set nomark_old # stop marking my mail as old
set smart_wrap # wrap words instead of cutting them half
set reflow_text # automatically reflow text if the mail allows it
set menu_scroll # scroll only a line instead of a page
set sort_re
set sort = reverse-threads
set sort_aux = last-date-received
set editor = 'vim -c "set fo+=aw" -c "set nosmartindent" -c "set nojs" -c "set filetype=mail" -c "normal }"'
set text_flowed = yes
set timeout = "5"
set mail_check = "10"
set mailcap_path = ~/.neomutt/mailcap
set pager_stop # Jesus Christ. Stop moving on to the next mail!
## Displaying Options -> How should the UI look?
#set index_format = "%Z ⌈%D⌋ %-20.20F ⌜%s⌟" # Switch format of index
set date_format = "%d.%m.%y" # use german date format for sanity reasons
set folder_format = '%N %4C %4s bytes %2F %2f'
#set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
auto_view text/html
alternative_order text/plain text/enriched text/html
set forward_quote
set forward_format = "Fwd: %s"
## h e a d e r s
ignore *
unignore from: to: subject: Cc:
hdr_order From: To: Cc: Date:
set user_agent
set envelope_from = yes
set sendmail = "msmtp"
set use_from = yes
set realname = "Jakob Krebs"
set reverse_name = yes
## What is SPAM? Baby don't annoy me ~ annoy me, no more!
spam "X-Spam-Status: Yes" "90+/SA"
spam "X-Spam-Flag: YES" "90+/SA"
spam "X-TUD-Spam-Status: Yes" "90+/SA"
## Keep me from sending mails w/o attachments
set abort_noattach = ask-yes
set attach_keyword = "\\<(anhängen|angehängt|anhang|anhänge|hängt an|anhängig|attached|attachments?|anbei)\\>"
set ispell = 'aspell -e -c'
# Mail editing:
set include # the next 3 set's are to
set edit_headers # go right to vim and edit through that composition
set autoedit # window, rather than mutt giving me 21 questions
set forward_quote
set forward_format = "Fwd: %s"
## Sidebar
source ~/.neomutt/sidebar.muttrc
bind index,pager \CO sidebar-open
bind index,pager \CN sidebar-next
bind index,pager \CP sidebar-prev
bind index,pager B sidebar-toggle-visible
mono bold bold
mono underline underline
mono indicator reverse
# sidebar
set mail_check_stats
set sidebar_visible # set to "no" to disable sidebar view at startup
color sidebar_new yellow default
# sidebar bindings
bind index J sidebar-prev # got to previous folder in sidebar
bind index K sidebar-next # got to next folder in sidebar
bind index <space> sidebar-open # open selected folder from sidebar
# Mail editing:
set include # the next 3 set's are to
set edit_headers # go right to vim and edit through that composition
set autoedit # window, rather than mutt giving me 21 questions
set forward_quote
set forward_format = "Fwd: %s"
color index_author red black ~D
color index magenta black ~T
color index_number blue default
color index_subject cyan default '.s'
color index_size green default
color normal default default
color body brightred default [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
color body brightblue default (https?|ftp)://[\-\.,/%~_:?&=\#a-zA-Z0-9]+
bind index,pager B sidebar-toggle-visible
bind editor <space> noop
bind index G last-entry
bind index d half-down
bind index u half-up
bind index D delete-message
bind index U undelete-message
bind index F search
source ~/.neomutt/gpg.rc
set pgp_use_gpg_agent = yes
## Set up S/MIME
set crypt_use_gpgme = yes
set crypt_autosmime = yes
set crypt_autosign = yes
# automatically encrypt when possible
set crypt_opportunistic_encrypt = yes
set crypt_replyencrypt = yes
set crypt_replysign = yes
set crypt_replysignencrypted = yes
# set default key and encrypt to self
set smime_default_key = 0x6B7F2490
set smime_self_encrypt = yes
alias Jannusch Jannusch Bigge <[email protected]>