From 7c3ce816c8a6671116334dd580336ae58335e2ba Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Sat, 19 Feb 2022 22:11:06 +0100 Subject: 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 --- filters/plaintext | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100755 filters/plaintext (limited to 'filters') 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 - } -} -- cgit v1.2.3