Files
kubernetes/xactmon/rules.toml
Dustin C. Hatch 37890e32a1 xactmon/rules: Fix Chase regex for >$1k
Never had a transaction of over $1000 before!  Chase's e-mail messages
have a thousands separator that I wasn't expecting.
2025-03-18 19:27:37 +00:00

20 lines
645 B
TOML

[[rule]]
name = "Commerce Bank"
match = "commercebankalerts@commercebank.com"
date_fmt = "%m-%d-%Y"
awk_script = "/etc/xactmon/commerce.awk"
[[rule]]
name = "Chase (Amazon Rewards) Visa"
match = "no.reply.alerts@chase.com"
date_fmt = "%b %d, %Y at %-I:%M %p"
regex = 'Account\s*(?P<account>.+)\n\s*Date\s+(?P<date>.+[AP]M).*\n\s*Merchant\s+(?P<description>.+)\n\s*Amount\s+\$(?P<amount>[0-9]+(?:,[0-9]+)*\.[0-9]{2})'
[[rule]]
name = "HSA Bank"
match = "hsabank.com"
date_fmt = "%m/%d/%Y"
account = "HSA Bank HSA"
default_description = "Debit Card Purchase"
regex = '\$(?P<amount>[0-9]+\.[0-9]{2}) on (?P<date>[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}).'