summaryrefslogtreecommitdiff
path: root/.config/neomutt/neomuttrc
blob: 1cf61962b0d36505e999b4040f63b30f96c3c374 (plain)
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
# vim: set ft=muttrc:
set editor="/usr/bin/nvim"

set sendmail="/usr/bin/msmtp"

# keybindings
source "~/.config/neomutt/mappings"

# color
source "~/.config/neomutt/color"

set send_charset="utf-8"

# connection information
# This is should be config specifc not global
# Keeping for reference
# set ssl_force_tls=yes
# unset ssl_starttls

# status bar, date format, finding stuff etc.
set status_chars = " *%A"
set status_format = "[ Folder: %f ] [%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]%>─%?p?( %p postponed )?"
set date_format = "%d.%m.%Y %H:%M"
set sort = threads
set sort_aux = reverse-last-date-received
set uncollapse_jump
set sort_re
set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*"
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
set send_charset = "utf-8:iso-8859-1:us-ascii"
set charset = "utf-8"
set arrow_cursor = "no" # Change `color indicator` depending

# mailcap
set mailcap_path=~/.config/neomutt/mailcap

# automatically open html in mime
auto_view text/html

# sidebar
set sidebar_visible
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
set mail_check_stats
set sidebar_width = 25                  # Plenty of space
set sidebar_divider_char = '│'          # Pretty line-drawing character

# connection information
# This is should be config specifc not global
# Keeping for reference
# set header_cache = "$HOME/.config/neomutt/cache/headers/"
# set message_cachedir = "$HOME/.config/neomutt/cache/bodies/"
# set certificate_file = "$HOME/.config/neomutt/certificates/"
# set tmpdir = "$HOME/.config/neomutt/tmp/"

# Use GPGME
set crypt_use_gpgme = yes
# Sign replies to signed emails
set crypt_replysign = yes
# Encrypt replies to encrypted emails
set crypt_replyencrypt = yes
# Encrypt and sign replies to encrypted and signed email
set crypt_replysignencrypted = yes
# Attempt to verify signatures automatically
set crypt_verify_sig = yes
# Use my key for signing and encrypting
set pgp_sign_as = 0xB0EB240706B442A7
macro   compose \CP     "Fgpg --clearsign\ny"
macro   compose \CS     "Fgpg --clearsign\ny^T^Uapplication/pgp; format=text; x-action=sign\n"

# Needs urlscan to be installed (pip install urlscan --user)
macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"

macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"

set alias_file="$HOME/.config/neomutt/aliases"
source "$HOME/.config/neomutt/aliases"

# Needs NerdFonts to be installed
set index_format="     %zs %zc %zt | %-28.28L  %?X?& ? %.46s %?M10?(%1M)&? %> %{!%a %d %h %H:%M}      "
set pager_format="\n  %n %T %s%*  %{!%d %b · %H:%M} %?X? %X?%P    \n \n"
set status_format = "  %f %?r? %m ?%?n? %n ?%?d? %d ?%?t? %t ?%?F? %F ?%?p? %p?  \n \n"
set vfolder_format = "%N %?n?%3n&   ?  %8m  · %f"
set attach_format = "%u%D  %T%-75.75d %?T?%&   ? %5s · %m/%M"

color status white default
# powerline status bar hack
color status color4 color0 '([a-zA-Z0-9])(\s)'
color status color4 color0 '(\s)([a-zA-Z0-9])'
color status color4 color0 '( )'
color status color4 color0 '(\S)'
color status color0 default '(|)'
color status green color0 ''
color status white color0 ''
color status yellow color0 ''
color status red color0 ''
color tree   color15 color0

# 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" \

## ACCOUNT 1
source "~/.config/neomutt/gmail_main"
folder-hook $folder 'source ~/.config/neomutt/gmail_main'