summaryrefslogtreecommitdiff
path: root/.config/aerc/filters/plaintext
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2023-08-31 18:56:05 -0500
committerMichael Hunteman <michael@huntm.net>2023-08-31 18:56:22 -0500
commitbc79a9f65ba9f9fdb308b4a8eb75d0ca4e692463 (patch)
treeb73f2c388c73ef5f3f5c62ed48f4748744b6de11 /.config/aerc/filters/plaintext
parenta35c727df4d1c3bfbb9b8b7908ed202319e4d62a (diff)
Add aerc filters
Diffstat (limited to '.config/aerc/filters/plaintext')
-rwxr-xr-x.config/aerc/filters/plaintext17
1 files changed, 17 insertions, 0 deletions
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
+ }
+}