aboutsummaryrefslogtreecommitdiff
path: root/.config/neomutt/neomuttrc
blob: cd071ef3d34eac00e5bc00774ecc0dff403769b1 (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
# name
set real_name = "Loek Le Blansch"
set from = "loek@pipeframe.xyz"

# e-mail server
set folder = "~/docs/mail/pipeframe/"
set spool_file = "+Inbox"
set record = "+Sent"
set trash = "+Trash"
set postponed = "+Drafts"

# imap credentials
set imap_user = "loek@mail.pipeframe.xyz"
set imap_pass = "$(pass srv/wipper/passwd/loek)"

# smtp credentials
set smtp_pass = "$imap_pass"
set smtp_url = "smtp://$imap_user@mail.pipeframe.xyz:587"
set ssl_force_tls = yes

# automatically refresh incoming mail
set mail_check = 60
unset wait_key
push "<shell-escape> systemctl --user start mbsync & <enter>"

# mailboxes
mailboxes +Inbox +Drafts +Junk +Sent +Trash +Archive

# open files
set mailcap_path = "$XDG_CONFIG_HOME/mailcap"

# keybinds (more vim-like than default)
macro index,pager a "<save-message>+Archive<enter>" "Archive Message" # archive
bind index,pager n search-next # next search match
bind index,pager N search-opposite # previous search match
bind generic,index g noop # clear immediate action of `g` (required for `gg`)
bind generic,index gg first-entry # goto top of index
bind generic,index G last-entry # goto bottom of index
bind index \Cu previous-page # page up
bind index \Cd next-page # page down
bind attach <return> view-mailcap # always use mailcap to view attachments

# miscellaneous options
set fast_reply = yes
set confirm_append = no
set delete = yes
set include = yes
set sort = threads
set header_cache = "$XDG_CACHE_HOME/neomutt/hcache"
set edit_headers
set auto_edit = yes
set mime_type_query_command = "xdg-mime query filetype"
unset prompt_after

# format strings
set status_format = "%D %> %P "
set folder_format = "%i"
set index_format = " %Z  %[%m月%d日]  %-15.15L  %s "
set browser_abbreviate_mailboxes = yes

# external programs
set editor = "$EDITOR"
# set pager = "less"
set sendmail = "/usr/bin/msmtp"

# colors
color indicator reverse default default # selection
color index none white default # all other mail
color index bold default default "~N|~O" # new/unopened mail
uncolor status
uncolor tree
uncolor search
color hdrdefault blue default
color quoted blue black
color signature blue black
color attachment brightblack default
color prompt brightmagenta black
color message brightred default
color error brightred black
color markers red black
color tilde brightmagenta black