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/personal
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
24account "homescreen" {
25 localopts yes
26 set from="Anirudh Oppiliappan <icy@homescreens.org>"
27 set netrc-pipe='gpg2 -qd ~/.netrc-hs.gpg'
28 set folder=~/mail/homescreen
29 set record=+Sent
30 set inbox=+Inbox
31 set mta=smtps://smtp.migadu.com
32 shortcut sent +Sent \
33 inbox +Inbox \
34 drafts +Drafts \
35 trash +Trash \
36 archive +Archive
37}
38
39set prompt='> '
40set colour-pager crt
41
42colour 256 sum-dotmark ft=bold,fg=13 dot
43colour 256 sum-header fg=007 older
44colour 256 sum-header bg=008 dot
45colour 256 sum-header fg=white
46colour 256 sum-thread bg=008 dot
47colour 256 sum-thread fg=cyan
48
49account personal
50set askattach
51set markanswered
52set autocollapse
53set reply-to-honour
54set editalong
55set history-gabby=all
56set history-file=~/.s-nailhist
57set autosort=date
58
59set pipe-text/html='w3m -T text/html -dump'
60set pipe-image/png='feh -'
61set pipe-image/jpg='feh -'
62set pipe-application/pdf='zathura -'
63
64define trash {
65 move "$@" +Trash
66}
67commandalias del call trash
68
69retain date from to cc subject
70set mime-counter-evidence=0xE
71
72define sync {
73 !mbsync -a
74 newmail
75}
76commandalias n call sync
77commandalias mv mimeview
78
79define signature {
80 vput ! sig cat ~/.signature
81 vput csop message-inject-tail trim-end $sig
82}
83
84set on-compose-leave=signature