diff options
Diffstat (limited to '.config/aerc/filters/plaintext')
-rwxr-xr-x | .config/aerc/filters/plaintext | 17 |
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 + } +} |