From bc79a9f65ba9f9fdb308b4a8eb75d0ca4e692463 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Thu, 31 Aug 2023 18:56:05 -0500 Subject: Add aerc filters --- .config/aerc/filters/plaintext | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 .config/aerc/filters/plaintext (limited to '.config/aerc/filters/plaintext') diff --git a/.config/aerc/filters/plaintext b/.config/aerc/filters/plaintext new file mode 100755 index 0000000..aa22eb7 --- /dev/null +++ b/.config/aerc/filters/plaintext @@ -0,0 +1,17 @@ +#!/usr/bin/awk -f + +BEGIN { + dim = "\033[2m" + cyan = "\033[36m" + reset = "\033[0m" +} +{ + # Strip carriage returns from line + gsub(/\r/, "", $0) + + if ($0 ~ /^On .*, .* wrote:/ || $0 ~ /^>+/) { + print dim cyan $0 reset + } else { + print $0 + } +} -- cgit v1.2.3