Debian Codegraph @

filters/plaintext

raw
1 #!/usr/bin/awk -f
2
3 BEGIN {
4 dim = "\033[2m"
5 cyan = "\033[36m"
6 reset = "\033[0m"
7 }
8 {
9 # Strip carriage returns from line
10 gsub(/\r/, "", $0)
11
12 if ($0 ~ /^On .*, .* wrote:/ || $0 ~ /^>+/) {
13 print dim cyan $0 reset
14 } else {
15 print $0
16 }
17 }