This commit is contained in:
Shelvacu
2025-07-05 15:16:21 -07:00
committed by Shelvacu on fw
parent 242fa59806
commit 1bbc6763df
2 changed files with 25 additions and 11 deletions

View File

@@ -27,6 +27,8 @@ let
"info@rfidlabel.com"
"made-in-china.com"
"*.made-in-china.com"
"hotels.com"
"*.hotels.com"
];
banned_ips = [
"45.192.103.243/32"

View File

@@ -459,6 +459,7 @@ let
removeflag "orders";
removeflag "A";
removeflag "B";
removeflag "B.subscriptions";
removeflag "C";
removeflag "D";
@@ -485,7 +486,7 @@ let
]
}
${pure_flags
[ "bandcamp-not-ignore" "B" ]
[ "bandcamp-not-ignore" "B.subscriptions" ]
[
(envelope_is "bandcamp@shelvacu.com")
''not hasflag "bandcamp-ignore"''
@@ -519,7 +520,7 @@ let
}
${pure_flags
[ "money-stuff-not-podcast" "B" ]
[ "money-stuff-not-podcast" "B.subscriptions" ]
[
(has_flag "money-stuff")
(not (has_flag "money-stuff-podcast"))
@@ -558,7 +559,7 @@ let
${pure_flags [ "ebay" "orders" ] (envelope_is "ebay@shelvacu.com")}
${pure_flags [ "ebay-delivered" "B" ] [
(has_flag "ebay")
(header_matches "Subject" [
(subject_matches [
"*ORDER DELIVERED: *"
])
]}
@@ -568,14 +569,14 @@ let
]}
${pure_flags [ "ebay-offer" "B" ] [
(has_flag "ebay")
(header_matches "Subject" [
(subject_matches [
"You have an offer from the seller, *"
"You saw it at *, but the seller is now offering *"
])
]}
${pure_flags [ "ebay-order-update" "C" ] [
(has_flag "ebay")
(header_matches "Subject" [
(subject_matches [
"Out for delivery: *"
"*DELIVERY UPDATE: *"
"*Order update: *"
@@ -590,23 +591,23 @@ let
]}
${pure_flags [ "ebay-bid-ongoing-notification" "C" ] [
(has_flag "ebay")
(header_matches "Subject" [
(subject_matches [
"Michael, your bid for * is winning"
"* just got a new bid."
])
]}
${pure_flags [ "ebay-feedback" "D" ] [
(has_flag "ebay")
(header_matches "Subject" "Please provide feedback for your eBay items")
(subject_matches "Please provide feedback for your eBay items")
]}
${pure_flags [ "royal-mail" "orders" ] (from_is "no-reply@royalmail.com")}
${pure_flags [ "royal-mail-delivered" "B" ] [
(has_flag "royal-mail")
(header_matches "Subject" "Your Royal Mail parcel has been delivered")
(subject_matches "Your Royal Mail parcel has been delivered")
]}
${pure_flags [ "royal-mail-on-the-way" "D" ] [
(has_flag "royal-mail")
(header_matches "Subject" "Your Royal Mail parcel is on its way")
(subject_matches "Your Royal Mail parcel is on its way")
]}
${pure_flags [ "aliexpress" "orders" ]
(from_is [
@@ -617,7 +618,7 @@ let
${pure_flags [ "aliexpress-delivered" "B" ] [
(has_flag "aliexpress")
(from_is "transaction@notice.aliexpress.com")
(header_matches "Subject" "Order * has been signed for")
(subject_matches "Order * has been signed for")
]}
${pure_flags [ "aliexpress" "orders" "C" ] [
(has_flag "aliexpress")
@@ -654,6 +655,15 @@ let
(envelope_is "subscribestar@shelvacu.com")
(subject_is "Your authentication code")
])}
${pure_flags "itch-io" (from_is "postmaster@itch.io")}
${pure_flags [ "itch-io-update" "B.subscriptions" ] [
(has_flag "itch-io")
(subject_matches "[itch.io] * update *")
]}
${pure_flags [ "lowering-the-bar" "B.subscriptions" ] [
(envelope_is "ltb@shelvacu.com")
]}
${pure_flags [ "hotels-com" "D" ] (from_matches [ "hotels.com" "*.hotels.com" ])}
${pure_flags
[ "spamish-by-headers" "C" ]
@@ -663,7 +673,7 @@ let
(exists "List-Unsubscribe")
(exists "List-Unsubscribe-Post")
])
''not hasflag "not-spamish"''
(not (has_flag "not-spamish"))
]
}
@@ -677,6 +687,8 @@ let
${fileinto "C"}
} elsif hasflag "A" {
${fileinto "A"}
} elsif hasflag "B.subscriptions" {
${fileinto "B.subscriptions"}
} else {
${fileinto "B"}
}