~sircmpwn/aerc

ref: 0.3.0 aerc/filters/plaintext -rwxr-xr-x 243 bytes
eff8208cDrew DeVault Update version to 0.3.0 1 year, 6 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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
	}
}