summaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-02-19 22:11:06 +0100
committerRobin Jarry <robin@jarry.cc>2022-02-19 22:12:16 +0100
commit7c3ce816c8a6671116334dd580336ae58335e2ba (patch)
tree2834fe922856fa50d9e71f3e32a4e4160dc7d620 /filters
parent5abc3cab96b7ab4f7ea533cd40ffd93c20f37a62 (diff)
downloadaerc-7c3ce816c8a6671116334dd580336ae58335e2ba.zip
config: set a default filter for text/plain
Avoid the following issue when running aerc with the default configuration: No filter configured for this mimetype ('text/plain') Use a very basic sed command to replace the default plaintext filter. Fixes: bb0f1801402e ("config: do not hardcode sharedir") Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'filters')
-rwxr-xr-xfilters/plaintext16
1 files changed, 0 insertions, 16 deletions
diff --git a/filters/plaintext b/filters/plaintext
deleted file mode 100755
index cfaa170..0000000
--- 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
- }
-}