diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index 6e83cd57..8f3aebc6 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -125,7 +125,7 @@ column-name={{.Style (index (.From | names) 0) "name"}} column-subject={{.Style (printf "%s%s" .ThreadPrefix .Subject) "subject"}} column-date={{.Style (.DateAutoFormat .Date.Local) "date"}} # column-labels = ({{.Style (.Labels | join " ") "labels"}}) -column-labels = {{.StyleMap (map .Labels (case replace `^Archive/` "A/")) (exclude `Inbox`) (case `^A/.*` "labels") (default "labels") | join ","}} +column-labels = {{.StyleMap (.Labels | join ";" | replace `\bArchive(/|$|\;)` `A$1` | split ";" ) (exclude `Inbox`) (case `^A/.*` "labels") (default "labels") | join ","}} # # String separator inserted between columns. When the column width specifier is