~dricottone/mail-filters

14633c5193c7cbc14a805c5b65ec0a3a1e8afd1a — Dominic Ricottone 4 years ago e23b0ad
AO3 mail can include multiple updates, so change the footer pattern
1 files changed, 2 insertions(+), 2 deletions(-)

M src/ao3.awk
M src/ao3.awk => src/ao3.awk +2 -2
@@ 14,8 14,8 @@ BEGIN {
  comma_replacement=reset ", " highlight;
}
{
  # stop processing at end of mail, marked by dashed line
  if ($0 ~ /^-+\s*/) exit 0;
  # stop processing at end of mail
  if ($0 ~ /^You're receiving this email/) exit 0;

  if ($0 ~ /\([1-9][0-9]* words\)/) {
    matched=match($0, /\([1-9][0-9]* words\)/);