some more filters
This commit is contained in:
103
liam/sieve.nix
103
liam/sieve.nix
@@ -457,12 +457,115 @@ let
|
||||
addheader "X-Vacu-Sieved" "''${sieved_message}";
|
||||
removeflag "not-spamish";
|
||||
removeflag "orders";
|
||||
removeflag "banking";
|
||||
removeflag "banking-statements";
|
||||
removeflag "banking-transactions";
|
||||
removeflag "A";
|
||||
removeflag "B";
|
||||
removeflag "B.subscriptions";
|
||||
removeflag "C";
|
||||
removeflag "D";
|
||||
|
||||
${pure_flags [ "wells-fargo" "banking" ] (envelope_is "wf-primary@shelvacu.com")}
|
||||
${pure_flags [ "wells-fargo-transactions" "banking-transactions" "B" ] [
|
||||
(has_flag "wells-fargo")
|
||||
(subject_matches [
|
||||
"You just got paid!"
|
||||
"Wells Fargo card purchase exceeded preset amount"
|
||||
"You made a payment"
|
||||
"You made a credit card purchase of *"
|
||||
"Your card wasn't present for a purchase"
|
||||
"Account update"
|
||||
"You've earned cash back from My Wells Fargo Deals"
|
||||
"Confirmation of your Wells Fargo Rewards redemption"
|
||||
"You sent money with Zelle(R)"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "wells-fargo-statements" "banking-statements" "C" ] [
|
||||
(has_flag "wells-fargo")
|
||||
(subject_matches [
|
||||
"Your statement for credit card account *"
|
||||
"Your statement for account *"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "wells-fargo-action-required" "A" ] [ #wf is actually careful about saying action required
|
||||
(has_flag "wells-fargo")
|
||||
(subject_matches "Action Required: *")
|
||||
]}
|
||||
${pure_flags [ "wells-fargo-misc" "A" ] [
|
||||
(has_flag "wells-fargo")
|
||||
(not (has_flag "wells-fargo-transactions"))
|
||||
(not (has_flag "wells-fargo-statements"))
|
||||
(not (has_flag "wells-fargo-action-required"))
|
||||
]}
|
||||
${pure_flags [ "chase" "banking" ] (envelope_is "chase@shelvacu.com")}
|
||||
${pure_flags [ "chase-transactions" "banking-transactions" "B" ] [
|
||||
(has_flag "chase")
|
||||
(subject_matches [
|
||||
"Your * payment is scheduled"
|
||||
"You made a * transaction with *"
|
||||
"Your * transaction with *"
|
||||
"Chase security alert: You signed in with a new device"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "chase-statements" "banking-statements" "C" ] [
|
||||
(has_flag "chase")
|
||||
(subject_matches [
|
||||
"Your credit card statement is available"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "chase-spam" "D" ] [
|
||||
(has_flag "chase")
|
||||
(anyof [
|
||||
(header_is "From" "Chase Credit Journey <no.reply.alerts@chase.com>")
|
||||
(subject_is [
|
||||
"Review your recent activity"
|
||||
"Good news: You may qualify for a credit line increase!"
|
||||
"Your Chase card is available to use with Paze - Activate now!"
|
||||
])
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "experian" ] (envelope_is "fbyjemby@shelvacu.com")}
|
||||
${pure_flags [ "experian-spam" "D" ] [
|
||||
(has_flag "experian")
|
||||
(subject_matches [
|
||||
"*, your FICO® Score has been updated"
|
||||
"Your monthly account statement is here, *"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "paypal" "banking" ] [
|
||||
# can't go purely on envelope, because paypal loves to give my email to every merchant I interact with
|
||||
(envelope_is "paypal@shelvacu.com")
|
||||
(from_matches [
|
||||
"*@paypal.com"
|
||||
"*@*.paypal.com"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "paypal-transactions" "banking-transactions" "B" ] [
|
||||
(has_flag "paypal")
|
||||
(subject_matches [
|
||||
"Receipt for your payment to *"
|
||||
"*: $* USD"
|
||||
"*: $* CAD"
|
||||
"*: kr * SEK"
|
||||
"You authorized a payment to *"
|
||||
"You sent an automatic payment to *"
|
||||
"Review your new automatic payment setup for *"
|
||||
"You have a refund from *"
|
||||
])
|
||||
]}
|
||||
${pure_flags [ "paypal-statements" "banking-statements" "C" ] [
|
||||
(has_flag "paypal")
|
||||
(subject_matches [
|
||||
"*, your * account statement is available."
|
||||
])
|
||||
]}
|
||||
|
||||
${pure_flags [ "usps-id" ] (envelope_is "usps-id@shelvacu.com")}
|
||||
${pure_flags [ "usps-expected-delivery" "C" ] [
|
||||
(has_flag "usps-id")
|
||||
(subject_matches "USPS® Expected Delivery *")
|
||||
]}
|
||||
${pure_flags
|
||||
[ "amazon-ignore" "C" ]
|
||||
[
|
||||
|
Reference in New Issue
Block a user