aboutsummaryrefslogtreecommitdiff
path: root/.config/neomutt/neomuttrc
blob: bd1957f6a0c4288c893dfd1ed38cea7b7f9b05cd (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
# Unbind keys
bind index,pager a noop
bind index,pager d noop
bind index,pager s noop
bind index,pager t noop
bind index,pager \\ noop

# "Global" keys
bind attach,index,pager \CD next-page
bind attach,index,pager \CU previous-page
bind attach,index g first-entry
bind attach,index G last-entry
bind index v tag-entry
bind index,pager R group-reply

macro index,pager t "<modify-labels>"
macro index,pager \\ "<vfolder-from-query>"

# Sidebar
set sidebar_visible=yes
set sidebar_width=10

bind index J sidebar-next
bind index K sidebar-prev
bind index <space> sidebar-open

# Email addresses in use
alternates -group personal p.spek@tyil.nl
alternates -group personal p.spek@tyil.work
alternates -group personal tyil@freedom.nl
alternates -group personal tyil@national.shitposting.agency
alternates -group personal tyil@scriptkitties.church

# Inbox
set mbox_type=Maildir
set folder="~/mail"
set spoolfile=+/
set sort=threads
set index_format="%-60.60s %Z %[%Y-%m-%d %H:%M] %-15.15L %g"

set virtual_spoolfile=yes
virtual-mailboxes \
	"Inbox" "notmuch://?query=not tag:archive and not tag:trash"\
	"Archive" "notmuch://?query=tag:archive and not tag:sent"\
	"Sent" "notmuch://?query=tag:sent"\
	"Trash" "notmuch://?query=tag:trash and not tag:spam"

macro index a "<modify-labels>+archive -unread -inbox<enter>"
macro index d "<modify-labels>+trash -unread -inbox<enter>"
macro index s "<modify-labels>+trash +spam -unread -inbox<enter>"
macro index <F5> "<shell-escape> localmail fetch && notmuch new<enter>"
macro index <F6> "<shell-escape> localmail send<enter>"

# Pager
macro pager a "<modify-labels>+archive -unread -inbox<enter><next-entry>"
macro pager d "<modify-labels>+trash -unread -inbox<enter><next-entry>"
macro pager s "<modify-labels>+trash +spam -unread -inbox<enter><next-entry>"

bind pager G bottom
bind pager g top
bind pager j next-line
bind pager k previous-line

# Composing
set edit_headers=yes
set signature="~/documents/email-signature.txt"
set send_charset="utf-8"

set from="p.spek@tyil.nl"
set reverse_name=yes

set crypt_autosign=yes
set pgp_default_key=0x7A6AC285E2D98827
set pgp_self_encrypt=yes
set crypt_opportunistic_encrypt = yes

# Sending mail
set sendmail="/home/tyil/.local/bin/smtp-capture"
set copy=no
set record=""

# PGP
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/libexec/neomutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/libexec/neomutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --with-fingerprint --with-fingerprint --list-secret-keys %r"
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
set pgp_check_gpg_decrypt_status_fd

# Apply custom theme for messages
color hdrdefault white   default
color quoted     green   default
color quoted1    cyan    default
color signature  white   default

# Apply custom theme for index
color index default default '.*' # Cleanse all defaults
color index white   default "~R" # read messages
color index default default "~U" # unread messages
color index yellow  default "~T" # tagged messages
color index blue    default "~P" # messages sent by me