aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/aerc.conf1
-rwxr-xr-xfilters/plaintext16
2 files changed, 1 insertions, 16 deletions
diff --git a/config/aerc.conf b/config/aerc.conf
index 2c928f69..66b08ad9 100644
--- a/config/aerc.conf
+++ b/config/aerc.conf
@@ -222,6 +222,7 @@ reply-to-self=true
# 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=colordiff
+text/plain=sed 's/^>\+.*/\x1b[2;36m&\x1b[0m/'
#text/html=pandoc -f html -t plain
#image/*=catimg -w $(tput cols) -
diff --git a/filters/plaintext b/filters/plaintext
deleted file mode 100755
index cfaa170e..00000000
--- a/filters/plaintext
+++ /dev/null
@@ -1,16 +0,0 @@
-# vim: set ft=awk :
-BEGIN {
- dim = "\x1B[2m"
- cyan = "\x1B[36m"
- reset = "\x1B[0m"
-}
-{
- # Strip carriage returns from line
- gsub(/\r/, "", $0)
-
- if ($0 ~ /^On .*, .* wrote:/ || $0 ~ /^>+/) {
- print dim cyan $0 reset
- } else {
- print $0
- }
-}