diff options
author | Timo Wilken | 2023-06-30 11:12:55 +0200 |
---|---|---|
committer | Timo Wilken | 2023-06-30 11:12:55 +0200 |
commit | 80c92e8ecd4d89c3eb4cb99f71af704efff4c175 (patch) | |
tree | fc2e03cb441a755edf361c05973c447c536acb03 /tw/home/files/aerc/aerc.conf | |
parent | d3585bd5dacb1e7a2cc9fdd9d760568637570a23 (diff) |
Modernise aerc config for 0.15.0+
Some config settings were deprecated and/or changed.
Diffstat (limited to 'tw/home/files/aerc/aerc.conf')
-rw-r--r-- | tw/home/files/aerc/aerc.conf | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/tw/home/files/aerc/aerc.conf b/tw/home/files/aerc/aerc.conf index b2d5caed..7473bc8b 100644 --- a/tw/home/files/aerc/aerc.conf +++ b/tw/home/files/aerc/aerc.conf @@ -9,7 +9,12 @@ 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 +index-columns=num>4,flags>4,date<21,peers<17,subject<* +column-num={{.Number}} +column-flags={{.Flags | join ""}} +column-date={{.DateAutoFormat .Date.Local}} +column-peers={{.Peer | names | join ", "}} +column-subject={{.ThreadPrefix}}{{.Subject}} # See time.Time#Format at https://godoc.org/time#Time.Format timestamp-format=Mon _2 Jan 2006 15:04 @@ -44,7 +49,10 @@ icon-invalid=⚠ #fuzzy-complete=false [statusline] -render-format=[%a %p] %S %>%T +status-columns=left<*,centre>=,right>* +column-left=[{{.Account}}] {{.StatusInfo}} +column-centre={{.PendingKeys}} +column-right={{.ContentInfo}} {{.TrayInfo}} # Defines the mode for displaying the status elements. # Options: text, icon @@ -144,6 +152,6 @@ text/html=lynx -display_charset=UTF-8 -force_html -dump -stdin application/pdf=zathura image/*=imv -[triggers] +[hooks] # Executed when a new email arrives in the selected folder -new-email=exec dunstify -a aerc -i mail-unread "New mail from %n" "%s" +new-email=dunstify -a aerc -i mail-unread "New mail from $AERC_FROM_NAME" "$AERC_SUBJECT" |