Skip to content

Instantly share code, notes, and snippets.

@phorcys420
Last active February 13, 2023 21:21
Show Gist options
  • Save phorcys420/3b90c932c3952eafa5ba5cc058043626 to your computer and use it in GitHub Desktop.
Save phorcys420/3b90c932c3952eafa5ba5cc058043626 to your computer and use it in GitHub Desktop.
Sieve filter to get rid of itch.io game updates

If like me you have used a script to claim all of the itch.io games in a bundle then you are also receiving an unholy amount of E-Mail spam.

I have made this sieve script to get rid of all the game news (well, mark them as seen and put them into a folder). This puts the mails in the "itch.io" folder by default but nothing keeps you from chaning that.

require ["imap4flags", "fileinto", "body"];
if address "From" "postmaster@itch.io" {
if body :contains "receiving this message because you purchased or own" {
addflag "\\Seen";
}
fileinto "itch.io";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment