summaryrefslogtreecommitdiff
path: root/tw/home/files/aerc/aerc.conf
blob: 01c2527d016b21eda2201c34114263f1ee23da2d (about) (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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# aerc main configuration

[general]
#default-save-path=
# Allow world-readable accounts.conf. This is fine as I don't store any
# passwords there, only "pass" commands.
unsafe-accounts-conf=true

[ui]
# Describes the format for each row in a mailbox view. This field is compatible
# with mutt's printf-like syntax.
index-format=%4C %Z %D %-17.17F %s

# See time.Time#Format at https://godoc.org/time#Time.Format
timestamp-format=Mon _2 Jan 2006 15:04

# List of space-separated criteria to sort the messages by, see *sort*
# command in *aerc*(1) for reference. Prefixing a criterion with "-r "
# reverses that criterion.
sort=-r date

threading-enabled=true

next-message-on-delete=false

sidebar-width=24

styleset-name=catppuccin
pinned-tab-marker='📌'
# Use box-drawing characters for vertical and horizontal borders.
border-char-vertical=│
border-char-horizontal=─
# Use UTF-8 symbols to indicate PGP status of messages
icon-unencrypted=
icon-encrypted=🔒
icon-signed=✔
icon-signed-encrypted=✔🔒
icon-unknown=✘
icon-invalid=⚠

# Activates fuzzy search in commands and their arguments: the typed string is
#   searched in the command or option in any position, and need not be
#   consecutive characters in the command or option.
#fuzzy-complete=false

[statusline]
render-format=[%a %p] %S %>%T

# Defines the mode for displaying the status elements.
# Options: text, icon
display-mode=icon

[viewer]
# Specifies the pager to use when displaying emails. Note that some filters
# may add ANSI codes to add color to rendered emails, so you may want to use a
# pager which supports ANSI codes.
pager='env LESSKEYIN=/dev/null less -iRM'

# If an email offers several versions (multipart), you can configure which
# mimetype to prefer. For example, this can be used to prefer plaintext over
# html emails.
alternatives=text/plain,text/html

# Layout of headers when viewing a message. To display multiple headers in the
# same row, separate them with a pipe, e.g. "From|To". Rows will be hidden if
# none of their specified headers are present in the message.
#header-layout=From|To,Cc|Bcc,Date,Subject

[compose]
# Default header fields to display when composing a message. To display
# multiple headers in the same row, separate them with a pipe, e.g. "To|From".
#header-layout=To|From,Subject

# Specifies the command to be used to tab-complete email addresses. Any
# occurrence of "%s" in the address-book-cmd will be replaced with what the
# user has typed so far.
#
# The command must output the completions to standard output, one completion
# per line. Each line must be tab-delimited, with an email address occurring as
# the first field. Only the email address field is required. The second field,
# if present, will be treated as the contact name. Additional fields are
# ignored.
#
# This parameter can also be set per account in accounts.conf.
address-book-cmd=khard email --parsable %s

# Allow to address yourself when replying
reply-to-self=false

# Warn before sending an email that matches the specified regexp but does not
# have any attachments. Leave empty to disable this feature.
# Uses Go's regexp syntax, documented at https://golang.org/s/re2syntax. The
# "(?im)" flags are set by default (case-insensitive and multi-line).
no-attachment-warning=^[^>]*(attach|Anhang|angehängt)

[filters]
# Filters allow you to pipe an email body through a shell command to render
# certain emails differently, e.g. highlighting them with ANSI escape codes.
#
# The commands are invoked with sh -c. The following folders are appended to
# the system $PATH to allow referencing filters from their name only:
#
#   ${XDG_CONFIG_HOME:-~/.config}/aerc/filters
#   ${XDG_DATA_HOME:-~/.local/share}/aerc/filters
#   $PREFIX/share/aerc/filters
#   /usr/share/aerc/filters
#
# The following variables are defined in the filter command environment:
#
#   AERC_MIME_TYPE      the part MIME type/subtype
#   AERC_FILENAME       the attachment filename (if any)
#
# The first filter which matches the email's mimetype will be used, so order
# them from most to least specific.
#
# You can also match on non-mimetypes, by prefixing with the header to match
# against (non-case-sensitive) and a comma, e.g. subject,text will match a
# subject which contains "text". Use header,~regex to match against a regex.
text/plain=colorize.ansi
text/calendar=calendar
message/delivery-status=colorize.ansi
message/rfc822=colorize.ansi
#text/html=pandoc -f html -t plain | colorize
#text/html=html | colorize
text/html=lynx -display_charset=UTF-8 -force_html -dump -stdin
#text/*=bat -fP --file-name="$AERC_FILENAME"
#application/x-sh=bat -fP -l sh
#image/*=catimg -w $(tput cols) -
image/*=imv -
#subject,~Git(hub|lab)=lolcat -f
#from,thatguywhodoesnothardwraphismessages=fmt -w 72 | colorize

[openers]
# Openers allow you to specify the command to use for the :open action on a
# per-MIME-type basis.
#
# {} is expanded as the temporary filename to be opened. If it is not
# encountered in the command, the temporary filename will be appened to the end
# of the command.
#
# Examples:
# text/html=surf -dfgms
# text/plain=gvim {} +125
# message/rfc822=thunderbird
application/pdf=zathura

[triggers]
# Executed when a new email arrives in the selected folder
new-email=exec dunstify -a aerc -i mail-unread "New mail from %n" "%s"