Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
crisz81917yI swear it was well indented, then Devrant ruined it lol (at least in the desktop version)
-
Actually GDPR gives me a nice overview of which companies have subscribed too and I don’t even to handle unsubscribe myself.
-
brahn15747yThere'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!
-
well today's the deadline so it's not like companies now will publicly announce that they were behind schedule :D
-
Inigo3307yI think I'd replace || with &&
Would you really want to nuke any email that contains "policy" 🙄
for (email in inbox) {
if ( email.contains("policy") ||
email.contains("privacy") ||
email.contains("GDPR")) {
email.delete();
}
}
rant