diff options
author | xengineering <me@xengineering.eu> | 2023-08-04 14:04:40 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-08-04 14:04:40 +0200 |
commit | 5e6056b70e43e9db47f2125a579a1494b45884b4 (patch) | |
tree | 9a52a5801b339b3e81d5bb58e9d3902a92fde81e | |
parent | b571d0e37d8edede2de6376a6c0e8b45f9fb2ed1 (diff) | |
download | dotfiles-5e6056b70e43e9db47f2125a579a1494b45884b4.tar dotfiles-5e6056b70e43e9db47f2125a579a1494b45884b4.tar.zst dotfiles-5e6056b70e43e9db47f2125a579a1494b45884b4.zip |
Fix aerc/aerc.conf for recent aerc revisions
-rw-r--r-- | aerc/aerc.conf | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/aerc/aerc.conf b/aerc/aerc.conf index 66959d0..bc72c01 100644 --- a/aerc/aerc.conf +++ b/aerc/aerc.conf @@ -7,8 +7,12 @@ # with mutt's printf-like syntax. # # Default: %D %-17.17n %Z %s -index-format=%D %-17.17n %Z %s -#index-format=%-20.20D %-17.17n %Z %s + +index-columns = date<*,name<17,flags>4,subject<* +column-name = {{index (.From | names) 0}} +column-flags = {{.Flags | join ""}} +column-subject = {{.ThreadPrefix}}{{.Subject}} +column-date = {{.DateAutoFormat .Date.Local}} # # See time.Time#Format at https://godoc.org/time#Time.Format @@ -73,10 +77,8 @@ new-message-bell=true # Default: ` pinned-tab-marker='`' -# Describes the format string to use for the directory list -# -# Default: %n %>r -dirlist-format=%n %>r +dirlist-left = {{.Folder}} +#dirlist-right = {{if .Unread}}{{humanReadable .Unread}}/{{end}}{{if .Exists}}{humanReadable .Exists}}{{end}} # List of space-separated criteria to sort the messages by, see *sort* # command in *aerc*(1) for reference. Prefixing a criterion with "-r " @@ -202,21 +204,15 @@ address-book-cmd="khard email --remove-first-line --parsable '%s'" # 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. -subject,~^\[PATCH=awk -f /usr/share/aerc/filters/hldiff -text/html=/usr/share/aerc/filters/html -text/*=awk -f /usr/share/aerc/filters/plaintext +subject,~^\[PATCH=awk -f /usr/libexec/aerc/filters/hldiff +text/html=/usr/libexec/aerc/filters/html +text/*=awk -f /usr/libexec/aerc/filters/plaintext #image/*=catimg -w $(tput cols) - [triggers] # # Triggers specify commands to execute when certain events occur. # -# Example: -# new-email=exec notify-send "New email from %n" "%s" - -# -# Executed when a new email arrives in the selected folder -new-email=exec notify-send "🖂 %n" "%s" [templates] # Templates are used to populate email bodies automatically. @@ -237,3 +233,8 @@ quoted-reply=quoted_reply # # default: forward_as_body forwards=forward_as_body + +[hooks] + +mail-received = notify-send "🖂 $AERC_FROM_NAME" "$AERC_SUBJECT" + |