From 48f25eee7a4723c3bf4512f1b1ff47a91bc28c37 Mon Sep 17 00:00:00 2001 From: xdavidwu Date: Thu, 27 Apr 2023 21:23:40 +0800 Subject: [PATCH] aerc: migrate config --- .config/aerc/accounts.conf | 2 -- .config/aerc/aerc.conf | 15 ++++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.config/aerc/accounts.conf b/.config/aerc/accounts.conf index 3cb0644..0ab4fcf 100644 --- a/.config/aerc/accounts.conf +++ b/.config/aerc/accounts.conf @@ -4,7 +4,6 @@ source-cred-cmd = hiq -dFpassword host=gmail.com proto=email outgoing = smtp+plain://xdavidwuph%40gmail.com@smtp.gmail.com:587 outgoing-cred-cmd = hiq -dFpassword host=gmail.com proto=email default = INBOX -smtp-starttls = yes from = Pinghao Wu copy-to = Sent @@ -13,7 +12,6 @@ source = imaps://wuph0612@imap.cs.nctu.edu.tw source-cred-cmd = hiq -dFpassword host=cs.nctu.edu.tw outgoing = smtps://wuph0612@smtp.cs.nctu.edu.tw outgoing-cred-cmd = hiq -dFpassword host=cs.nctu.edu.tw -smtp-starttls = yes default = INBOX from = 吳秉澔 copy-to = Sent diff --git a/.config/aerc/aerc.conf b/.config/aerc/aerc.conf index f82a375..4aa5d0b 100644 --- a/.config/aerc/aerc.conf +++ b/.config/aerc/aerc.conf @@ -7,7 +7,11 @@ # with mutt's printf-like syntax. # # Default: %D %-17.17n %Z %s -index-format=%D %-17.17n %Z %s +index-columns = date<20,name<17,flags>4,subject<* +column-date = {{.DateAutoFormat .Date.Local}} +column-name = {{index (.From | names) 0}} +column-flags = {{.Flags | join ""}} +column-subject = {{.ThreadPrefix}}{{.Subject}} # # See time.Time#Format at https://godoc.org/time#Time.Format @@ -51,7 +55,8 @@ pinned-tab-marker='`' # Describes the format string to use for the directory list # # Default: %n %>r -dirlist-format=%N %>r +dirlist-left = {{.Folder | compactDir}} +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 " @@ -152,9 +157,9 @@ address-book-cmd= # 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] -- 2.45.2