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 --- config/aerc.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'config/aerc.conf') diff --git a/config/aerc.conf b/config/aerc.conf index 2c928f6..66b08ad 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) - -- cgit v1.2.3