home/.mailrc (view raw)
1set v15-compat
2set netrc-lookup
3set netrc-pipe='gpg2 -qd ~/.netrc.gpg'
4set sendcharsets=utf-8,iso-8859-1
5set reply-in-same-charset
6set fullnames
7set followup-to followup-to-honour=ask-yes
8
9account "personal" {
10 localopts yes
11 set from="Anirudh Oppiliappan <x@icyphox.sh>"
12 set folder=~/mail
13 set record=+Sent
14 set inbox=+Inbox
15 set mta=smtps://smtp.migadu.com
16 shortcut fwc "+Free Writers Club" \
17 sent +Sent \
18 inbox +Inbox \
19 drafts +Drafts \
20 trash +Trash \
21 archive +Archive
22}
23
24set prompt='> '
25set colour-pager crt
26
27colour 256 sum-dotmark ft=bold,fg=13 dot
28colour 256 sum-header fg=007 older
29colour 256 sum-header bg=008 dot
30colour 256 sum-header fg=white
31colour 256 sum-thread bg=008 dot
32colour 256 sum-thread fg=cyan
33
34account personal
35set askattach
36set markanswered
37set autocollapse
38set reply-to-honour
39set editalong
40set history-gabby=all
41set history-file=~/.s-nailhist
42set autosort=date
43
44set pipe-text/html='w3m -T text/html -dump'
45set pipe-image/png='feh -'
46set pipe-image/jpg='feh -'
47
48define trash {
49 move "$@" +Trash
50}
51commandalias del call trash
52
53retain date from to cc subject
54set mime-counter-evidence=0xE
55
56define sync {
57 !mbsync -a
58 newmail
59}
60commandalias n call sync
61commandalias mv mimeview
62
63define signature {
64 vput ! sig cat ~/.signature
65 vput csop message-inject-tail trim-end $sig
66}
67
68set on-compose-leave=signature