File: plaintext

package info (click to toggle)
aerc 0.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,152 kB
  • sloc: ansic: 1,148; python: 1,000; sh: 553; awk: 330; makefile: 23
file content (17 lines) | stat: -rwxr-xr-x 242 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/awk -f

BEGIN {
	dim = "\033[2m"
	cyan = "\033[36m"
	reset = "\033[0m"
}
{
	# Strip carriage returns from line
	gsub(/\r/, "", $0)

	if ($0 ~ /^On .*, .* wrote:/ || $0 ~ /^>+/) {
		print dim cyan $0 reset
	} else {
		print $0
	}
}