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 <anirudh@oppiliappan.com>"
12 set folder=~/mail/personal
13 set record=+Sent
14 set inbox=+Inbox
15 set mta=smtps://smtp.migadu.com:465
16 shortcut \
17 sent +Sent \
18 inbox +Inbox \
19 drafts +Drafts \
20 trash +Trash \
21 archive +Archive \
22 spam +Junk \
23 rl "+Read Later"
24}
25
26set prompt='> '
27set colour-pager crt
28
29colour 256 sum-dotmark ft=bold,fg=13 dot
30colour 256 sum-header fg=007 older
31colour 256 sum-header bg=253,fg=white dot
32colour 256 sum-header fg=white
33colour 256 sum-thread bg=008 dot
34colour 256 sum-thread fg=cyan
35
36account personal
37set askattach
38set markanswered
39set autocollapse
40set reply-to-honour
41set editalong
42set history-gabby=all
43set history-file=~/.s-nailhist
44set autosort=date
45
46set pipe-text/html='w3m -T text/html -dump'
47set pipe-image/png='feh -'
48set pipe-image/jpg='feh -'
49set pipe-image/jpeg='feh -'
50set pipe-application/pdf='zathura -'
51
52define trash {
53 move "$@" +Trash
54}
55commandalias del call trash
56
57retain date from to cc subject
58set mime-counter-evidence=0xE
59
60define sync {
61 !mbsync -a
62 newmail
63}
64commandalias n call sync
65commandalias mv mimeview
66
67define signature {
68 vput ! sig cat ~/.signature
69 vput csop message-inject-tail trim-end $sig
70}
71
72set on-compose-leave=signature