diff options
Diffstat (limited to 'config/mutt/strip.sh')
| -rwxr-xr-x | config/mutt/strip.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/mutt/strip.sh b/config/mutt/strip.sh new file mode 100755 index 0000000..72c8324 --- /dev/null +++ b/config/mutt/strip.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +sed '/\[--.*--\]/d' | + sed '/\[\(--[^]]*--\|cid:[^]]*\)\]/d' | + sed '/\[\(twitter\|instagram\|linkedin\|facebook\)\]/d' | + sed '/[^[:space:]]/,$!d' | + awk 'BEGIN{blank=0} /^[[:space:]]*$/{blank++; if(blank<=2) print; next} {blank=0; print}' |
