aerc: Add mail type formatting

Mails get symbols in the flag column if they are sent by me, CC or BCC
me, or they are tagged as a 'list' (from a mailing list).

Added some additional info to status bar (current folder, recent and
unread counts), and extended the flag column slightly to accomodate more
flags.
This commit is contained in:
Marty Oehme 2025-09-23 20:17:46 +02:00
parent d92eaad036
commit 5705bf9693
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 11 additions and 6 deletions

View file

@ -8,7 +8,7 @@ dialog-position = bottom
styleset-name = simple
index-columns = flags>4,name<20%,subject,date>=
index-columns = flags>6,name<20%,subject,date>=
this-week-time-format = Mon 02
sidebar-width = 15
@ -22,8 +22,12 @@ column-flags = {{.Flags | join ""}} \
(case `^forwarded$` (.Style "f" "")) \
(case `^flagged$` (.Style "!" "highlight")) \
(case `^important$` (.Style "" "highlight")) \
(case `^list$` "") \
(default "") \
| join "" }}
| join "" }} \
{{if contains .AccountFrom.Address (.From | emails | join ", ")}}{{end}}\
{{if contains .AccountFrom.Address (.Cc | emails | join ", ")}}{{end}}\
{{if contains .AccountFrom.Address (.Bcc | emails | join ", ")}}{{end}}
column-subject = {{(.Style .ThreadPrefix "subdued")}}{{if .ThreadFolded}}{{printf (.Style "%d " "subdued") .ThreadCount}}{{end}}{{.Subject}}
@ -58,8 +62,9 @@ thread-prefix-lone = " "
thread-prefix-last-sibling = "╰"
[statusline]
column-left = [{{.Account}}] {{cwd}} {{.ContentInfo}}
column-right = {{.TrayInfo}} | {{dateFormat now "Mon Jan 2 15:04:05 2006"}}
column-left = {{.Account}}>{{compactDir .Folder}} {{.ContentInfo}}
column-center = {{.PendingKeys}} # RUE shows 'recent&unread/existing'
column-right = {{.RUE}} | {{.TrayInfo}} | {{cwd}} | {{dateFormat now "Mon Jan 2 15:04:05 2006"}}
[viewer]

View file

@ -150,8 +150,8 @@ a = :archive flat<Enter> # archive message
A = :unmark -a<Enter>:mark -T<Enter>:archive flat<Enter> # archive thread
M = :menu -d :move<Enter> # move mail
<C-y> = :copy-link <space>
<C-l> = :open-link <space>
<C-y> = :copy-link<space>
<C-u> = :open-link<space>
m = :compose<Enter>
f = :forward<Enter>