about summary refs log tree commit diff stats
path: root/filters/plaintext
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-06-27 09:32:46 -0400
committerDrew DeVault <sir@cmpwn.com>2019-06-27 09:32:46 -0400
commit177651bddab145c8a56cdfeb0d57b5fd95a6d0e2 (patch)
tree75681e3ab5c71b8cdb06f22247dfcd4a547393dc /filters/plaintext
parent59df06fe28ddde3607cb3080636e65d48b762baf (diff)
downloadaerc-177651bddab145c8a56cdfeb0d57b5fd95a6d0e2.tar.gz
Move contrib -> filters
Diffstat (limited to 'filters/plaintext')
-rwxr-xr-xfilters/plaintext13
1 files changed, 13 insertions, 0 deletions
diff --git a/filters/plaintext b/filters/plaintext
new file mode 100755
index 0000000..71e33f7
--- /dev/null
+++ b/filters/plaintext
@@ -0,0 +1,13 @@
+# vim: set ft=awk :
+BEGIN {
+	dim = "\x1B[2m"
+	cyan = "\x1B[36m"
+	reset = "\x1B[0m"
+}
+{
+	if ($0 ~ /^On .*, .* wrote:/ || $0 ~ /^>+/) {
+		print dim cyan $0 reset
+	} else {
+		print $0
+	}
+}