122
crisz
6y

for (email in inbox) {
if ( email.contains("policy") ||
email.contains("privacy") ||
email.contains("GDPR")) {
email.delete();
}
}

Comments
  • 4
    I swear it was well indented, then Devrant ruined it lol (at least in the desktop version)
  • 2
    @crisz looks pretty OK for me
  • 5
    Actually GDPR gives me a nice overview of which companies have subscribed too and I don’t even to handle unsubscribe myself.
  • 0
    What's up with all these privacy update emails anyway?
  • 0
    == inboxZero
  • 0
    I totally wish I did that. Spent a lot of time deleting all those emails.
  • 0
    yeah it ain't working like that
  • 2
    There's a bug in your code, it should be "email.frigginRead();", because they now have to tell you WHY they collect the information about you!
  • 1
    well today's the deadline so it's not like companies now will publicly announce that they were behind schedule :D
  • 1
    Regex to the rescue
    /a@(gdpr|privacy|policy)\b/
  • 1
    Well protonmail actually supports that ^^
  • 1
    I think I'd replace || with &&

    Would you really want to nuke any email that contains "policy" 🙄
Add Comment