~yerinalexey/dotfiles

ref: 3bb7991839c26fe59674184fc6822f7477751f93 dotfiles/neomutt/neomuttrc -rw-r--r-- 2.7 KiB
3bb79918Alexey Yerin river: decrease wob height 6 months ago
                                                                                
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
# Account info
## Realname <from@something.com>
set realname = "Alexey Yerin"
set from = "yyp@disroot.org"

## Mail server configuration
set folder = "~/mail"
set smtp_url = "smtps://yyp@disroot.org@disroot.org:465"
set smtp_pass = `pass show Mail/Disroot`

## Mailboxes
set spoolfile = "=Inbox"
set trash = "=Trash"
set record = "=Archive/"

named-mailboxes "📬 Inbox" "=Inbox"
named-mailboxes "📨 Sent" "=Sent"
named-mailboxes "📩 Archive" "=Archive"
named-mailboxes "♻  Trash" "=Trash"

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

# Edit headers by default
set edit_headers

# Disable signature
unset signature

# UI
## Statusline
set status_format = "-%r- %D [Total:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?l? Size:%l?]-%>-(%P)---"

## Group by threads
set sort=threads
set sort_aux=last-date-received

## Entry format
set index_format = "%4C %S %-20.20L: %s"

## Do not show the help bar at the top
unset help

# Colors
color normal     default      default
color indicator  brightwhite  color237
color status     brightyellow default
color signature  color246     default
color message    color244     default
color attachment color32      default
color error      brightred    default
color progress   black        green

## Quotes
color body color240 default "^>.*"

## Git diffs
color body brightwhite default "^diff \-.*"
color body cyan        default "^@@ .*"
color body brightred   default "^[\-]{3} .*"
color body brightgreen default "^[\+]{3} .*"
color body green       default "^[\+][^\+]+.*"
color body red         default "^\-[^\-]+.*"

# Sidebar
set sidebar_format = " %D%* %S%?N? [%N]?"
set mail_check_stats

bind index,pager S sidebar-toggle-visible
bind index,pager K sidebar-prev
bind index,pager J sidebar-next
bind index,pager O sidebar-open


# Abort prompts using ^[
set abort_key = "<Esc>"

# Confirmations
set confirmappend = no
set confirmcreate = no
set postpone = ask-no

# Key bindings:
## Limit (basically filter)
bind index \\ limit

## Free some stuff
bind index,pager g noop
bind index h noop

## Index bindings
bind index j next-entry
bind index k previous-entry
bind index l display-message
bind index gg first-entry
bind index G last-entry

## Pager bindings
bind pager gg top
bind pager G bottom
bind pager k previous-line
bind pager j next-line
bind pager n next-entry
bind pager N previous-entry
bind pager h exit

## Reply to all
bind index,pager r group-reply

## Attachment view bindings
bind attach h exit
bind attach l view-attach

# Custom commands
set pipe_decode
unset wait_key

## Move message to archive
macro index,pager a <save-message>=Archive<enter>

## Copy links
macro pager ,l <pipe-message>copy-link<enter>

## Update mail
macro index ,u '<enter-command>echo "Updating mail"<enter><enter-command>echo "`sync-mail -q`"<enter>'