summary refs log tree commit diff
path: root/.config/aerc/aerc.conf
blob: 0b5554396d2a9a5ce5d848afd3a7f18aa586df8c (plain) (blame)
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
# vim: ft=conf

[ui]
dirlist-left={{if eq .Folder "INBOX"}}󰶊 {{end}}{{if eq .Folder "Trash"}}󰩺 {{end}}{{if eq .Folder "Archive"}}󰀼 {{end}}{{if eq .Folder "Spam?"}}󰨰 {{end}}{{if eq .Folder "Sent Items"}}󰒊 {{end}}{{if eq .Folder "Drafts"}}󰤌 {{end}}{{.Folder}}
dirlist-tree=true

next-message-on-delete=true
border-char-vertical="│"
border-char-horizontal="─"
styleset-name=r

[ui:folder~^(Drafts|Sent Items)$]
index-columns = flags:4,to<20%,subject,date>=
column-to = {{index (.To | names) 0}}

[viewer]
# Default: less -R
# pager=page
# pager=less -g -i -M -s -S -w -X
pager=less -c -F -i -R -s -~ --mouse
# pager=bat --style=plain --color=always --language=email --wrap=character

always-show-mime=true

[compose]
address-book-cmd=sh -c 'grep -i --color=never %s $HOME/mail/addressbook'
file-picker-cmd=porta filechooser

[filters]
#subject,~Git(hub|lab)=lolcat -f
#from,thatguywhodoesnothardwraphismessages=fmt -w 72 | colorize
X-GitHub-Recipient,robertgzr=github-review-fix | colorize

# application/pdf=pdf
# image/*=vv
# text/*=bat -fP --file-name="$AERC_FILENAME"
application/x-sh=bat -fP -l sh

# keep defaults around
text/html=html | colorize
text/plain=wrap | colorize
text/calendar=calendar
message/delivery-status=colorize
message/rfc822=colorize

[hooks]
mail-received=notify-send -i /usr/share/icons/mdi/scalable/email-fast-outline.svg -a aerc "[$AERC_ACCOUNT/$AERC_FOLDER] new mail from $AERC_FROM_NAME" "$AERC_SUBJECT"